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

Math · Sets & Logic · Grade 9-12

Decomposition

Decomposition breaks a complex object or problem into simpler, independent subproblems solvable one at a time.

452

A 4×7 grid already cut at column 5: the hard product 4×7 becomes 4×5 plus 4×2 — every piece easy to count, all 28 squares still there.


Quick Answer

Decomposition breaks a complex object or problem into simpler, independent subproblems solvable one at a time. You use it when a problem is too big to handle whole but splits cleanly: an L-shaped floor into two rectangles, the fraction 5x−1x2−1 into 2x−1+3x+1, a product like 23×47 into 23×40 and 23×7. Each piece is solved on its own and the results are combined. The split only helps if the pieces really are independent and together cover the whole problem exactly once.

Why This Matters

Many problems that look impossible are a few easy ones glued together. ∫5x−1x2−1 dx matches no basic rule, but its two partial fractions each integrate to a logarithm; the floor area of an irregular room is a few rectangles and triangles. Without decomposition you either face the whole tangle at once or split carelessly and count a piece twice.

Intuitive Explanation

Work out 23×47 in your head. As one problem it is awkward. Split 47 into 40+7: 23×40=920 and 23×7=161 are two easy products, and 920+161=1081. The split worked because the distributive law makes the two pieces independent: neither product needs the other's answer. Long division, partial fractions and finding an area piece by piece all rely on the same move.

A good decomposition has three properties. The pieces cover the whole problem, with nothing missing. They do not overlap, so nothing is counted twice. And each piece is easier than the original. Splitting an L-shaped floor into a 6×4 rectangle and a 3×2 rectangle passes all three tests, giving 24+6=30 m2. Splitting it into two overlapping rectangles fails the second test, and the shared patch gets counted twice.

Decomposition is not simplification. Rewriting x2−1x−1 as x+1 replaces one expression with an easier equivalent; there are no separate subproblems to solve. It is also different from case analysis, which splits by situation (if x≥0, if x<0). For any given x only one case applies, while every piece of a decomposition contributes to the final answer.

Think of it like this. Decomposition is how a removal company empties a house: the piano, the kitchen and the bookshelves each get their own crew and boxes, and no crew needs to know how the others are packing. The plan breaks down when the pieces are linked, like a bed frame bolted to the wall, which has to be handled together.

Core idea. Decomposition splits a hard problem into simpler, independent subproblems you can solve separately, then handle on their own.


When to Use

Decompose when a problem is a sum of separate contributions (an area made of shapes, a fraction whose denominator factors, a product with a handy split like 47=40+7), or when its parts can be solved independently and recombined. Check that the pieces cover everything exactly once. If you only need an easier equivalent form, simplify. If the problem splits by conditions, such as positive versus negative x, use case analysis. If the pieces need each other's answers, solve them together.

Tip. Ask: Can I split this into simpler subproblems that each be solved on their own?

How to Recognize It

Before splitting a problem, picture the pieces you would cut it into and check two things: that no piece needs another piece's answer, and that together they cover the whole exactly once.

  1. Is the quantity you want a total of separate contributions, such as an area made of rectangles or a cost made of parts?

    If yes, decomposition fits: find each contribution and add. If the quantity is a single expression that only looks messy, rewrite it instead, which is simplification.

  2. Can each piece be solved without knowing another piece's answer?

    If yes, the pieces are independent and can be handled in any order. If no, as with two equations that share x and y, the parts must be solved together, by substitution or elimination, not one at a time.

  3. Do your pieces cover the whole exactly once, with no gap and no overlap?

    Cut an L-shaped room into two rectangles along one line, not into pieces that share a corner. If two pieces overlap, subtract the shared part once, the inclusion-exclusion idea; a gap means a missing piece.

  4. Does the split depend on which situation you are in, such as x≥0 or x<0?

    If yes, that is case analysis: each case is a different possible world, and only one applies to a given x. Decomposition splits one situation into parts that all apply at once and get combined.

Decomposition compared with Recomposition, Simplification, and Case analysis

Each row breaks a problem up or puts it back together. Ask what the pieces are: parts that all apply at once and get combined (decomposition), solved parts being joined (recomposition), one expression rewritten whole (simplification), or alternative situations where only one applies (case analysis).

Decomposition

