Note that the common factor appears in all the terms. This means you can factor this whole parenthesis out, which is what is done in the answer.
You know that
Now you get:
So, the answer just leavs the other terms as they are and we get the same answer as you wrote.
If you want me to explain better let me know!