The equation of the curve is given by:
Differentiating both sides of the equation with respect to x, we have:
Therefore, the slope of the tangent is given by the value of dy/dx when x= π / 2
Using the point slope formula, it follows that:
Therefore, the equation of the tangent at P is given by:
y = -x + π /2 + 3