Let us suppose the angle (defined from a to b clockwise between the vectors isθ,0≤θ≤2πθ,0≤θ≤2π.Then using the parallelogram rule for vector addition,and the law of cosines
|a+b|2=|a|2+|b|2−2|a||b|cosθ
Similarly, recognizing that the angle between a and −b is π−θ,we get
|a−b|2=|a|2+|b|2−2|a||b|cos(π−θ)=|a|2+|b|2+2|a||b|cosθ.
As,|a+b|=|a−b|,
|a|2+|b|2+2|a||b|cosθ=|a|2+|b|2+2|a||b|cosθ
cosθ=0
θ=π2or3π2.