a. $f\left( u \right) = cscu$, $u=\pi x+1$
b. $\pi \csc \left( {\pi x + 1} \right) \cdot \cot \left( {\pi x + 1} \right)$