for the tangent you need a line of the form y = mx+c

m is the gradient of tan(x) at the point, pi/4.. this can be found by differentiating tan(x) with respect to x

then to find c, you have a point on the line so substitute into your equation and you can find c.

The gradient of the normal is -1/m, where m is the gradient of teh tangent