a^2=a^2(c^2+d^2)=a^2c^2+a^2d^2=a^2c^2+b^2c^2=(a^2+b^2)c^2=c^2.