Method · EYT-1.3 · Grade 8
Add and subtract to get a difference of two squares: the Sophie Germain identity
The problem
a) Is the number prime or composite?
b) Find all natural numbers such that is a prime number.
Solution
For any numbers , add and subtract , then use the difference of two squares:
The two factors can also be written as and .
a) We have . Let , :
The first factor is at least , and the second factor is larger than the first (since are positive). So the given number is the product of two natural numbers greater than 1, hence it is composite.
b) Consider the cases for .
- : , which is not prime.
- : , which is prime.
- even, : and are both even, so is an even number greater than 2, hence composite.
- odd, : write with . Then . Let , :
Both factors are at least , so is composite.
So the only answer is .
Answer: a) Composite. b) .
How to come up with this idea
A huge number like cannot be worked out and then tested for divisors. To prove it is composite, the surest way is to write it as a product of two numbers greater than 1. The expression is a sum of two fourth powers (after writing ), and a sum is hard to split, whereas a difference of two squares splits easily.
So we ask: which term do we add to turn into a square? It is , because . The part we must subtract, , is also a square, so a difference of two squares appears. Part a is the warm-up; part b asks you to cover every parity case of .
The problem type and where else the technique works
The identity is named after the mathematician Sophie Germain. Adding and subtracting to get a difference of two squares also works for:
- Factorising , , .
- Proving that a very large number is composite without working it out.
- Simplifying algebraic fractions whose numerator or denominator has the form .
Common mistakes
- Showing that the number is a product of two factors but forgetting to check that the smaller factor is greater than 1. If one factor equals 1, the product tells you nothing.
- Writing and losing the factor 4. Check again: .
- In part b, missing or , or forgetting that for even , cannot be written as with an integer, so that case must be handled separately.
A similar problem to practise
Prove that is composite for every positive integer .
Show hint
Write .
Show answer
, and the smaller factor equals .
Worth reading
- LessonLesson 6: Difference of two squares. Square of a sum or a differenceThe difference of two squares is the key step after adding and subtracting a term.
- LessonLesson 9: Factorise the polynomialReview the ways to factorise a polynomial, including adding and subtracting a term.
- Maths dictionaryComposite numberTo prove a number is composite, show one way of writing it as a product of two numbers greater than 1.