Integration by Parts Calculator
Finding an antiderivative of a product like \(x e^x\) or \(\ln x\) often stops students mid‑calculation. Integration by parts transforms these daunting expressions into solvable pieces. Our free Integration by Parts Calculator handles both indefinite and definite integrals while showing every algebraic move.
Common Examples
The calculator accepts standard mathematical notation–polynomials, exponentials, logarithms, trig functions, and their inverses–and automatically selects the optimal split into \(u\) and \(dv\) using the ILATE priority rule. For definite integrals, it substitutes limits after integration and returns a numeric value or simplified expression. Instead of wrestling with repeated substitutions, you see the logic unfold step by step.
What is integration by parts?
Integration by parts is a technique that reverses the product rule for differentiation. The standard formula is:
\[ \int u\,dv = uv - \int v\,du \]Given an integrand that is a product of two functions, you choose one part as \(u\) (to differentiate) and the other as \(dv\) (to integrate). After computing \(du\) and \(v\), you plug everything into the right‑hand side. The goal is to obtain a new integral \(\int v\,du\) that is simpler than the original.
For definite integrals, the formula extends naturally:
\[ \int*{a}^{b} u\,dv = \Big[uv\Big]*{a}^{b} - \int\_{a}^{b} v\,du \]Both versions are handled automatically. The method dates back to Brook Taylor (1715) and remains a cornerstone of single‑variable calculus.
When should you use integration by parts?
The method shines when an integrand is a product of two fundamentally different function types, especially when a simple \(u\)-substitution fails. Typical scenarios include:
- Products of polynomials and exponentials – \(x e^{2x}\)
- Polynomials multiplied by sine or cosine – \(x^2 \cos x\)
- Logarithmic functions standing alone – \(\ln x\,dx\) (treat as \(\ln x \cdot 1\,dx\))
- Inverse trigonometric functions – \(\arctan x\,dx\)
- Products of exponentials and trigonometric functions – \(e^x \sin x\) (cyclic case)
A well‑known mnemonic is the ILATE rule (Inverse trig, Logarithmic, Algebraic, Trigonometric, Exponential), which ranks candidate functions for \(u\). The calculator follows this order but also permits manual selection when a different split yields a faster solution.
How the calculator handles the integration
You do not need to guess \(u\) and \(dv\) manually. Once you enter the integrand and, optionally, the limits, the engine parses the expression, identifies the function types, and applies ILATE to assign \(u\) and \(dv\). It then differentiates \(u\), integrates \(dv\), and substitutes the pieces into the formula.
For definite integrals, the antiderivative is evaluated at the upper and lower limits. The output displays:
- The chosen \(u\) and \(dv\)
- The intermediate results \(du\) and \(v\)
- The transformed integral \(\int v\,du\) (often simplified)
- The final closed‑form answer or numerical value
Cyclic cases (e.g., \(\int e^x \sin x\,dx\)) are detected automatically–the calculator solves the resulting equation for the original integral without looping infinitely.
Step‑by‑step example
Consider \(\int x \cos x\,dx\). The calculator would proceed as follows:
- Identify \(u\) and \(dv\) using ILATE: algebraic \(x\) takes priority over trigonometric \(\cos x\), so \(u = x\) and \(dv = \cos x\,dx\).
- Differentiate and integrate: \(du = 1\cdot dx\), \(v = \sin x\).
- Substitute into the formula: \(\int x \cos x\,dx = x \sin x - \int \sin x\,dx\).
- Solve the remaining integral: \(\int \sin x\,dx = -\cos x + C\).
- Final answer: \(x \sin x + \cos x + C\).
Working through such an example with the calculator side‑by‑side reinforces the technique far better than passive reading.
Tips for mastering integration by parts
- Apply ILATE consistently – Until you develop intuition, the rule prevents dead ends.
- Treat “1” as a hidden factor – Logarithms, inverse trigs, and even standalone arctan are really products with 1. Choose \(dv = 1\,dx\) in those cases.
- Watch for cyclic patterns – If after two applications the original integral reappears, don’t start over. Add the recurring integral to both sides and solve algebraically.
- Use tabular integration for repeated polynomials – When differentiating a polynomial eventually yields zero, tabular integration (the “DI” method) speeds up the work; the calculator employs this shortcut automatically.
- Practice with definite integrals – Plugging in limits often reveals cancellations that simplify the arithmetic.
The Integration by Parts Calculator does more than compute–it demonstrates why each step works. Combine tool‑assisted checking with manual practice to turn a challenging technique into a reliable skill.