Let a<ba<b. Suppose u,v:[a,b]Ru,v:[a,b]\to\mathbb R are continuous on [a,b][a,b], differentiable on (a,b)(a,b), and their derivatives extend to functions on [a,b][a,b]. Then

abu(x)v(x)dx=u(b)v(b)u(a)v(a)abu(x)v(x)dx.\int_a^b u(x)\,v'(x)\,dx = u(b)v(b)-u(a)v(a) - \int_a^b u'(x)\,v(x)\,dx.
Remarks

This is the integral form of the product rule: apply the to (uv)=uv+uv(uv)'=u'v+uv'.