Not sure which lesson to do first? Find your level and get a plan →

Math · Sets & Logic · Grade 9-12

Recomposition

Recomposition is combining solved parts or sub-results back into a complete solution.


Quick Answer

Recomposition is combining solved parts or sub-results back into a complete solution. You use it as the second half of divide and conquer: after splitting a problem and solving the pieces, you assemble them into one answer. That is more than adding. You check that the pieces meet properly at their seams, that every piece and every constant is included exactly once, and that the combined result still answers the original question. A piecewise price rule, for example, must give the same value where its pieces meet.

Why This Matters

Solving the pieces is wasted if the assembly is wrong, and assembly errors are easy: dropping one partial fraction, adding two areas that overlap, joining a piecewise function where its pieces disagree. In tax brackets or phone-plan pricing the pieces must meet exactly at the boundaries, or someone is charged twice for the same dollar or gigabyte. Recomposition is where those errors get caught.

Intuitive Explanation

A jigsaw is decomposed when you sort it into sky pieces, edge pieces and the red barn, and each pile is assembled separately. Recomposition is the moment you slide the finished sky down onto the barn and check that the edges actually meet. If the sky section came out a row too wide, the two finished parts will not fit, even though each was assembled correctly.

Mathematics has the same seams. Suppose income tax is 10% on the first $10,000 and 20% on anything above that. For an income of $25,000 the pieces are 0.10×10000=1000 and 0.20×15000=3000, recombined as $4000. The seam check is that the second piece starts exactly where the first stops: $10,000 plus $15,000 is $25,000, with no dollar taxed twice and none skipped. A function defined in pieces needs the same check: f(x)=2x for x≤3 and f(x)=x+3 for x>3 both give 6 at x=3, so the graph has no jump.

Recomposition is not just addition. Adding 12+4 is arithmetic; recomposition is the judgment that a rectangle and a triangle share an edge without overlapping, so their areas may be added. When two pieces do overlap, the correct way to recombine subtracts the overlap: ∣A∪B∣=∣A∣+∣B∣−∣A∩B∣.

Think of it like this. Recomposition is the final assembly of a flat-pack wardrobe from panels you have already prepared. Each panel can be perfect and the wardrobe still wobble if a hinge goes on the wrong side or a shelf stays in the box. Unlike panels, mathematical pieces can overlap, and then you subtract the shared part instead of forcing it to fit.

Core idea. Recomposition reassembles solved subproblems into the whole answer, making sure the seams between parts match.


When to Use

Recompose when the pieces are already solved and the problem wants the total, the whole region, the full function, or the final answer to the original question. Check each seam: shared edges, matching values at boundaries, constants such as +C, and units. If pieces overlap, subtract the overlap. If you have not split the problem yet, you are still decomposing; if you are only tidying one combined expression, that is simplification.

Tip. Ask: Have I already solved the pieces, and is my job now to fit them into one whole with matching seams?

How to Recognize It

Before combining solved pieces, lay them side by side and look at the places where they meet, since most reassembly errors sit at a shared edge, a boundary value or a forgotten constant.

  1. Are all the pieces already solved?

    If yes, the remaining work is reassembly. If no, you are still decomposing or solving pieces; combining half-finished parts usually hides which one went wrong.

  2. Do neighbouring pieces give the same value where they meet?

    A taxi charging $3 plus $2 per km up to 5 km, then $1.50 per km, must give $13 at 5 km by both rules; if not, a piece is wrong. Pieces that never touch simply add.

  3. Do any two pieces overlap, so that something is counted twice?

    If yes, subtract the shared part once: 18 students take art, 15 take music and 6 take both, so 18+15−6=27 take at least one. Plain addition gives 33, which counts the 6 twice.

  4. Is your combined answer still in the units and form the original question asked for?

    Areas in cm2 and m2 must be converted before adding, and a question about a whole journey wants one total time, not two. If the pieces are already combined and you are only tidying the result, that is simplification.

Recomposition compared with Decomposition, Addition / summation, and Simplification

All four rows handle pieces of a problem, so they are easy to confuse. Ask what stage you are at: splitting the whole (decomposition), joining solved parts with checked seams (recomposition), totalling parts that never interact (addition), or tidying an answer already assembled (simplification).

Recomposition

