To find the roots, we set each factor equal to zero and solve for \(x\):
\[
x - 7 = 0 \quad \Rightarrow \quad x = 7
\]
\[
x + 3 = 0 \quad \Rightarrow \quad x = -3
\]
Final Answer
The solutions to the equation \(x^2 = 4x + 21\) are:
\[
\boxed{x = 7 \text{ or } x = -3}
\]