The point P P\,P lies on the curve with equation y=cscx−cos2xy = \csc x - \cos 2xy=cscx−cos2x with xxx-coordinate π4\displaystyle \frac{\pi}{4}4π
Find an equation to the tangent to the curve at the point PPP.