If p cos^2(x)+sin^2(x)=r,express cos^2(x) n terms of p and r only?