Quantum chemistry/Integration by parts

Write a brief summary of how to perform integration by parts.

Example Question:

Use integration by parts to evaluate the expectation value of position ⟨x⟩ for a particle described by the wavefunction