Integrals of Composite Functions
When integrating a composite function, the first step is to check whether the integrand contains the derivative of the inner function. If it does, I can find an antiderivative of the outer function and then compose it with the inner function, using the following formula:
\[ \int f(g(x))\cdot g'(x)\,dx=F(g(x))+C \]
where:
- \(g(x)\) is the inner function.
- \(g'(x)\) is the derivative of the inner function.
- \(f\) is the outer function.
- \(F\) is an antiderivative of \(f\), so \(F'=f\).
- \(C\) is the constant of integration.
This method is known as the reverse chain rule because it reverses the process used to differentiate composite functions.
The key is to identify the inner function \(g(x)\) and check whether its derivative \(g'(x)\) appears as a factor in the integrand, possibly multiplied by a nonzero constant.
If this condition is satisfied, I can apply the rule directly. If it is not, I may need a different integration technique.
Note. The reverse chain rule is closely related to integration by substitution, commonly called u-substitution. This technique introduces a new variable to simplify an integral and is one of the most widely used methods in integral calculus.
- Why Does the Reverse Chain Rule Work?
- A Worked Example
- What If a Constant Factor Is Missing?
- Not All Composite Functions Can Be Integrated Directly
- When Does the Reverse Chain Rule Not Apply Directly?
- Integration Formulas for Composite Functions
- Integration by Substitution
- The General Change-of-Variables Formula
Why Does the Reverse Chain Rule Work?
The easiest way to understand the reverse chain rule is to start with the familiar chain rule for differentiation.
Suppose I have a composite function of the form:
\[ y=F(g(x)) \]
To differentiate it, I apply the chain rule:
\[ y'=F'(g(x))\cdot g'(x) \]
If I write \(f\) for the derivative of \(F\), the expression becomes:
\[ y'=f(g(x))\cdot g'(x) \]
Now I can reverse the process.
If the integrand has the form \(f(g(x))\cdot g'(x)\), I recognize it as the derivative of \(F(g(x))\). Therefore, its indefinite integral is:
\[ \int f(g(x))\cdot g'(x)\,dx=F(g(x))+C \]
The important detail is the factor \(g'(x)\). It accounts for the derivative of the inner function when the chain rule is applied.
Recognizing this factor is what makes the reverse chain rule so useful.
A Worked Example
Consider the following integral:
\[ \int 2x\cos(x^2)\,dx \]
At first glance, this looks more complicated than the standard integral of cosine. Instead of \(\cos(x)\), the integrand contains \(\cos(x^2)\).
However, the structure of the expression suggests that the reverse chain rule may apply.
I start by identifying the inner function:
\[ g(x)=x^2 \]
Next, I calculate its derivative:
\[ g'(x)=2x \]
Looking back at the original integral, I notice that the factor \(2x\) is already present.
This is exactly what I need to apply the reverse chain rule.
Since an antiderivative of cosine is sine, I obtain:
\[ \int 2x\cos(x^2)\,dx=\sin(x^2)+C \]
To check the result, I differentiate the antiderivative using the chain rule:
\[ \frac{d}{dx}\sin(x^2)=\cos(x^2)\cdot 2x \]
The derivative matches the original integrand, confirming that the integration is correct.
Notice that I did not need to expand or otherwise manipulate the composite function. I only had to recognize the inner function and its derivative.
What If a Constant Factor Is Missing?
Sometimes the derivative of the inner function is almost present in the integrand, but a constant factor is missing.
Consider this integral:
\[ \int x\cos(x^2)\,dx \]
As in the previous example, the inner function is:
\[ g(x)=x^2 \]
Its derivative is:
\[ g'(x)=2x \]
There is one small difference: the integrand contains \(x\), not \(2x\).
Fortunately, I can account for this missing factor without changing the value of the integral.
I multiply the integrand by \(2\) and compensate by placing a factor of \(\frac12\) outside the integral:
\[ \int x\cos(x^2)\,dx= \frac12\int 2x\cos(x^2)\,dx \]
Now the derivative of the inner function appears exactly as required.
Applying the reverse chain rule gives:
\[ \int x\cos(x^2)\,dx=\frac12\sin(x^2)+C \]
By adjusting a constant factor, I have turned the original integral into one that can be evaluated directly.
Note. This technique works when the factor in the integrand differs from the derivative of the inner function by a nonzero constant multiple. However, I cannot arbitrarily introduce or remove factors that depend on \(x\), since doing so would change the integrand.
Not All Composite Functions Can Be Integrated Directly
The reverse chain rule is a useful shortcut, but it does not work directly for every composite function.
Consider the following integral:
\[ \int \cos(x^2)\,dx \]
Once again, I identify the inner function:
\[ g(x)=x^2 \]
Its derivative is:
\[ g'(x)=2x \]
This time, however, the factor \(2x\) is missing entirely. The integrand contains neither \(2x\) nor a nonzero constant multiple of it.
Therefore, I cannot apply the reverse chain rule directly with \(g(x)=x^2\).
For example, it would be incorrect to write:
\[ \int \cos(x^2)\,dx=\sin(x^2)+C \]
I can see why by differentiating the proposed antiderivative:
\[ \frac{d}{dx}\sin(x^2)=2x\cos(x^2) \]
The result contains an extra factor of \(2x\), so it does not match the original integrand.
This illustrates an important difference between differentiation and integration.
The chain rule provides a general method for differentiating compositions of differentiable functions. Integration, however, has no equally general formula for finding an antiderivative of an arbitrary composite function.
Still, the absence of the inner function's derivative does not necessarily mean that an integral cannot be evaluated.
It simply means that the reverse chain rule cannot be applied directly in this form. Another integration method may be needed.
Note. The integral \( \int \cos(x^2)\,dx \) is particularly interesting because it has no antiderivative that can be expressed in terms of elementary functions. Its antiderivative can instead be written using a special function called the Fresnel cosine integral.
When Does the Reverse Chain Rule Not Apply Directly?
Another common mistake is to apply a standard integration formula to a composite function without accounting for the derivative of its inner function.
For example, consider:
\[ \int \sin^2(x)\,dx \]
It may be tempting to treat \(\sin(x)\) as an ordinary variable and apply the power rule for integration.
However, the inner function is \(g(x)=\sin(x)\), and its derivative is \(g'(x)=\cos(x)\).
Since the factor \(\cos(x)\) is missing from the integrand, I cannot apply the power rule directly in this way.
Note. If I incorrectly applied the power rule for integration as though \(\sin(x)\) were the variable of integration, I would obtain: \[ \int \sin^2(x)\,dx \neq \frac{\sin^3(x)}{3}+C \] To understand why this is incorrect, I differentiate the proposed antiderivative: \[ \frac{d}{dx}\left(\frac{\sin^3(x)}{3}\right)=\sin^2(x)\cos(x) \] The derivative contains an additional factor of \(\cos(x)\), so it differs from the original integrand \(\sin^2(x)\). This confirms that the power rule cannot be applied directly.
Instead, I need another approach.
One useful option is the following trigonometric power-reduction identity:
\[ \sin^2(x)=\frac{1-\cos(2x)}{2} \]
This identity allows me to rewrite the integral in a simpler form:
\[ \int \sin^2(x)\,dx=\frac{1}{2}\int(1-\cos(2x))\,dx \]
Now I can integrate term by term, using standard antiderivative formulas and the reverse chain rule:
\[ \int \sin^2(x)\,dx=\frac{x}{2}-\frac{\sin(2x)}{4}+C \]
To verify the answer, I differentiate the result:
\[ \frac{d}{dx}\left(\frac{x}{2}-\frac{\sin(2x)}{4}+C\right)=\frac12-\frac{2\cos(2x)}4=\frac{1-\cos(2x)}2=\sin^2(x) \]
The derivative matches the original integrand, so the result is correct.
This example shows how a trigonometric identity can turn an integral that does not fit the reverse chain rule directly into one that is straightforward to evaluate.
Note. When integrating a composite function, I first look for the derivative of the inner function, possibly up to a nonzero constant factor. If it is present, the reverse chain rule may provide a direct solution. If it is missing, I need to look for another approach, such as an algebraic identity, a trigonometric identity, or a different integration technique.
Integration Formulas for Composite Functions
The reverse chain rule works with many elementary functions. By applying it to powers, exponential functions, logarithms, and trigonometric functions, I can obtain several useful formulas for evaluating integrals.
In the formulas below, \(g(x)\) represents the inner function, and \(g'(x)\) is its derivative. The key is to check whether the derivative of the inner function appears in the integrand, possibly up to a nonzero constant factor.
When it does, I can often evaluate the integral directly without making an explicit substitution.
Integrating Powers of Composite Functions
\[ \int [g(x)]^n g'(x)\,dx= \frac{[g(x)]^{n+1}}{n+1}+C \] where \(n\neq -1\).
For example, consider:
\[ \int 3x^2(x^3+1)^4\,dx \]
I first identify the inner function \(g(x)=x^3+1\). Its derivative is \(g'(x)=3x^2\), which appears as a factor in the integrand.
This means I can apply the power rule directly, increasing the exponent by one and dividing by the new exponent:
\[ \int 3x^2(x^3+1)^4\,dx= \frac{(x^3+1)^5}{5}+C \]
Notice that the inner function \(x^3+1\) remains unchanged.
Integrals That Yield a Natural Logarithm
\[ \int \frac{g'(x)}{g(x)}\,dx= \ln|g(x)|+C \]
This formula is especially useful when the numerator is the derivative of the denominator.
For example:
\[ \int \frac{2x}{x^2+3}\,dx \]
The denominator is \(g(x)=x^2+3\), and its derivative is \(g'(x)=2x\), exactly the expression in the numerator.
I can therefore write:
\[ \int \frac{2x}{x^2+3}\,dx= \ln(x^2+3)+C \]
Here, I do not need absolute value signs because \(x^2+3\) is positive for every real value of \(x\).
Integrating Composite Exponential Functions
\[ \int e^{g(x)}g'(x)\,dx=e^{g(x)}+C \]
The exponential function with base \(e\) is particularly convenient because it is its own derivative.
For example:
\[ \int 6x e^{3x^2}\,dx \]
The inner function in the exponent is \(g(x)=3x^2\), whose derivative is \(g'(x)=6x\).
Since that derivative is already present, I obtain:
\[ \int 6x e^{3x^2}\,dx=e^{3x^2}+C \]
Integrating Composite Exponential Functions with Base a
The same idea applies to exponential functions with bases other than \(e\). In this case, the formula includes an additional factor involving the natural logarithm of the base.
\[ \int a^{g(x)}g'(x)\,dx=\frac{a^{g(x)}}{\ln a}+C \] where \(a>0\) and \(a\neq 1\).
For example:
\[ \int 2x\cdot 3^{x^2}\,dx \]
I identify the inner function \(g(x)=x^2\), whose derivative is \(g'(x)=2x\). The exponential base is \(a=3\).
Applying the formula gives:
\[ \int 2x\cdot 3^{x^2}\,dx=\frac{3^{x^2}}{\ln 3}+C \]
When the base is \(e\), the denominator becomes \(\ln e=1\), so the formula reduces to the one in the previous section.
Integrating the Sine of a Composite Function
\[ \int \sin(g(x))g'(x)\,dx= -\cos(g(x))+C \]
To integrate a sine function using the reverse chain rule, I look for the derivative of its argument.
For example:
\[ \int 3x^2\sin(x^3)\,dx \]
The argument is \(x^3\), and its derivative is \(3x^2\), which is already present in the integrand.
Since an antiderivative of sine is negative cosine, I obtain:
\[ \int 3x^2\sin(x^3)\,dx= -\cos(x^3)+C \]
Integrating the Cosine of a Composite Function
\[ \int \cos(g(x))g'(x)\,dx= \sin(g(x))+C \]
The corresponding formula for cosine follows the same pattern, but the antiderivative is sine without a negative sign.
For example:
\[ \int 5\cos(5x+2)\,dx \]
The inner function is \(g(x)=5x+2\), and its derivative is \(g'(x)=5\).
Therefore:
\[ \int 5\cos(5x+2)\,dx= \sin(5x+2)+C \]
Integrals That Yield the Tangent Function
\[ \int \frac{g'(x)}{\cos^2(g(x))}\,dx=\tan(g(x))+C \]
This formula comes from the derivative of tangent:
\[ \frac{d}{dx}\tan(x)=\sec^2(x)=\frac{1}{\cos^2(x)} \]
For example:
\[ \int \frac{2x}{\cos^2(x^2)}\,dx \]
The inner function is \(g(x)=x^2\), and its derivative \(g'(x)=2x\) appears in the numerator.
I can therefore apply the formula directly:
\[ \int \frac{2x}{\cos^2(x^2)}\,dx=\tan(x^2)+C \]
This result is valid on any interval where \(\cos(x^2)\neq 0\).
Integrals That Yield the Cotangent Function
\[ \int \frac{g'(x)}{\sin^2(g(x))}\,dx=-\cot(g(x))+C \]
The formula for cotangent is similar, but it includes a negative sign because:
\[ \frac{d}{dx}\cot(x)=-\csc^2(x)=-\frac{1}{\sin^2(x)} \]
For example:
\[ \int \frac{3x^2}{\sin^2(x^3)}\,dx \]
I identify \(g(x)=x^3\) and \(g'(x)=3x^2\). Since the derivative appears in the numerator, I obtain:
\[ \int \frac{3x^2}{\sin^2(x^3)}\,dx=-\cot(x^3)+C \]
This result is valid on any interval where \(\sin(x^3)\neq 0\).
Integrals That Yield the Inverse Sine Function
\[ \int \frac{g'(x)}{\sqrt{1-[g(x)]^2}}\,dx=\arcsin(g(x))+C \] where \(|g(x)|<1\).
This formula is useful when the denominator contains a square root of the form \(\sqrt{1-[g(x)]^2}\).
For example:
\[ \int \frac{2x}{\sqrt{1-x^4}}\,dx \]
I identify the inner function \(g(x)=x^2\), whose derivative is \(g'(x)=2x\).
The denominator can be rewritten as:
\[ \sqrt{1-x^4}=\sqrt{1-(x^2)^2} \]
The integral now matches the general formula, giving:
\[ \int \frac{2x}{\sqrt{1-x^4}}\,dx=\arcsin(x^2)+C \]
In this example, the result is valid for \(-1<x<1\), where the denominator is real and nonzero.
Integrals That Yield the Inverse Cosine Function
\[ \int \frac{-g'(x)}{\sqrt{1-[g(x)]^2}}\,dx=\arccos(g(x))+C \] where \(|g(x)|<1\).
The inverse cosine formula is closely related to the inverse sine formula. The main difference is the negative sign in the numerator.
For example:
\[ \int \frac{-2x}{\sqrt{1-x^4}}\,dx \]
As before, the inner function is \(g(x)=x^2\), and its derivative is \(g'(x)=2x\).
The negative sign allows me to apply the inverse cosine formula:
\[ \int \frac{-2x}{\sqrt{1-x^4}}\,dx=\arccos(x^2)+C \]
This result is also valid for \(-1<x<1\).
Note. I do not need to memorize the inverse sine and inverse cosine formulas separately. The identity \(\arcsin(x)+\arccos(x)=\frac{\pi}{2}\) shows that their negatives differ only by a constant. Therefore, I can write: \[ \int \frac{g'(x)}{\sqrt{1-[g(x)]^2}}\,dx=\arcsin(g(x))+C_1=-\arccos(g(x))+C_2 \] where \(C_2=C_1+\frac{\pi}{2}\). Both expressions represent the same family of antiderivatives because the difference is absorbed into the constant of integration.
Integrals That Yield the Inverse Tangent Function
\[ \int \frac{g'(x)}{1+[g(x)]^2}\,dx= \arctan(g(x))+C \]
This formula is useful when the denominator contains \(1\) plus the square of an inner function.
For example:
\[ \int \frac{2x}{1+x^4}\,dx \]
I recognize \(g(x)=x^2\) and \(g'(x)=2x\).
The denominator can be rewritten as:
\[ 1+x^4=1+(x^2)^2 \]
Therefore, I can apply the inverse tangent formula:
\[ \int \frac{2x}{1+x^4}\,dx= \arctan(x^2)+C \]
Integrals That Yield Inverse Sine with a Constant
The inverse sine formula can also be used when the expression under the square root contains a positive constant \(a^2\) instead of \(1\).
\[ \int \frac{g'(x)}{\sqrt{a^2-[g(x)]^2}}\,dx=\arcsin\left(\frac{g(x)}{a}\right)+C \] where \(a>0\) and \(|g(x)|<a\).
For example:
\[ \int \frac{2x}{\sqrt{9-x^4}}\,dx \]
Here, the inner function is \(g(x)=x^2\), its derivative is \(g'(x)=2x\), and \(a=3\) because \(a^2=9\).
Substituting these values into the formula gives:
\[ \int \frac{2x}{\sqrt{9-x^4}}\,dx=\arcsin\left(\frac{x^2}{3}\right)+C \]
The result is valid for \(-\sqrt{3}<x<\sqrt{3}\).
Integrals That Yield Inverse Tangent with a Constant
The inverse tangent formula can be generalized in a similar way when the denominator contains \(a^2\) instead of \(1\).
\[ \int \frac{g'(x)}{a^2+[g(x)]^2}\,dx=\frac{1}{a}\arctan\left(\frac{g(x)}{a}\right)+C \] where \(a\neq 0\).
For example:
\[ \int \frac{2x}{4+x^4}\,dx \]
The inner function is \(g(x)=x^2\), and its derivative is \(g'(x)=2x\). Since \(a^2=4\), I choose \(a=2\).
Applying the formula gives:
\[ \int \frac{2x}{4+x^4}\,dx=\frac{1}{2}\arctan\left(\frac{x^2}{2}\right)+C \]
The factor \(1/2\) comes from the value \(a=2\) in the general formula.
Note. All these formulas apply on intervals where the integrands are defined and the inner functions are differentiable. The key is to recognize a composite function together with the derivative of its inner function. If that derivative differs by a nonzero constant factor, I can adjust the integral by introducing the missing factor and compensating for it outside the integral.
Integration by Substitution
The formulas for integrating composite functions are closely related to integration by substitution, also called u-substitution.
The idea is straightforward: I introduce a new variable to rewrite a complicated integral in a simpler form.
Consider:
\[ \int 3x^2e^{x^3}\,dx \]
The exponent contains the inner function \(x^3\).
I introduce the substitution:
\[ u=x^3 \]
Next, I differentiate to find the differential:
\[ du=3x^2\,dx \]
Notice that the original integral already contains the factor \(3x^2\,dx\). I can replace it with \(du\).
The integral becomes:
\[ \int e^u\,du \]
This is now a standard exponential integral:
\[ \int e^u\,du=e^u+C \]
Finally, I substitute \(u=x^3\) back into the result:
\[ \int 3x^2e^{x^3}\,dx=e^{x^3}+C \]
I obtain exactly the same answer as I would by applying the reverse chain rule directly.
The difference is in the method.
With the reverse chain rule, I recognize the pattern in the integrand and write down the antiderivative. With substitution, I introduce a new variable to make the integral easier to evaluate.
Substitution is particularly useful when the structure of the integrand is not immediately obvious.
The General Change-of-Variables Formula
Integration by substitution is based on the following relationship:
\[ \int f(g(x))g'(x)\,dx=\int f(u)\,du \]
where \(u=g(x)\) and \(du=g'(x)\,dx\).
After making the substitution, I integrate with respect to \(u\). Once I have found an antiderivative, I replace \(u\) with the original expression \(g(x)\).
This gives the final result in terms of the original variable \(x\).
Note. The two integrals in the change-of-variables formula correspond under the substitution \(u=g(x)\). If \(F\) is an antiderivative of \(f\), the result in terms of \(x\) is \(F(g(x))+C\).
What Is the Difference Between Direct Integration and Integration by Substitution?
Both methods rely on the same mathematical principle, but they approach the calculation differently.
With direct integration using the reverse chain rule, I recognize a composite function whose inner derivative also appears in the integrand. I can then write down the antiderivative without explicitly changing variables.
With integration by substitution, I introduce a new variable to transform the original integral into a simpler one before evaluating it.
In practice, the reverse chain rule is a convenient shortcut when the pattern is easy to recognize. Substitution provides a more systematic approach, especially when the structure of the integral is less obvious.
Both methods ultimately work by reversing the chain rule for differentiation.
