U-Substitution With a Constant Inside
Simple overview of finding integrals of where we have a composition of functions and the inner function is linear relationship between a constant and our variable of integration.
Main Idea
Consider
\[\int \cos(3x)dx\]The outside function is cosine, and the inside function is $3x$.
Let’s consider what the antiderivative is in this scenario.
Watch this section: integrating $\cos(3x)$ at 0:00.
The First Guess
A natural first guess is
\[\sin(3x)+C\]because the antiderivative of cosine is sine.
Look what happens when we differentiate $sin(3x)$
\[\frac{d}{dx}\left[\sin(3x)\right]=3\cos(3x)\]There is a $3$ in front of $cos(3x)$ and since $\frac{d}{dx}\left[\sin(3x)\right] = 3cos(3x)\neq cos(3x)$ we know \(\sin(3x)+C\) is not our antiderivative.
Watch this section: checking the first guess at 0:29.
Fixing The Factor Of 3
To cancel the extra $3$ created by the chain rule, we can multiply the last guess by $\frac{1}{3}$ and see if that works
\[\frac{d}{dx}\left[\frac{1}{3}\sin(3x)\right]=\frac{1}{3}\cdot 3\cos(3x)=\cos(3x)\]So the antiderivative is
\[\int \cos(3x) dx=\frac{1}{3}\sin(3x)+C\]Watch this section: fixing the answer with $\frac{1}{3}$ at 1:05.
Doing It With U-Substitution
Let’s now find it using u-substitution
Let
\[u=3x\]Differentiate and solve for $dx$
\[\frac{du}{dx}=3 \qquad du=3dx \qquad dx=\frac{1}{3}du\]Now substitute $u$ for $3x$ and $\frac{1}{3}du$ for $dx$:
\[\int \cos(3x)dx =\int \cos(u)\cdot \frac{1}{3}du =\frac{1}{3}\int \cos(u)du\]Integrate in terms of $u$ and then replace $u$ with $3x$:
\[\frac{1}{3}\sin(u)+C = \frac{1}{3}\sin(3x)+C\]Notice we get the same result using u-substitution.
Watch this section: solving again with u-substitution at 1:45.
The Shortcut For $f(kx)$
When the inside is $kx$ with $k\ne 0$, and there is no extra $x$ factor outside, take the outside antiderivative, keep the inside expression, and divide by $k$.
Consider
\[\int f(kx)dx=\frac{1}{k}F(kx)+C \qquad F'(x)=f(x)\text{ where } k\ne 0\]Watch this section: shortcut for $f(kx)$ at 3:02.
Timestamp Guide
Related Calculus Work
For a longer u-substitution walkthrough with three examples, use the u-substitution companion.
If the outside function is a power of $x$ instead, review the integration power rule. For why indefinite integral answers include $+C$, use the constant of integration notes.
The video description also links to the full JoeCMath u-substitution playlist: watch the u-substitution playlist on YouTube.