MatsGranvik

Integration by parts

Jun 15th, 2015 (edited)
408
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. (* https://mathematica.stackexchange.com/questions/37104/algorithm-for-parts-integration *)
  2. (*integration by parts*)
  3. Clear[x]
  4. Part1 = Log[x];
  5. Part2 = 1/x^2;
  6.  
  7. Print["u"]
  8. u = Part1
  9. Print["du"]
  10. du = D[Part1, x]
  11. Print["v"]
  12. v = Integrate[Part2, x]
  13. Print["dv"]
  14. dv = Part2
  15. u*v - Integrate[v*du, x]
  16. Integrate[Part1*Part2, x]
  17. Integrate[Log[x]/x^2, x]
RAW Paste Data Copied