\(cos\left(x+y\right).cos\left(x-y\right)=\dfrac{1}{2}\left[cos\left(x+y+x-y\right)+cos\left(x+y-x+y\right)\right]\)
\(=\dfrac{1}{2}\left(cos2x+cos2y\right)=\dfrac{1}{2}\left(1-2sin^2x+1-2sin^2y\right)=\dfrac{1}{2}\left(2-2sin^2x-2sin^2y\right)\)
\(=1-sin^2x-sin^2y=cos^2x-sin^2y=cos^2y-sin^2x\)