In short

Some fourth-degree expressions look stuck. No common factor, no grouping, no sum-of-cubes — and the sum of squares does not split over the reals, so x^4 + 4 feels like another dead end. It is not. Sophie Germain's identity unlocks it:

a^4 + 4b^4 = (a^2 + 2b^2 - 2ab)(a^2 + 2b^2 + 2ab).

The move is surgical: add and subtract 4a^2b^2, turn the expression into (a^2 + 2b^2)^2 - (2ab)^2, then collapse with difference of squares. Whenever you see "fourth power plus four times another fourth power", this identity is the way in.

You have learned the standard factoring decision tree. Pull out a common factor. Try grouping. Spot a quadratic trinomial and split the middle. Match an identity — sum of cubes, difference of cubes, difference of squares. For most expressions that show up in school, one of these clicks.

Then someone hands you x^4 + 4.

You scan the menu. No common factor (the constant is 4, the leading coefficient is 1, no shared variable). Grouping is impossible — there are only two terms. The sum-of-squares pattern a^2 + b^2 does not split over the reals. The sum-of-cubes formula does not apply (these are fourth powers, not cubes). The Rational Root Theorem hands you candidates \pm 1, \pm 2, \pm 4 — and plugging them in, every single one gives a positive number. No rational roots. Nothing fits.

Yet x^4 + 4 does factor. Cleanly. Into two real quadratics with integer coefficients:

x^4 + 4 = (x^2 - 2x + 2)(x^2 + 2x + 2).

Multiply the right side out and you get exactly x^4 + 4. Try it. The factorisation is real, it is integer, and the standard decision tree never finds it. You need a special-purpose tool — the Sophie Germain identity.

The identity

For any a and b:

a^4 + 4b^4 = (a^2 + 2b^2 - 2ab)(a^2 + 2b^2 + 2ab).

This is the only formula you have to remember. Every problem that uses Sophie Germain reduces to recognising the shape "something to the fourth, plus four times something to the fourth" and then applying this identity with the right a and b.

The derivation — the add-and-subtract trick

The way to get from a^4 + 4b^4 to the factored form is short and beautiful. The whole derivation is one trick: add and subtract 4a^2b^2, then recognise a difference of squares.

Three boxes showing the derivation of Sophie Germain's identityThree boxes connected by arrows, left to right. Box one contains a to the fourth plus 4 b to the fourth. An arrow labelled add and subtract 4 a squared b squared points to box two, which contains a to the fourth plus 4 a squared b squared plus 4 b to the fourth, minus 4 a squared b squared. An arrow labelled rewrite as squares points to box three, which contains the quantity a squared plus 2 b squared, all squared, minus the quantity 2 a b, all squared. A final arrow labelled difference of squares points off to the right, with the result a squared plus 2 b squared minus 2 a b, times a squared plus 2 b squared plus 2 a b. a⁴ + 4b⁴ + 4a²b² − 4a²b² a⁴ + 4a²b² + 4b⁴ − 4a²b² rewrite as squares (a² + 2b²)² − (2ab)² difference of squares finishes the job
The whole derivation in three boxes. Add and subtract $4a^2b^2$. Group the first three terms into a perfect square. Recognise the result as a difference of two squares. Then $(P^2 - Q^2) = (P - Q)(P + Q)$ closes it.

Step by step:

Step 1. Start with a^4 + 4b^4. Add and subtract 4a^2b^2:

a^4 + 4b^4 = a^4 + 4a^2b^2 + 4b^4 - 4a^2b^2.

Why add zero? Because adding 4a^2b^2 to the first three terms completes a perfect square, and subtracting it back keeps the expression unchanged. You are not changing the value — you are changing the shape so that a known identity applies. This is the same logical move as completing the square for a quadratic.

Step 2. Group the first three terms. They form (a^2 + 2b^2)^2:

a^4 + 4a^2b^2 + 4b^4 = (a^2)^2 + 2 \cdot a^2 \cdot 2b^2 + (2b^2)^2 = (a^2 + 2b^2)^2.

Why this is a perfect square: the expansion (P + Q)^2 = P^2 + 2PQ + Q^2 matches the three terms exactly when P = a^2 and Q = 2b^2. The middle term 4a^2b^2 is precisely 2 \cdot a^2 \cdot 2b^2. That is what made 4a^2b^2 the right thing to add — it completes the square cleanly.

Step 3. The remaining -4a^2b^2 is itself -(2ab)^2. Together:

a^4 + 4b^4 = (a^2 + 2b^2)^2 - (2ab)^2.

Why -4a^2b^2 = -(2ab)^2: because (2ab)^2 = 4a^2b^2. The subtracted term is the square of 2ab. Now the expression has the shape P^2 - Q^2 — a difference of two squares.

Step 4. Apply the difference-of-squares identity P^2 - Q^2 = (P - Q)(P + Q) with P = a^2 + 2b^2 and Q = 2ab:

a^4 + 4b^4 = (a^2 + 2b^2 - 2ab)(a^2 + 2b^2 + 2ab).

Why difference of squares closes it: any expression of the form P^2 - Q^2 factors as (P - Q)(P + Q) — the most reliable identity in school algebra. By engineering the expression into that shape, you guarantee a factorisation. This is the same trick that powers many advanced factoring methods: bend the expression until a familiar identity fits.

That is the entire derivation. Four lines. The identity is just the difference-of-squares identity in disguise — the disguise being the cleverly-chosen 4a^2b^2.

Example 1: The classic — $x^4 + 4$

This is the textbook case. Match x^4 + 4 = a^4 + 4b^4 with a = x and b = 1 (since 4 \cdot 1^4 = 4).

Plug into the identity:

