Example 1 — Simple case: \(x^2 + 4x\)
Show solution
Step 1. The coefficient of \(x\) is \(b = 4\). Half of \(b\) is \(2\), and \(2^2 = 4\).
Step 2. Add and subtract \(4\):
\[ \begin{aligned} x^2 + 4x &= \left(x + \frac{4}{2}\right)^2 - \left(\frac{4}{2}\right)^2 \\ &= (x + 2)^2 - 4 \end{aligned} \]Check: \((x + 2)^2 - 4 = x^2 + 4x + 4 - 4 = x^2 + 4x\) ✓