Meaning
Use this when a problem is too big whole but splits into simpler subproblems you can solve separately.
Key test
Can I split this into simpler subproblems that each be solved on their own?
Example
Integrate ∫5x−1x2−1 dx by decomposition.

Recomposition

Meaning
The reverse step — reassembling solved pieces into the whole answer.
Key test
Use after decomposition, to combine the sub-results.
Example
Adding partial-fraction integrals back together

Simplification

Meaning
Rewrites one expression as an easier equivalent; does not split into separate subproblems.
Key test
Use when tidying a single expression, not partitioning a problem.
Example
x2−1x−1=x+1

Case analysis

Meaning
Splits by conditions/scenarios rather than into independent computational parts.
Key test
Use when the answer branches on cases like sign or parity.
Example
Solve ∣x∣=3 as x=3 or x=−3

Formula & Notation

Worked Examples

Example 1 — Partial fractions

Easy

Integrate ∫5x−1x2−1 dx by decomposition.
Show the steps and the answer
  1. Factor the denominator: x2−1=(x−1)(x+1), two different linear factors.

    Distinct linear factors mean the fraction can split into one simpler fraction per factor.

  2. Write 5x−1(x−1)(x+1)=Ax−1+Bx+1, so 5x−1=A(x+1)+B(x−1).

    Multiplying both sides by (x−1)(x+1) clears the denominators.

  3. Put x=1: 4=2A, so A=2. Put x=−1: −6=−2B, so B=3.

    Each choice of x makes one bracket zero, which isolates one unknown at a time.

  4. Check the split: 2x−1+3x+1=2(x+1)+3(x−1)x2−1=5x−1x2−1.

    The pieces must add back to exactly the original fraction before you integrate them.

  5. Integrate each piece: ∫2x−1dx=2ln⁡∣x−1∣ and ∫3x+1dx=3ln⁡∣x+1∣; add them and include +C.

    Each piece has the form ∫kx−adx=kln⁡∣x−a∣, which the original fraction did not.

Answer: 2ln⁡∣x−1∣+3ln⁡∣x+1∣+C

Takeaway: When a denominator factors into distinct linear pieces, split the fraction into one piece per factor. Each part then integrates on its own.

Example 2 — Simplification, not decomposition

Standard

Asked to simplify x2−1x−1. Is that decomposition?
Show the steps and the answer
  1. Factor the numerator: x2−1=(x−1)(x+1).

    Factoring shows the numerator and denominator share the factor (x−1).

  2. Cancel: (x−1)(x+1)x−1=x+1, for x≠1.

    At x=1 the original has a zero denominator, so the simplified form must exclude that value.

  3. Count the subproblems: one expression goes in and one comes out, with nothing solved separately.

    A decomposition would produce several parts, each solved alone and then recombined; here there are no parts.

  4. Compare with partial fractions on 5x−1x2−1, which produced the two pieces 2x−1 and 3x+1.

    That split created two independent integrals, while cancelling here only tidies a single expression.

Answer: x+1 — a single simplified expression

Takeaway: Rewriting one expression as an easier equivalent is simplification. Decomposition creates separate pieces that each get solved.

Example 3 — Find the mistake: pieces that depend on each other

Application

An $80 jacket is 20% off, and then 10% sales tax is added. Jin writes: "Split it into two parts: −20% and +10% make −10%, so the jacket costs $72." Find the mistake and correct it.
Show the steps and the answer
  1. Do the steps in order: discount first, 80×0.8=64; then tax, 64×1.1=70.40.

    Tax is charged on the discounted price, so the second step needs the first step's answer.

  2. Locate Jin's error: he treated the two percentages as independent pieces and added them.

    Percentages can be added only when both are taken of the same base; here the bases are $80 and $64.

  3. Combine the steps as factors: 0.8×1.1=0.88, and 0.88×80=70.40.

    Successive percentage changes multiply, which builds in the dependence between them.

  4. Explain the gap: 72−70.40=1.60, which is 10% tax on the $16 discount.

    Jin's method charges tax on money the buyer never pays, and that is exactly the difference.

Answer: The jacket costs $70.40, not $72.

Takeaway: Before splitting a problem, check that the pieces are independent. Steps that feed into each other, like tax on a discounted price, must be done in order or combined by multiplying.