Meaning
Use this when the subproblems are solved and you must reassemble them into the whole with matching boundaries.
Key test
Have I already solved the pieces, and is my job now to fit them into one whole with matching seams?
Example
A region splits into a 3×4 rectangle and a triangle of base 4, height 2 sharing the top edge. Find the total area.

Decomposition

Meaning
The opposite step — splitting the whole into pieces in the first place.
Key test
Use at the start, before any piece is solved.
Example
Breaking a fraction into partial fractions

Addition / summation

Meaning
Mechanically totals values; recomposition also enforces matching boundaries between parts.
Key test
Use when pieces simply add with no continuity to check.
Formula
∑ai
Example
Total cost of separate items

Simplification

Meaning
Tidies a single combined expression; not the reassembly of separate sub-results.
Key test
Use after recomposition to clean the assembled answer.
Example
Combining like terms in the final sum

Formula & Notation

Worked Examples

Example 1 — Piecewise area

Easy

A region splits into a 3×4 rectangle and a triangle of base 4, height 2 sharing the top edge. Find the total area.
Show the steps and the answer
  1. Check the seam: the rectangle's top edge is 4 units long and the triangle's base is 4 units, so the triangle sits exactly on that edge.

    Matching lengths mean the pieces meet with no gap and no overhang.

  2. Check for overlap: the triangle lies above the shared edge and the rectangle below it.

    They share only a line, which has no area, so adding the areas counts nothing twice.

  3. Take the solved pieces: rectangle 3×4=12, triangle 12⋅4⋅2=4.

    Each piece was solved on its own with its own area formula.

  4. Combine: 12+4=16 square units.

    With the seam checked and no overlap, the total is the plain sum of the parts.

Answer: 16 square units

Takeaway: Before adding the pieces, check that they meet edge to edge without gaps or overlap. Only then is the total the sum of the parts.

Example 2 — Decomposition, not recomposition

Standard

You are first asked how to break that compound region into a rectangle plus a triangle. Which step is that?
Show the steps and the answer
  1. Look at what the question wants: a way to cut the whole region, not a number.

    Splitting a whole into pieces is decomposition, and no solved pieces exist yet.

  2. Find the cut: a horizontal line at height 3 separates a 3×4 rectangle below from a triangle with base 4 and height 2 above.

    Cutting along the rectangle's top edge leaves two shapes with known area formulas.

  3. Place the step in the sequence: split, solve each piece, then reassemble.

    This question covers only the first step; joining the solved areas comes last.

  4. Compare the outputs: this step produces two shapes, while recomposition produces the single total, 16.

    Pieces out means decomposition; one combined answer out means recomposition.

Answer: It is decomposition

Takeaway: Splitting the whole is decomposition; joining solved parts is recomposition. What the question asks you to produce, pieces or a total, tells you which.

Example 3 — Find the mistake: pieces that do not meet

Application

A phone plan costs $25 for up to 5 GB of data, plus $4 for each GB above 5. Lee works out the two pieces and writes the bill as B(g)=25 for g≤5 and B(g)=4g for g>5. Find the mistake and correct it.
Show the steps and the answer
  1. Test the seam: at the boundary B(5)=25, but just past it Lee's rule gives B(5.1)=4⋅5.1=20.4.

    Using 0.1 GB more data cannot make the bill $4.60 smaller, so the pieces do not meet.

  2. Find what was dropped: the second piece charges $4 for every gigabyte and leaves out the $25 base fee.

    Above 5 GB the customer still pays the $25, plus $4 only for each gigabyte beyond 5.

  3. Rewrite the second piece: B(g)=25+4(g−5) for g>5.

    The factor g−5 counts only the extra gigabytes.

  4. Check the seam and one value: 25+4(5−5)=25 matches the first piece, and B(8)=25+4⋅3=37.

    Equal values at g=5 mean the bill has no jump, as a sensible price should.

Answer: B(g)=25 for g≤5 and B(g)=25+4(g−5) for g>5; for example, 8 GB costs $37.

Takeaway: When joining solved pieces, check the boundary: both pieces should give the same value where they meet, unless the situation really has a jump.

