Given: q2−10q+21
Since, the coefficient of q2 is unity.
∴ Adding and subtracting (12× coefficient of q)2
i.e., (–5)2=(5)2
⇒ q2–10q+21
=q2–10q+52–52+21
=(q2–10q+52)−25+21
=(q2–10q+52)−4
=(q–5)2–4
=(q–5)2–22
=(q–5–2)(q–5+2)
=(q–7)(q–3)
Hence, q2−10q+21=(q–7)(q–3)