then prove that cosθ = P^2−1/P^2+1