Where You'll See It

  • Income tax brackets

    With 10% on the first $11,000 and 12% on income from $11,000 to $44,725, a taxable income of $30,000 is taxed in two pieces: $1100 plus 0.12×19000= $2280, recombined as $3380. The brackets meet exactly at $11,000, so no dollar is taxed twice.

  • Stitching a phone panorama

    A panorama is several photos that overlap by about a third. The stitching software matches features in each overlap, lines up the seams and keeps one copy of the shared strip. Placing the photos side by side without that step would show every object in an overlap twice.

  • The merge step of merge sort

    Merge sort splits a list in half, sorts each half, then recombines by repeatedly taking the smaller front item of the two sorted halves. Merging [3, 8] and [1, 9] gives 1, 3, 8, 9 after three comparisons. The merge is where the two sorted pieces become one sorted whole.

Common Mistakes

  1. The slip: Assuming recomposition is just adding

    Instead: check that boundary conditions and continuity between parts actually match.

  2. The slip: Dropping a piece or a constant during reassembly

    Instead: account for every sub-result, including integration constants.

  3. The slip: Confusing recomposition with decomposition

    Instead: recomposition rebuilds the whole, decomposition splits it apart.


Mini Practice

Try these on your own. Tap Reveal when you want to check.

  1. A shape is a 6 by 4 rectangle with a semicircle of diameter 4 attached along one 4-unit side. Find the total area.

    Hint: The semicircle's radius is half its diameter.

  2. A password is 2 letters (26 choices each) followed by 3 digits. You found 676 letter pairs and 1000 digit strings. Recompose these into the total number of passwords.

    Hint: Each letter pair can go with every digit string. Add or multiply?

  3. Class A has 20 students with a mean score of 70. Class B has 30 students with a mean of 80. Recompose these into the mean for all 50 students.

    Hint: Rebuild the total points first; the classes are different sizes.

  4. You found ∫2x dx=x2+C1 and ∫3 dx=3x+C2. Recompose them into ∫(2x+3) dx, and find the constant if the result equals 5 at x=1.

    Hint: The two constants merge into one. Then use the given value.

  5. For a garden plan you first cut the shape into a rectangle and a triangle, then add 30 m2 and 12 m2 to get 42 m2. Which step is decomposition and which is recomposition?

    Hint: Which step splits, and which rebuilds the whole?

  6. Two 3 by 3 squares, each with perimeter 12, are joined along a full side to make a rectangle. Eli says the new perimeter is 12+12=24. Correct him.

    Hint: What happens to the shared edges when the squares are joined?

Want the full set?

50 practice questions for this concept — free to try, every one with a complete worked solution showing the why, not just the answer.

Frequently Asked Questions

Why do I need only one +C after integrating a sum term by term?

Each term's antiderivative is a piece, and the constant of integration is a piece too. Integrating 2x2x and cos⁡x\cos x separately gives x2+C1x^2 + C_1 and sin⁡x+C2\sin x + C_2. Since C1+C2C_1 + C_2 is just another unknown constant, the recombined answer is x2+sin⁡x+Cx^2 + \sin x + C. You may merge the constants, but you may not drop them: without +C+C the answer misses every other antiderivative.

How does counting overlaps work with three groups?

Add the three group sizes, subtract the three pairwise overlaps, then add back the part in all three: ∣A∪B∪C∣=∣A∣+∣B∣+∣C∣−∣A∩B∣−∣A∩C∣−∣B∩C∣+∣A∩B∩C∣|A \cup B \cup C| = |A| + |B| + |C| - |A \cap B| - |A \cap C| - |B \cap C| + |A \cap B \cap C|. An item in all three groups is counted three times, removed three times, and so must be added back once. This is inclusion-exclusion, recomposition with careful bookkeeping at every seam.

Is recomposition used in real engineering?

Constantly. The wings, body sections and tail of a large airliner are often built in different factories, sometimes in different countries, and joined at final assembly. Each join is agreed in advance, with measurements and tolerances, so that parts made apart fit together. The mathematical version follows the same discipline: decide the seam conditions, such as matching values at a boundary, before the pieces are solved.

Learning Path

← Before

Decomposition
Recomposition

You are here

Next →

Nothing after this yet
You need Decomposition first: splitting a problem into independent pieces you can solve one at a time. Recomposition adds the assembly step: combining the sub-results, checking that they meet at their seams, and making sure nothing is dropped or counted twice. With both halves you can take on multi-part problems such as piecewise functions, composite areas, tax brackets and partial-fraction integrals.

See Also