Differentiation is "linear" meaning you can tackle sums one term at a time. So $\sin(\pi x)$ and $\cos(\pi x)$ can be differentiated separately and then put back together.
As for each of those terms, $\sin(\pi x)$ can be pulled apart as: $y=\sin(u)$ and $u=\pi x$. Then the chain rule says: $$\frac{dy}{dx} = \frac{dy}{du}\frac{du}{dx} = \cos(u) \cdot \pi = \pi \cos(\pi x)$$
Likewise for the cosine term. So...
$$\frac{d}{dx}\left[\sin(\pi x)+\cos(\pi x)\right] = \pi \cos(\pi x) - \pi \sin(\pi x)$$
Putting this together with the quotient rule one finds that...
$$\frac{d}{dx}\left[\frac{\cos(\pi x)}{\sin(\pi x)+\cos(\pi x)}\right]$$ $$= \frac{-\pi \sin(\pi x)\left(\sin(\pi x)+\cos(\pi x)\right)-\cos(\pi x)\left(\pi \cos(\pi x) - \pi \sin(\pi x)\right)}{\left(\sin(\pi x)+\cos(\pi x)\right)^2}$$
I'll leave it to you to simplify. :)