using the identity a^2 – 2ab + b^2 = (a – b)^2. (iv) p^2 – 2p + 1