Why Multiply by 1?
Some functions do not have an obvious antiderivative when they appear alone. A useful strategy is to regard the function as a product with \(1\). For example, \(\ln x\) can be written as \((\ln x)(1)\), and \(\arctan x\) can be written as \((\arctan x)(1)\). That form allows us to use integration by parts.
The choice is effective because differentiating a logarithmic or inverse trigonometric function often produces a simpler expression, while the factor \(1\) has the simple antiderivative \(x\). The resulting integral is then manageable using substitution or a familiar derivative.
The Rule and the Setup
Integration by parts follows from the product rule. In its indefinite-integral form, if \(u\) and \(v\) are differentiable functions, then
For an integral such as \(\int \ln x\,dx\), the factor choices are \(u=\ln x\) and \(dv=dx\). Thus \(du=\frac{1}{x}\,dx\) and \(v=x\). The key is not just applying the formula: it is choosing factors so the new integral is easier than the original one.
For these examples, \(dv=dx\), so \(v=x\). The resulting pattern is
provided \(f\) is differentiable on the interval considered. This is the integration-by-parts formula with \(u=f(x)\) and \(dv=dx\). It is not a shortcut that automatically makes every integral easy; the remaining integral still has to be evaluated.
Worked Example: The Natural Logarithm
Worked Example: Integrating \(\ln x\)
Find \(\int \ln x\,dx\) for \(x>0\).
Step 1: Choose the factors. Write the integrand as \((\ln x)(1)\). Let \(u=\ln x\), so \(du=\frac{1}{x}\,dx\), and let \(dv=dx\), so \(v=x\).
Step 2: Apply integration by parts.
Step 3: Simplify and integrate. Since \(x(1/x)=1\) for \(x>0\),
Check: Differentiate the proposed antiderivative:
The derivative matches the integrand, so \(\int \ln x\,dx=x\ln x-x+C\) on \(x>0\).
The product rule is what makes the method work: differentiating \(x\ln x\) produces both \(\ln x\) and \(1\). Subtracting the antiderivative of the extra \(1\) leaves precisely the desired function.
Worked Example: The Inverse Tangent
Worked Example: Integrating \(\arctan x\)
Find \(\int \arctan x\,dx\). The function is defined for all real \(x\), and its derivative is \(\frac{1}{1+x^2}\).
Step 1: Choose the factors. Let \(u=\arctan x\), so \(du=\frac{1}{1+x^2}\,dx\). Let \(dv=dx\), so \(v=x\).
Step 2: Apply integration by parts.
Step 3: Evaluate the remaining integral. In \(\int \frac{x}{1+x^2}\,dx\), the derivative of \(1+x^2\) is \(2x\). Therefore,
because \(1+x^2>0\) for every real \(x\). Substituting this into the parts calculation gives
Check:
The two rational terms cancel, leaving the original integrand.
Worked Example: The Inverse Sine
Worked Example: Integrating \(\arcsin x\)
Find \(\int \arcsin x\,dx\) for \(-1<x<1\). On this interval, \(\frac{d}{dx}(\arcsin x)=\frac{1}{\sqrt{1-x^2}}\).
Step 1: Choose the factors. Let \(u=\arcsin x\), so \(du=\frac{1}{\sqrt{1-x^2}}\,dx\). Let \(dv=dx\), so \(v=x\).
Step 2: Apply integration by parts.
Step 3: Evaluate the remaining integral. Set \(w=1-x^2\). Then \(dw=-2x\,dx\), so \(x\,dx=-\frac{1}{2}\,dw\). Thus
Step 4: Substitute this result back. The minus sign in the parts formula matters:
Check: For \(-1<x<1\),
The derivative is the original integrand. The formula holds on the open interval \((-1,1)\), where the derivative calculation is defined.
Why the Method Works
Here is the product-rule justification in full. Suppose \(u\) and \(v\) are differentiable on an interval. The product rule states
Rearrange to isolate one product of a function and a derivative:
Integrating both sides gives
In differential notation, this is \(\int u\,dv=uv-\int v\,du\). For a logarithm or inverse trigonometric function by itself, choose that function as \(u\), and choose \(dv=dx\). Then \(v=x\), so the new integral contains \(x\) times the derivative of the original function. In the examples, this new integral is simpler and can be completed directly.
Choosing Factors and Checking Domains
For this particular family of integrals, the useful setup is consistent: set the logarithmic or inverse trigonometric function equal to \(u\), and set \(dv=dx\). Reversing that choice is not useful because it would require integrating the logarithmic or inverse trigonometric function in order to obtain \(v\), which is the original problem.
The function’s domain also determines where the result applies. For example, \(\ln x\) requires \(x>0\). On any interval that does not contain zero, one can also integrate \(\ln|x|\): its derivative is \(1/x\), so the same calculation gives
This formula applies separately on intervals \(x<0\) and \(x>0\); \(\ln|x|\) is not defined at \(x=0\). For \(\arcsin x\), keep the derivative calculation inside \((-1,1)\). At the endpoints, the derivative formula used in the example is not defined.
Common Pitfall: Confusing a Derivative with an Antiderivative
A frequent error is to use the derivative of a logarithm as though it were its antiderivative. For instance, the calculation
is incorrect: \(1/x\) is the derivative of \(\ln x\), not an antiderivative of \(\ln x\). Checking by differentiation exposes the problem:
The correction is to use integration by parts, which gives \(x\ln x-x+C\). Its derivative is \(\ln x\), as verified in the worked example.
A second sign-related risk appears when the remaining integral is itself negative, as in the \(\arcsin x\) example. There, \(\int \frac{x}{\sqrt{1-x^2}}\,dx=-\sqrt{1-x^2}\), and the parts formula subtracts that whole result. Keeping the parentheses makes the sign clear: \(-(-\sqrt{1-x^2})=+\sqrt{1-x^2}\).
Check Your Understanding
For each question, state the domain conditions and use differentiation to check any antiderivative you find.
- In \(\int \ln x\,dx\), what choices of \(u\) and \(dv\) make integration by parts useful?
- Find \(\int \arctan x\,dx\) and show how the two rational terms cancel when you differentiate your answer.
- Why does integrating \(\ln x\) as \(1/x+C\) fail? Verify the failure by differentiating \(1/x\).
- Find \(\int \arcsin x\,dx\) for \(-1<x<1\). Where does the plus sign before the square-root term come from?
- On which intervals is the formula \(\int \ln|x|\,dx=x\ln|x|-x+C\) valid?