Given:
(a2+3a−5)(a2+3a+2)+6
Let a2+3a be t.
=(t−5)(t+2)+6=t2−5t+2t−10+6=t2−3t−4=t2−4t+t−4=t(t−4)+1(t−4)=(t−4)(t+1)
Substituting the value of t, we get:
=[a2+3a−4](a2+3a+1)=[a2+4a−a−4](a2+3a+1)=[a(a+4)−1(a+4)](a2+3a+1)=(a+4)(a−1)(a2+3a+1)
Hence, (a2+3a−5)(a2+3a+2)+6=(a+4)(a−1)(a2+3a+1).