Write
in the form of a perfect square.
Look for the shape before touching the algebra. The three terms are: something squared, twice that same something, and . That is exactly the perfect-square pattern
Recognising it saves expanding to and re-factoring afterwards.
Name the repeated block. Set
Then the expression is literally . The middle term must be (not times something else) for the pattern to apply — here , so it does.
Apply the identity and substitute back.
Pull the common factor out of the bracket. Both terms inside share a factor :
The squared form is usually the preferred final answer because the bracket is fully reduced.
Verify by expanding both sides. The original expands to
and the answer expands to . They agree, and a spot check at gives .
Need to solve a different problem like this? Open the solver →