x^4 + 4 = (x^2 + 2 \cdot 1^2 - 2 \cdot x \cdot 1)(x^2 + 2 \cdot 1^2 + 2 \cdot x \cdot 1).

Simplify each block:

x^4 + 4 = (x^2 - 2x + 2)(x^2 + 2x + 2).

Verify by expanding. (x^2 - 2x + 2)(x^2 + 2x + 2) — group as \big[(x^2 + 2) - 2x\big]\big[(x^2 + 2) + 2x\big] = (x^2 + 2)^2 - (2x)^2 = x^4 + 4x^2 + 4 - 4x^2 = x^4 + 4. Tick.

Both quadratic factors have negative discriminant: for x^2 - 2x + 2, \Delta = 4 - 8 = -4 < 0; same for x^2 + 2x + 2. So neither splits further over the reals — this is the complete real factorisation of x^4 + 4.

Example 2: $x^4 + 64$ — disguise it first

x^4 + 64 does not look like a^4 + 4b^4 at first glance. The trick is to rewrite 64 in the right form:

64 = 4 \cdot 16 = 4 \cdot 2^4.

So x^4 + 64 = x^4 + 4 \cdot 2^4. Now it matches with a = x and b = 2.

Plug into the identity:

x^4 + 64 = (x^2 + 2 \cdot 2^2 - 2 \cdot x \cdot 2)(x^2 + 2 \cdot 2^2 + 2 \cdot x \cdot 2).

Simplify:

x^4 + 64 = (x^2 - 4x + 8)(x^2 + 4x + 8).

Verify by expansion (same trick): (x^2 + 8 - 4x)(x^2 + 8 + 4x) = (x^2 + 8)^2 - (4x)^2 = x^4 + 16x^2 + 64 - 16x^2 = x^4 + 64. Tick.

The recognition reflex: whenever you see x^4 + N, ask "is N four times a fourth power?". 4 = 4 \cdot 1^4, 64 = 4 \cdot 2^4, 324 = 4 \cdot 3^4, 1024 = 4 \cdot 4^4, 2500 = 4 \cdot 5^4. If yes, Sophie Germain applies.

Example 3: A number-theory application — proving $4^4 + 4$ is composite

Sophie Germain's identity is not just an algebra trick. It also proves that certain large numbers are composite without ever doing the full multiplication.

Take N = 4^4 + 4 = 256 + 4 = 260. You can check by hand: 260 = 2 \cdot 2 \cdot 5 \cdot 13. But suppose the number were so large that direct factoring was hopeless — how would you know it isn't prime?

Use the identity with a = 4 and b = 1:

4^4 + 4 \cdot 1^4 = (4^2 + 2 \cdot 1^2 - 2 \cdot 4 \cdot 1)(4^2 + 2 \cdot 1^2 + 2 \cdot 4 \cdot 1).

Simplify each bracket:

= (16 + 2 - 8)(16 + 2 + 8) = (10)(26).

Multiply: 10 \cdot 26 = 260. Tick.

So without knowing in advance that 260 has factors 10 and 26, the identity hands them to you. And 10 = 2 \cdot 5, 26 = 2 \cdot 13, so the full prime factorisation 260 = 2^2 \cdot 5 \cdot 13 falls out.

This generalises. For any n > 1, the number n^4 + 4 is always composite — because Sophie Germain's identity factors it as

n^4 + 4 = (n^2 - 2n + 2)(n^2 + 2n + 2),

and for n \geq 2, both factors are at least 2, so neither can be 1. The expression n^4 + 4 is a polynomial that can never produce primes for n > 1. A small but striking fact.

(Check: at n = 1, the first factor is 1 - 2 + 2 = 1, so 1^4 + 4 = 1 \cdot 5 = 5, which is prime. The compositeness only kicks in from n = 2 onward.)

A bit of history — who was Sophie Germain?

Sophie Germain (1776 – 1831) was a French mathematician who taught herself mathematics from her father's library during the French Revolution. Women were not allowed at the École Polytechnique in Paris, so she submitted papers under a male pseudonym, "Monsieur Le Blanc". Her work caught the attention of Lagrange, then Gauss — who later wrote that her gender made her achievements "infinitely more praiseworthy".

The identity that bears her name appeared in her work on Fermat's Last Theorem — the famous claim that x^n + y^n = z^n has no positive integer solutions for n \geq 3. She made the first major breakthrough on the problem since Fermat himself, proving what is now called Sophie Germain's theorem for a large class of prime exponents. The factoring identity was a side-tool in that work, used to handle expressions of the form x^4 + 4y^4 that arose in her arguments. She never lived to see Fermat's Last Theorem fully proved (Andrew Wiles finished the job in 1995), but her techniques were a central stepping stone for two centuries.

The identity has outlived its original use. Today it shows up in algebra Olympiads, in number-theory problem sets, and — most usefully for you — as the rescue tool when the standard factoring decision tree gives up.

When to reach for it

The recognition cue is narrow but unmistakable. Sophie Germain's identity applies when:

That last condition matters. Always run the standard tree first. Sophie Germain is the special-purpose tool for the case "fourth-degree binomial that resists everything else". Pull it out only when nothing else fits.

For the broader question of why some sums of even powers refuse to factor over the reals, see x² + y² is not factorable over the reals. The Sophie Germain case is the exception that proves the rule: the coefficient of 4 is exactly what makes the add-and-subtract trick work, and without it the expression is genuinely irreducible.

References

  1. Sophie Germain — Wikipedia
  2. Sophie Germain's identity — Wikipedia
  3. Fermat's Last Theorem — Wikipedia
  4. Difference of two squares — Wikipedia
  5. Completing the square — Wikipedia