take $u = y^2$ and $dv = \cos 3y ~dy$ in the integration by parts formula $\left( \int u~dv = uv - \int v~du \right)$