We have,
(i)x2+8x+15=(x2+8x+16)–1 [Replacing 15 by 16 – 1]
={(x)2+2×x×4+42}–1=(x+4)2–12
={x+4+1}{(x+4)–1}
=(x+5)(x+3)
(ii)x4+4=x4+4x2+4–4x2
[Adding and subtracting 4x2]
={(x2)2+2×x2×2+22}–4x2
=(x2+2)2–(2x)2
={(x2+2)+2x}{(x2+2)–2x}
=(x2+2x+2)(x2–2x+2)