The given derivative is:

Integrate w. r. t. theta to get:

Use the formulae given by:

To get the solution as follows:

The given point is P(pi/4,2) so it follows:

Substitute the value to get the required answer as follows:

The above function is the required answer.