Mathwords logoMathwords

Sophie Germain's Identity — Definition, Formula & Example

Sophie Germain's identity is a factoring rule that splits a sum of the form a4+4b4a^4 + 4b^4 into a product of two quadratic factors. It is surprising because sums of squares such as a2+b2a^2 + b^2 usually cannot be factored over the real numbers.

For all real numbers aa and bb (more generally, in any commutative ring), a4+4b4=(a2+2ab+2b2)(a2−2ab+2b2)a^4 + 4b^4 = (a^2 + 2ab + 2b^2)(a^2 - 2ab + 2b^2). Equivalently, a4+4b4=((a+b)2+b2)((a−b)2+b2)a^4 + 4b^4 = \big((a+b)^2 + b^2\big)\big((a-b)^2 + b^2\big).

Key Formula

a4+4b4=(a2+2ab+2b2)(a2−2ab+2b2)a^4 + 4b^4 = (a^2 + 2ab + 2b^2)(a^2 - 2ab + 2b^2)
Where:
  • aa = The quantity whose fourth power is the first term
  • bb = The quantity chosen so that 4b44b^4 equals the second term

How It Works

Add and subtract the middle term 4a2b24a^2b^2 so that a perfect square trinomial appears: a4+4a2b2+4b4−4a2b2a^4 + 4a^2b^2 + 4b^4 - 4a^2b^2. The first three terms form (a2+2b2)2(a^2 + 2b^2)^2, and the last term is (2ab)2(2ab)^2. You now have a difference of squares, (a2+2b2)2−(2ab)2(a^2 + 2b^2)^2 - (2ab)^2, which factors into the two quadratics. To use the identity, match your expression to a4+4b4a^4 + 4b^4 by finding aa and bb.

Worked Example

Problem: Factor x4+64x^4 + 64 using Sophie Germain's identity, then check the result at x=2x = 2.
Step 1: Match the expression to a4+4b4a^4 + 4b^4. Take a=xa = x. You need 4b4=644b^4 = 64, so b4=16b^4 = 16 and b=2b = 2.
4(2)4=4⋅16=644(2)^4 = 4 \cdot 16 = 64
Step 2: Complete the square by adding and subtracting 4a2b2=16x24a^2b^2 = 16x^2, which produces a difference of squares.
x4+64=(x2+8)2−16x2=(x2+8)2−(4x)2x^4 + 64 = (x^2 + 8)^2 - 16x^2 = (x^2 + 8)^2 - (4x)^2
Step 3: Factor the difference of squares. Then check with x=2x = 2: the left side is 16+64=8016 + 64 = 80, and the right side is (4+8+8)(4−8+8)=20⋅4=80(4 + 8 + 8)(4 - 8 + 8) = 20 \cdot 4 = 80.
x4+64=(x2+4x+8)(x2−4x+8)x^4 + 64 = (x^2 + 4x + 8)(x^2 - 4x + 8)
Answer: x4+64=(x2+4x+8)(x2−4x+8)x^4 + 64 = (x^2 + 4x + 8)(x^2 - 4x + 8). Both sides equal 80 when x=2x = 2.

Why It Matters

The identity appears often in AMC and other math competition problems about primes. It shows that n4+4=(n2+2n+2)(n2−2n+2)n^4 + 4 = (n^2 + 2n + 2)(n^2 - 2n + 2), so for every positive integer nn greater than 1 the number n4+4n^4 + 4 is composite. For example, 34+4=85=17⋅53^4 + 4 = 85 = 17 \cdot 5. When n=1n = 1, the smaller factor equals 1, and the value is the prime 5.

Common Mistakes

Mistake: Applying the identity directly to a4+b4a^4 + b^4, such as x4+16x^4 + 16, without accounting for the required factor of 4.
Correction: The second term must equal 4b44b^4. For x4+16x^4 + 16, you need b4=4b^4 = 4, so b=2b = \sqrt{2}. That gives (x2+22x+4)(x2−22x+4)(x^2 + 2\sqrt{2}x + 4)(x^2 - 2\sqrt{2}x + 4), which has irrational coefficients. Find bb before you write the factors.

Related Terms

  • Algebraic Identity — General category of named factoring and expansion rules
  • Identity — Explains why this equation holds for all values
  • Algebra — Field where completing the square and factoring live
  • Factoring — General process this identity applies to factor expressions
  • Difference of Squares — Factoring pattern used to prove this identity