It doesn't. You need to use the identity
.
So that means
.
When you get to
you can combine some of the squares to get 1.
Note that there is a difference between an equation and an identity.
An identity is true for all x.
An equation is true for certain x for which we solve.