Theory (x+iy)2=(x2−y2)+2xy i(x+iy)^2=(x^2-y^2)+2xy\,i(x+iy)2=(x2−y2)+2xyi. If x+iy=a+bix+iy=a+bix+iy=a+bi, then x=ax=ax=a and y=by=by=b. To simplify a fraction a+bic+di\dfrac{a+bi}{c+di}c+dia+bi, multiply numerator and denominator by c−dic-dic−di.