I've solved this properly by expanding the term in paranthesis then multiplying by x^2, and I think this would also be able to be solved via integration by parts, although not necessary.

Is there an easier way, or rules, to integrating products of the same integrating variable?