how do I code

Integrate[u[x] D[v[x], x], {x, a, b}] 

to return the following straightforward undergraduate result?

u[b] v[b] - u[a] v[a] - Integrate[v[x] D[u[x], x], {x, a, b}]
  • 4
    $\begingroup$ You don't. In fact, you should perhaps abandon attempts to achieve that. Integration-by-computer is carried out very differently from work done by hand. $\endgroup$
    – MarcoB
    Apr 4, 2019 at 17:48
  • $\begingroup$ Could always define your own little scheme, intbyparts[u_,dv_,a_,b_]=... if you feel up to the task. Need to make sure dv would be pretty easily integrable though. $\endgroup$
    – Shinaolord
    Apr 4, 2019 at 20:23

2 Answers 2


Use WolframAlpha

WolframAlpha["integration by parts (mathematical problem)", \
{{"FormulasPod:FamousMathProblem", 1}, "Content"}]

enter image description here


There's a resource function, based on the the internal utility ResourceFunctionHelpers`IntegrateByParts:

 u[x] D[v[x], x], {x, a, b}]
 u[x] D[v[x], x], {x, a, b}, "Grid"]

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.