Quote: (1+2i)^2-2(1+2i)+5
If you mean i as in i = sqrt(-1) then
(1+2i)
2 = (1+2i)(1+2i) = (1-4) + (2+2)i = -3+4i
2(1+2i) = 2+4i
so
(1+2i)^2-2(1+2i)+5 = (-3+4i) - (2+4i) + 5 = (-3 - 2 + 5) + (4-4)i = 0
If on the other hand you mean just some variable called i
(1+2i)
2 = 1 + 4i + 4i
2 2(1+2i) = 2 + 4i
so
(1+2i)^2-2(1+2i)+5 = (1 + 4i + 4i
2) - (2 + 4i) + 5 = 4i
2 + (4 - 4)i + (1 - 2 + 5) = 4i
2 + 4 = 4(i
2+1)