The difference of two squares
One pattern comes up so often that it is worth knowing by heart. A square minus another square can always be factorised like this:
We can check it by multiplying out the right-hand side: a times a is a squared, a times b and minus b times a cancel each other, and minus b times b is minus b squared. That leaves a squared minus b squared.
A picture of it
Take a square a wide, and cut a smaller square b wide out of its corner. What is left has the area a squared minus b squared. Cut that L shape in two along the dotted line, and lay the pieces end to end: they make a rectangle a plus b long and a minus b wide, whose area is the quantity a minus b, the quantity a plus b. The area hasn't changed, so the two are equal.
Spotting it
The pattern fits whenever we have one square minus another:
since 4 x squared is 2 x squared and 25 is 5 squared. A plus between the squares, as in x squared plus 9, doesn't fit: that can't be factorised at all.
Used in an equation, it solves x squared minus 9 equals 0 as the quantity x minus 3, the quantity x plus 3, equals 0, so x equals 3 or x equals minus 3, as the zero-product rule says.
With roots
The pattern works for any two things that are squares, including square roots. x is the square of the square root of x, and 9 is the square of 3, so
That is how roots are cleared away in Factorise and cancel.
A square minus a square is the difference times the sum: a squared minus b squared equals the quantity a minus b, the quantity a plus b.