Factoring Difference of Squares
Voltage drop, wire sizing, load balancing
The difference of squares is one of the most recognizable factoring patterns in algebra. Once you learn to spot it, you can factor certain binomials instantly — no AC method, no trial and error, just one clean formula.
The pattern is:
This works because when you multiply using FOIL, the middle terms cancel:
The key is recognizing when an expression fits this pattern: it must be a binomial (two terms), both terms must be perfect squares, and they must be connected by subtraction.
Recognizing Perfect Squares
Before you can use this pattern, you need to quickly identify perfect squares.
Perfect square numbers:
Perfect square variables: A variable expression is a perfect square when the exponent is even — , , , , etc. The “square root” is the variable raised to half the exponent.
| Expression | Is it a perfect square? | Square root |
|---|---|---|
| Yes: , | ||
| Yes: , | ||
| Yes: , , | ||
| No: 12 is not a perfect square | — | |
| No: odd exponent | — |
Basic Examples
Example 1: Factor
Identify the squares: and .
Apply the pattern:
Check: . Correct.
Example 2: Factor
Identify the squares: and .
Apply the pattern:
Check: . Correct.
Example 3: Factor
Identify the squares: and .
Apply the pattern:
Higher-Degree Differences of Squares
The pattern works whenever both terms are perfect squares — even with higher exponents.
Example 4: Factor
Identify the squares: and .
Apply the pattern:
But wait — factor completely! The second factor, , is itself a difference of squares:
So the complete factorization is:
The first factor, , is a sum of squares — it does not factor over the real numbers (more on this below).
Example 5: Factor
Identify the squares: and .
Factor the second term again:
Complete factorization:
Factor Out the GCF First
Always check for a GCF before applying the difference of squares pattern.
Example 6: Factor
Step 1 — Factor out the GCF: The GCF of 50 and 18 is 2.
Step 2 — Apply the difference of squares pattern: and .
Without factoring out the 2 first, you would not see the difference of squares pattern at all, since 50 and 18 are not perfect squares.
Example 7: Factor
Step 1 — Factor out the GCF: The GCF is .
Step 2 — Apply the difference of squares:
The Sum of Squares Does NOT Factor
This is a critical distinction. While factors beautifully, the sum of squares does not factor over the real numbers.
There is simply no way to write as a product of two real-number binomials. When you encounter a sum of squares, it is already fully factored (over the reals). Leave it alone.
Quick test: Is it a difference (subtraction) of two perfect squares? If yes, factor it. If it is a sum (addition) of two squares, stop — it does not factor.
Difference of Squares with Subtraction in Disguise
Sometimes the expression is rearranged so the subtraction is not immediately obvious.
Example 8: Factor
Rewrite in standard order:
Example 9: Factor
This is already a difference of squares — just written with the constant first:
You can also write it as , but is perfectly valid and more direct.
Real-World Application: Electrician — Power Difference in Parallel Circuits
An electrician compares the power dissipated by a resistive load at two different operating currents. Using the formula , the difference in power between current and current through the same resistance is:
Factor out , then apply the difference of squares:
If amps and amps with ohms:
The factored form makes the calculation easier — you avoid squaring each current separately. It also reveals that the power difference depends on both the sum and the difference of the currents.
Common Mistakes to Avoid
- Trying to factor a sum of squares. Remember: does not factor over the reals. Only the difference factors.
- Forgetting to factor completely. After applying the pattern, check whether either factor is itself a difference of squares (like ).
- Not factoring out the GCF first. Expressions like do not look like a difference of squares until you factor out the 2.
- Misidentifying perfect squares. Remember that is not a perfect square (odd exponent), and numbers like 12, 18, or 20 are not perfect squares. The coefficient and every variable factor must be perfect squares.
- Confusing with . The expression — it has three terms. The difference of squares has only two terms and no middle term.
Practice Problems
Test your understanding with these problems. Click to reveal each answer.
Problem 1: Factor
and .
Answer:
Problem 2: Factor
and .
Answer:
Problem 3: Factor
and .
Answer:
Problem 4: Factor
and .
Factor again:
Answer:
Problem 5: Factor
Factor out the GCF of 5 first:
Now apply the difference of squares: and .
Answer:
Problem 6: Can be factored?
No. This is a sum of squares. It does not factor over the real numbers.
Answer: is already fully factored (prime over the reals).
Problem 7: Factor
Factor out the GCF of :
Apply the difference of squares:
Answer:
Key Takeaways
- The difference of squares pattern is
- Both terms must be perfect squares connected by subtraction
- The sum of squares does not factor over the real numbers
- Always factor out the GCF first — it can reveal a hidden difference of squares
- Always factor completely — check if either result is itself a difference of squares
- This pattern appears frequently in physics, engineering, and trade calculations whenever you need the difference of two squared quantities
Return to Algebra for more topics in this section.
Next Up in Algebra
Last updated: March 29, 2026