Solve the following problems.

Show that if \(f,g : \mathbb {R} \to \mathbb {R}\) are of class \(C^1\) and have compact support, then
\[ \int _{\mathbb {R}} fg' = - \int _{\mathbb {R}} f'g . \]