Primitive of x cubed by Cosine of a x

Theorem

 * $\ds \int x^3 \map \cos {a x} \rd x = \paren {\frac {3 x^2} {a^2} - \frac 6 {a^4} } \cos a x + \paren {\frac {x^3} a - \frac {6 x} {a^3} } \sin a x + C$

where $C$ is an arbitrary constant.

Proof
With a view to expressing the primitive in the form:
 * $\ds \int u \frac {\d v} {\d x} \rd x = u v - \int v \frac {\d u} {\d x} \rd x$

let:

and let:

Then:

Also see

 * Primitive of $x^3 \sin a x$