Question 1065939
(p sin theta- q cos theta)/(p sin theta + q cos theta)
cot theta= cos theta/ sin theta=q/p
So cos theta=q and sin theta = p
p^2-q^2/p^2 + q^2, by substitution.