and are the same expression. The first is a sum; the second is a product. Rewriting the first as the second is factoring. It is the rewrite skill in the
substitutions exercises: rewriting an expression into an
equivalent form that exposes structure hidden by the original. Factoring is
substitution’s quiet sibling. Substitution fills a value in; factoring pulls a factor out.
Factoring is the distributive law, run backwards
The skill uses one law: the distributive law, read in reverse. Read forwards, it says a multiplier distributes over a sum:
Read backwards, it says a sum with a common factor can be rewritten as a product:
That backwards reading is factoring. Look at . Both terms share a factor of , because is , so pull it out front: . The expression has not changed - the two forms are equivalent for every - but the product form shows immediately that makes it zero. The sum form hides that fact.
The three shapes to recognize
The rewrite exercises use three recognizable shapes, in increasing difficulty.
A common factor. and both factor by pulling out the shared factor: and . Decide what the common factor is, and whether it should be negative. factors to , because factoring out the negative leaves both remaining terms positive and clean.
A perfect square. is the square of a binomial: it factors to . The pattern is “first term squared, twice the product of the two, last term squared”: here , then , then . Reverse that pattern into written twice.
A difference of squares. factors to , because any difference of squares is . The outer terms multiply to , and the middle terms cancel. It is the same identity the equivalence article cites in the other direction - here you produce the factored form rather than recognize it.
Why the factored form matters
A factored form is not “more correct” than the expanded form. They are equivalent. It is more informative. tells you the value that makes the expression zero; buries that fact in a sum. A perfect square tells you the expression is never negative, because a square is never negative. The expanded form makes you work that out. The skill is not “get the right answer.” It is choosing the form that makes the next question easy - the same instinct as refactoring code so its intent is visible in its shape.
That connects factoring to the wider site. “Rewrite into an equivalent form” is the mathematical version of “change the shape, keep the meaning,” which is what refactoring is. Equivalence makes the rewrite safe: the two forms agree for every value, so you can rewrite without re-checking.
Why this matters here
The rewrite exercises in the substitutions set ask for exactly this
reverse-distribution, one shape at a time. The oracle grades the form (an
equivalent product), not any particular spelling. That is the point: there is
usually one clean factored form, and producing it is the skill. Once you can
factor fluently, the equivalence question gets easier too. Two expressions are
equivalent when they factor to the same thing, or when one is the other with a
law applied.
Where to go next
-
Equivalence: are two expressions the same for every value?
- the guarantee that makes rewriting safe, and the question factoring answers.
-
Substitution: replace a name with a value
- the forward move factoring runs backwards from.
-
The laws hidden in your code
- the distributive law, and its siblings, as the rules that make code safe to rearrange.