Where You'll See It

  • Buying paint for a room

    A room 4 m by 5 m with walls 2.5 m high has wall area 2(4+5)⋅2.5=45 m². Subtract a 2 m² door and a 1.5 m² window to get 41.5 m². At 10 m² per litre, two coats need 83÷10=8.3 litres, so you buy enough for 9.

  • Giving change at a till

    A cashier owing 87 cents breaks it into coin-sized pieces: three quarters (75), one dime (10) and two pennies (2). Each coin value is handled on its own, and the pieces add back to exactly 87, the full-coverage, no-overlap rule in action.

  • A music equalizer

    A graphic equalizer splits a song into separate frequency bands, for example ten bands from about 31 Hz to 16 kHz. Each band's volume is adjusted on its own, and the bands are added back together into one signal. The split works because the bands do not overlap much.

Common Mistakes

  1. The slip: Splitting into parts that secretly depend on each other

    Instead: decomposition needs independent subproblems.

  2. The slip: Forgetting to recombine the pieces

    Instead: solving the parts is only half the job; reassemble for the final answer.

  3. The slip: Confusing decomposition with simplification

    Instead: decomposition partitions a problem, simplification tidies one expression.


Mini Practice

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

  1. An L-shaped floor is made of an 8 m by 3 m rectangle and a 4 m by 5 m rectangle that do not overlap. Find its area.

    Hint: Find each rectangle's area on its own.

  2. Find 47×23 by splitting 23 into 20+3.

    Hint: Multiply 47 by each part separately.

  3. A trip is 2 h at 60 km/h followed by 3 h at 80 km/h. Find the total distance and the average speed for the whole trip.

    Hint: Find the distance of each part first. Average speed is total distance over total time.

  4. Write 7x+1(x+1)(x−1) as Ax−1+Bx+1.

    Hint: Clear denominators: 7x+1=A(x+1)+B(x−1). Choose values of x that kill one term.

  5. Task A: find the volume of a house shape by splitting it into a box and a triangular prism. Task B: rewrite 2x+5x as 7x. Which is decomposition?

    Hint: Which task splits one problem into separate pieces to solve?

  6. How many whole numbers from 1 to 100 are divisible by 3 or by 5? Zoe counts 33 multiples of 3 and 20 multiples of 5 and answers 53. Correct her.

    Hint: Are the two parts really separate? Look for numbers counted in both.

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

How do you find the pieces in a partial fraction split?

Write 5x−1(x−1)(x+1)=Ax−1+Bx+1\frac{5x - 1}{(x - 1)(x + 1)} = \frac{A}{x - 1} + \frac{B}{x + 1} and multiply through to get 5x−1=A(x+1)+B(x−1)5x - 1 = A(x + 1) + B(x - 1). Now choose values of xx that wipe out one term: x=1x = 1 gives 4=2A4 = 2A, so A=2A = 2, and x=−1x = -1 gives −6=−2B-6 = -2B, so B=3B = 3. Each piece is now simple on its own, which is why calculus uses this split to integrate.

Why do computers multiply huge numbers by splitting them?

Because a clever split saves work. Multiplying two 2-digit numbers by the school method needs 4 single-digit products. In 1960 Anatoly Karatsuba found a split that needs only 3, by reusing one combined product. Applied again and again to numbers with thousands of digits, that saving makes multiplication far faster, and versions of his method run inside software that handles very large numbers.

Is divide and conquer in computer science the same idea?

Yes. Merge sort, a standard way to sort a list, splits the list in half, sorts each half separately, and then merges the two sorted halves; the merge is the recomposition step. Sorting a million items this way takes roughly 20 million comparisons, while a simple method that compares every pair can need hundreds of billions.

Can the same problem be decomposed in more than one way?

Yes, and the choice matters. An L-shaped garden can be cut horizontally or vertically, or treated as a big rectangle minus a small one, which is decomposition by subtraction. Every correct split gives the same total area, but one may use numbers you already have. When two different splits give the same answer, that agreement is a free check on your arithmetic.

Learning Path

← Before

No prerequisites
Decomposition

You are here

Next →

Recomposition
No earlier concept is required beyond being able to solve the small pieces. Decomposition adds the strategy of splitting a hard problem into independent parts, and the tests that make a split valid: full coverage, no overlap, easier pieces. Next, Recomposition handles the second half of the job, assembling the solved pieces into one answer and checking that they fit together.

See Also