How do I do this? I am not sure with trig functions.
Take the derivative to get $\displaystyle \cos x$. Plug in $\displaystyle x=\pi$ to get that the slope of the tangent line is $\displaystyle -1$. You are looking for a line with slope $\displaystyle -1$ that goes through the point $\displaystyle (\pi,3)$.