start with ∫(f⋅g)′dx using product rule for derivatives, =∫(f′⋅g)dx+∫(f⋅g′)dx left side simplifies to f⋅g isolate one derivative with ∫f⋅g′dx=f⋅g−∫f′⋅gdx which gives ∫u⋅v′dx=uv−∫u′⋅vdx where u=f, v=g