Integration as the Reverse of Differentiation
Differentiating is the process by which when \(y\) is given us (as a function of \(x\)), we can find \(\dfrac{dy}{dx}\).
Like every other mathematical operation, the process of differentiation may be reversed; thus, if differentiating \(y = x^4\) gives us \(\dfrac{dy}{dx} = 4x^3\); if one begins with \(\dfrac{dy}{dx} = 4x^3\) one would say that reversing the process would yield \(y = x^4\). But here comes in a curious point. We should get \(\dfrac{dy}{dx} = 4x^3\) if we had begun with any of the following: \(x^4\), or \(x^4 + a\), or \(x^4 + c\), or \(x^4\) with any added constant. So it is clear that in working backwards from \(\dfrac{dy}{dx}\) to \(y\), one must make provision for the possibility of there being an added constant, the value of which will be undetermined until ascertained in some other way. So, if differentiating \(x^n\) yields \(nx^{n-1}\), going backwards from \(\dfrac{dy}{dx} = nx^{n-1}\) will give us \(y = x^n + C\); where \(C\) stands for the yet undetermined possible constant.
Clearly, in dealing with powers of \(x\), the rule for working backwards will be: Increase the power by \(1\), then divide by that increased power, and add the undetermined constant.
So, in the case where \[\frac{dy}{dx} = x^n,\] working backwards, we get \[y = \frac{1}{n + 1} x^{n+1} + C.\]
If differentiating the equation \(y = ax^n\) gives us \[\frac{dy}{dx} = anx^{n-1},\] it is a matter of common sense that beginning with \[\frac{dy}{dx} = anx^{n-1},\] and reversing the process, will give us \[y = ax^n.\] So, when we are dealing with a multiplying constant, we must simply put the constant as a multiplier of the result of the integration.
Thus, if \(\dfrac{dy}{dx} = 4x^2\), the reverse process gives us \(y = \frac{4}{3}x^3\).
But this is incomplete. For we must remember that if we had started with \[y = ax^n + C,\] where \(C\) is any constant quantity whatever, we should equally have found \[\frac{dy}{dx} = anx^{n-1}.\]
So, therefore, when we reverse the process we must always remember to add on this undetermined constant, even if we do not yet know what its value will be.
This process, the reverse of differentiating, is called integration; for it consists in finding the value of the whole quantity \(y\) when you are given only an expression for \(dy\) or for \(\dfrac{dy}{dx}\). Hitherto we have as much as possible kept \(dy\) and \(dx\) together as a derivative: henceforth we shall more often have to separate them.
If we begin with a simple case, \[\frac{dy}{dx} = x^2,\] we may write this, if we like, as \[dy = x^2\, dx.\]
Now this is a “differential equation” which informs us that an element of \(y\) is equal to the corresponding element of \(x\) multiplied by \(x^2\). Now, what we want is the integral; therefore, write down with the proper symbol the instructions to integrate both sides, thus: \[\int dy = \int x^2\, dx.\]
[Note as to reading integrals: the above would be read thus:
“Integral dee-wy equals integral eks-squared dee-eks.”]
We haven’t yet integrated: we have only written down instructions to integrate—if we can. Let us try. Plenty of other fools can do it—why not we also? The left-hand side is simplicity itself. The sum of all the bits of \(y\) is the same thing as \(y\) itself. So we may at once put: \[y = \int x^2\, dx.\]
But when we come to the right-hand side of the equation we must remember that what we have got to sum up together is not all the \(dx\)’s, but all such terms as \(x^2\, dx\); and this will not be the same as \(\displaystyle x^2 \int dx\), because \(x^2\) is not a constant. For some of the \(dx\)’s will be multiplied by big values of \(x^2\), and some will be multiplied by small values of \(x^2\), according to what \(x\) happens to be. So we must bethink ourselves as to what we know about this process of integration being the reverse of differentiation. Now, our rule for this reversed process when dealing with \(x^n\) is “increase the power by one, and divide by the same number as this increased power.” That is to say, \(x^2\, dx\) will be changed1 to \(\frac{1}{3} x^3\). Put this into the equation; but don’t forget to add the “constant of integration” \(C\) at the end. So we get: \[y = \frac{1}{3} x^3 + C.\]
You have actually performed the integration. How easy!
Let us try another simple case.
Let \[\dfrac{dy}{dx} = ax^{12},\] where \(a\) is any constant multiplier. Well, we found when differentiating that any constant factor in the value of \(y\) reappeared unchanged in the value of \(\dfrac{dy}{dx}\). In the reversed process of integrating, it will therefore also reappear in the value of \(y\). So we may go to work as before, thus \[\begin{align} dy &= ax^{12} \cdot dx,\\ \int dy &= \int ax^{12} \cdot dx,\\ \int dy &= a \int x^{12}\, dx,\\ y &= a \times \frac{1}{13} x^{13} + C. \end{align}\]
So that is done. How easy!
We begin to realize now that integrating is a process of finding our way back, as compared with differentiating. If ever, during differentiating, we have found any particular expression—in this example \(ax^{12}\)—we can find our way back to the \(y\) from which it was derived. The contrast between the two processes may be illustrated by the following remark due to a well-known teacher. If a stranger were set down in Trafalgar Square, and told to find his way to Euston Station, he might find the task hopeless. But if he had previously been personally conducted from Euston Station to Trafalgar Square, it would be comparatively easy to him to find his way back to Euston Station.
Integration of the Sum or Difference of Two Functions
Let \[\begin{align} \frac{dy}{dx} &= x^2 + x^3, \end{align}\] then \[\begin{align} dy &= x^2\, dx + x^3\, dx. \end{align}\]
There is no reason why we should not integrate each term separately: for, as may be seen before, we found that when we differentiated the sum of two separate functions, the derivative was simply the sum of the two separate differentiations. So, when we work backwards, integrating, the integration will be simply the sum of the two separate integrations.
Our instructions will then be: \[\begin{align} \int dy &= \int (x^2 + x^3)\, dx \\ &= \int x^2\, dx + \int x^3\, dx \\ y &= \frac{1}{3} x^3 + \frac{1}{4} x^4 + C. \end{align}\]
If either of the terms had been a negative quantity, the corresponding term in the integral would have also been negative. So that differences are as readily dealt with as sums.
How to Deal with Constant Terms
Suppose there is in the expression to be integrated a constant term—such as this: \[\frac{dy}{dx} = x^n + b.\]
This is laughably easy. For you have only to remember that when you differentiated the expression \(y = ax\), the result was \(\dfrac{dy}{dx} = a\). Hence, when you work the other way and integrate, the constant reappears multiplied by \(x\). So we get \[\begin{align} dy &= x^n\, dx + b \cdot dx, \\ \int dy &= \int x^n\, dx + \int b\, dx, \\ y &= \frac{1}{n+1} x^{n+1} + bx + C. \end{align}\]
Here are a lot of examples on which to try your newly acquired powers.
Examples
Example 18.1. Given \(\dfrac{dy}{dx} = 24x^{11}\). Find \(y\).
Ans. \(y = 2x^{12} + C\).
Example 18.2. Find \(\displaystyle \int (a + b)(x + 1)\, dx\).
Solution. It is \[(a + b) \int (x + 1)\, dx\] or \[(a+b)\left(\int x\,dx+\int dx\right)\] or \[(a + b) \left(\dfrac{x^2}{2} + x\right) + C.\]
Example 18.3. Given \(\dfrac{du}{dt} = gt^{\frac{1}{2}}\). Find \(u\).
Ans. \(u = \frac{2}{3} gt^{\frac{3}{2}} + C\).
Example 18.4. If \(\dfrac{dy}{dx} = x^3 - x^2 + x\), find \(y\).
Solution. \[\begin{align} dy &= (x^3 - x^2 + x)\, dx\quad\text{or} \\ dy &= x^3\, dx - x^2\, dx + x\, dx;\\ y &= \int x^3\, dx - \int x^2\, dx + \int x\, dx; \end{align}\]
and \[y = \frac{1}{4} x^4 - \frac{1}{3} x^3 + \frac{1}{2} x^2 + C.\]
Example 18.5. Integrate \(9.75x^{2.25}\, dx\). \[\text{Ans}.\ y = 3x^{3.25} + C.\]
All these are easy enough. Let us try another case.
Let \[\begin{align} \dfrac{dy}{dx} &= ax^{-1}. \end{align}\]
Proceeding as before, we will write \[\begin{align} dy &= a x^{-1} \cdot dx,\\ \int dy &= a \int x^{-1}\, dx. \end{align}\]
Well, but what is the integral of \(x^{-1}\, dx\)?
If you look back amongst the results of differentiating \(x^2\) and \(x^3\) and \(x^n\), etc., you will find we never got \(x^{-1}\) from any one of them as the value of \(\dfrac{dy}{dx}\). We got \(3x^2\) from \(x^3\); we got \(2x\) from \(x^2\); we got \(1\) from \(x^1\) (that is, from \(x\) itself); but we did not get \(x^{-1}\) from \(x^0\), for two very good reasons. First, \(x^0\) is simply \(= 1\), and is a constant, and the derivative of a constant is zero (not \(x^{-1}\)). Secondly, even if we differentiate it by the Power Rule, its derivative would be \(0 \times x^{-1}\), and that multiplication by zero gives it zero value!2 Therefore, when we now come to try to integrate \(x^{-1}\, dx\), we see that it does not come in anywhere in the powers of \(x\) that are given by the rule: \[\int x^n\, dx = \dfrac{1}{n+1} x^{n+1}+C.\] It is an exceptional case.
Well; but try again. Look through all the various derivatives obtained from various functions of \(x\), and try to find amongst them \(x^{-1}\). A sufficient search will show that we actually did get \(\dfrac{dy}{dx} = x^{-1}\) as the result of differentiating the function \(y = \ln x\) (see here).
Then, of course, since we know that differentiating \(\ln x\) gives us \(x^{-1}\), we know that, by reversing the process, integrating \(dy = x^{-1}\, dx\) will give us \(y = \ln x\). But we must not forget the constant factor \(a\) that was given, nor must we omit to add the undetermined constant of integration. This then gives us as the solution to the present problem, \[y = a \ln x + C.\] The above formula is not acceptable when \(x\) is negative as logarithms of negative numbers are imaginary. Now the question is: What function when differentiated gives \(x^{-1}\) when \(x<0\)? When \(x<0\), we can take the logarithm of \(-x\) as \(-x>0\). Let’s see what the derivative of \(\ln(-x)\) is. To differentiate \(\ln(-x)\), let \(u=-x\) and then apply the Chain Rule: \[\begin{align} \frac{d(\ln(-x))}{dx}&=\frac{d(\ln u)}{du}\cdot\frac{du}{dx}\\ &=\frac{1}{u}\times (-1)\\ &=\frac{1}{-x}\times(-1)\\ &=\frac{1}{x} \end{align}\] Hence \[\dfrac{d(\ln(-x))}{dx}=\frac{1}{x} \qquad\text{when }x<0.\] Since differentiating \(\ln(-x)\) gives us \(x^{-1}\) for \(x<0\), integrating \(dy=x^{-1}dx\) for \(x<0\) will give us \(y=\ln(-x)\). Knowing this we can write \[\int \frac{1}{x}dx=\left\{\begin{align} &\ln x+C_1 &&\text{if }x>0\\ &\ln(-x)+C_2 &&\text{if }x<0 \end{align}\right.\] where \(C_1\) and \(C_2\) are two arbitrary constants that do not need to be equal. For any interval not containing \(x=0\), we can combine these two cases and write \[\int\frac{1}{x}dx=\ln |x|+C\] where \(|x|\) is called the absolute value of \(x\) and is defined as \[|x|=\left\{\begin{align} &x &&\text{if }x\geq 0\\ &-x &&\text{if }x<0 \end{align}\right.\] Therefore, \[\int\frac{a}{x}dx=a\ln|x|+C.\]
In summary \[\bbox[5px,border:1px solid black;background-color:#f2f2f2]{\displaystyle \int{x^n dx}=\left\{\begin{align} &\frac{1}{n+1}x^{n+1}+C &&(n\neq -1)\\[9pt] &\ln|x|+C && (n=-1) \end{align}\right.}\]
Note—Here note this very remarkable fact, that we could not have integrated in the above case if we had not happened to know the corresponding differentiation. If no one had found out that differentiating \(\ln x\) gave \(x^{-1}\), we should have been utterly stuck by the problem how to integrate \(x^{-1}\, dx\). Indeed it should be frankly admitted that this is one of the curious features of the integral calculus:—that you can’t integrate anything before the reverse process of differentiating something else has yielded that expression which you want to integrate. No one, even today, is able to find the general integral of the expression, \[\frac{dy}{dx} = a^{-x^2},\] because \(a^{-x^2}\) has never yet been found to result from differentiating anything else.
Another simple case:
Example 18.6. Find \(\int (x + 1)(x + 2)\, dx\).
Solution. On looking at the function to be integrated, you remark that it is the product of two different functions of \(x\). You could, you think, integrate \((x + 1)\, dx\) by itself, or \((x + 2)\, dx\) by itself. Of course you could. But what to do with a product? None of the differentiations you have learned have yielded you for the derivative a product like this. Failing such, the simplest thing is to multiply up the two functions, and then integrate. This gives us \[\int (x^2 + 3x + 2)\, dx.\] And this is the same as \[\int x^2\, dx + \int 3x\, dx + \int 2\, dx.\] And performing the integrations, we get \[\frac{1}{3} x^3 + \frac{3}{2} x^2 + 2x + C.\]
Some other Integrals
Now that we know that integration is the reverse of differentiation, we may at once look up the derivatives we already know, and see from what functions they were derived. This gives us the following integrals ready made: \begin{align} &\boldsymbol{y} && && \int \boldsymbol{y\, dx} && \\ \hline\\ &x^{-1}; &&\qquad && \int x^{-1}\, dx &&= \ln |x| + C. \\ % %\label{intex2} &\frac{1}{x+a}; && && \int \frac{1}{x+a}\, dx &&= \ln |x+a| + C. \\ % &e^x; && && \int e^x\, dx &&= e ^x + C. \\ % &e^{-x}; &&&& \int e^{-x}\, dx &&= -e^{-x} + C % \end{align} (for if \(y = - \dfrac{1}{e^x}\),\(\dfrac{dy}{dx} = -\dfrac{e^x \times 0 - 1 \times e^x}{e^{2x}} = e^{-x}\)). \begin{align} &\sin x; && && \int \sin x\, dx &&= -\cos x + C. \\ % &\cos x; && && \int \cos x\, dx &&= \sin x + C. \\ \end{align} Also we may deduce the following: \[\begin{align} &\ln x; &&&& \int\ln x\, dx &&= x(\ln x - 1) + C \end{align}\] (for if \(y = x \ln x - x\),\(\dfrac{dy}{dx} = \dfrac{x}{x} + \ln x - 1 = \ln x\)). \[\begin{align} &\log_{10} x; &&&& \int\log_{10} x\, dx &&= \frac{1}{\ln 10} x (\ln x - 1) + C. \end{align}\] (for \(\displaystyle \log_{10}x=\frac{\ln x}{\ln 10}\) and \(\displaystyle \int \ln x\, dx=x(\ln x-1)+\text{some constant}\)) \\begin{align} &a^x; && && \int a^x\, dx &&= \dfrac{a^x}{\ln a} + C. \\ % % \label{cosax} &\cos ax; &&&& \int\cos ax\, dx &&= \frac{1}{a} \sin ax + C \end{align} (for if \(y = \sin ax\), \(\dfrac{dy}{dx} = a \cos ax\); hence to get \(\cos ax\) one must differentiate \(y = \dfrac{1}{a} \sin ax\)). \[\begin{align} &\sin ax; &&&& \int\sin ax\, dx &&= -\frac{1}{a} \cos ax + C. \end{align}\]
Try also \(\cos^2\theta\); a little dodge will simplify matters: \[\begin{gathered} \cos 2\theta = \cos^2\theta - \sin^2\theta = {2\cos^2 \theta - 1}; \end{gathered}\] hence \[\begin{gathered} \cos^2\theta = \frac{1}{2}({\cos 2\theta + 1}), \end{gathered}\]
and \[\begin{align} \int\cos^2 \theta\, d\theta &= \frac{1}{2} \int (\cos 2\theta + 1)\, d\theta \\ &= \frac{1}{2} \int \cos 2 \theta\, d\theta + \frac{1}{2} \int d\theta. \\ &= \frac{\sin 2\theta}{4} + \frac{\theta}{2} + C. \end{align}\] (see also here).
See also the Table of Standard Forms. You should make such a table for yourself, putting in it only the general functions which you have successfully differentiated and integrated. See to it that it grows steadily!
Exercises
Exercise 18.1. Find \(\displaystyle \int y\, dx\) when \(y^2 = 4 ax\).
Answer
\(\dfrac{4\sqrt{a} x^{\frac{3}{2}}}{3} + C\).
Solution
If \(y>0\), then \(y=2 \sqrt{a x}\) (assuming \(a>0\) ). Then
\[\begin{align} \int y d x & =\int 2 \sqrt{a} x^{\frac{1}{2}} d x \\ & =2 \sqrt{a} \int x^{\frac{1}{2}} d x \\ & =2 \sqrt{a} \frac{1}{1+\frac{1}{2}} x^{1+\frac{1}{2}}+C \\ & =\frac{4}{3} \sqrt{a} x^{\frac{3}{2}}+C \end{align}\]
If \(y<0\), then \(y=-2 \sqrt{a x}\) and
\[\int y d x=-\frac{4 \sqrt{a}}{3} x^{\frac{3}{2}}+C .\]
Exercise 18.2. Find \(\displaystyle \int \dfrac{3}{x^4}\, dx\).
Answer
\(-\dfrac{1}{x^3} + C\).
Solution
\[\begin{align} \int \frac{3}{x^{4}} d x & =3 \int x^{-4} d x \\ & =3 x \frac{1}{-3} x^{-3}+C \\ & =-x^{-3}+C \\ & =-\frac{1}{x^{3}}+C \end{align}\]
Exercise 18.3. Find \(\displaystyle \int \dfrac{1}{a} x^3\, dx\).
Answer
\(\dfrac{x^4}{4a} + C\).
Solution
\[\begin{align} \int \frac{1}{a} x^{3} d x & =\frac{1}{a} \times \frac{1}{4} x^{4}+C \\ & =\frac{1}{4 a} x^{4}+C \end{align}\]
Exercise 18.4. Find \(\displaystyle \int (x^2 + a)\, dx\).
Answer
\(\dfrac{1}{3} x^3 + ax + C\).
Solution
\[\begin{align} \int\left(x^{2}+a\right) d x & =\int x^{2} d x+a \int d x \\ & =\frac{1}{3} x^{3}+a x+C \end{align}\]
Exercise 18.5. Integrate \(5x^{-\frac{7}{2}}\).
Answer
\(-2x^{-\frac{5}{2}} + C\).
Solution
\[\begin{align} \int 5 x^{-\frac{7}{2}} d x & =5\left(-\frac{2}{5}\right) x^{-\frac{5}{2}}+C \\ & =-2 x^{-\frac{5}{2}}+C \end{align}\]
Exercise 18.6. Find \(\displaystyle \int (4x^3 + 3x^2 + 2x + 1)\, dx\).
Answer
\(x^4 + x^3 + x^2 + x + C\).
Solution
\[\begin{align} \int\left(4 x^{3}+3 x^{2}+2 x+1\right) d x & =4 \int x^{3} d x+3 \int x^{2} d x+2 \int x d x+\int d x \\ & =4 \times \frac{1}{4} x^{4}+3 x \frac{1}{3} x^{3}+2 \times \frac{1}{2} x^{2}+x+C \\ & =x^{4}+x^{3}+x^{2}+x+C \end{align}\]
Exercise 18.7. If \(\dfrac{dy}{dx} = \dfrac{ax}{2} + \dfrac{bx^2}{3} + \dfrac{cx^3}{4}\); find \(y\).
Answer
\(\dfrac{ax^2}{4} + \dfrac{bx^3}{9} + \dfrac{cx^4}{16} + C\).
Solution
\[\frac{d y}{d x}=\frac{a x}{2}+\frac{b x^{2}}{3}+\frac{c x^{3}}{4}\]
Then
\[\begin{align} d y & =\left(\frac{a x}{2}+\frac{b x^{2}}{3}+\frac{c x^{3}}{4}\right) d x \\ \int d y & =\int\left(\frac{a x}{2}+\frac{b x^{2}}{3}+\frac{c x^{3}}{4}\right) d x \\ y & =\frac{a}{2} \int x d x+\frac{b}{3} \int x^{2} d x+\frac{c}{4} \int x^{3} d x \\ & =\frac{a}{2} \times \frac{1}{2} x^{2}+\frac{b}{3} \times \frac{1}{3} x^{3}+\frac{c}{4} \times \frac{1}{4} x^{4}+C \\ & =\frac{a}{4} x^{2}+\frac{b}{9} x^{3}+\frac{c}{16} x^{4}+C \end{align}\]
Exercise 18.8. Find \(\displaystyle \int \left(\frac{x^2 + a}{x + a}\right) dx\).
Answer
\(\dfrac{x^2}{2} - ax + (a^2 + a)\ln |x + a| + C\).
Solution
By division we have \[\frac{x^2+a}{x+a}=x-a+\frac{a^2+a}{x+a}.\] Therefore, \[\int\left(\frac{x^{2}+a}{x+a}\right) d x=\int\left(x-a+\frac{a^{2}+a}{x+a}\right) d x\]
\[\begin{align} & =\int x d x-a \int d x+\left(a^{2}+a\right) \int \frac{d x}{x+a} \\ & =\frac{x^{2}}{2}-a x+\left(a^{2}+a\right) \ln |x+a|+C \end{align}\]
Exercise 18.9. Find \(\displaystyle\int (x + 3)^3\, dx\).
Answer
\(\dfrac{x^4}{4} + 3x^3 + \dfrac{27}{2} x^2 + 27x + C\).
Solution
\[\int(x+3)^{3} d x\]
Since \[\begin{align} (x+3)^{3} & =x^{3}+3 \times 3 x^{2}+3 \times 3^{2} \times x+3^{3} \\ & =x^{3}+9 x^{2}+27 x+27 \end{align}\] we have \[\begin{align} \int(x+3)^{3} d x & =\int x^{3} d x+9 \int x^{2} d x+27 \int x d x+\int 27 d x \\ & =\frac{1}{4} x^{4}+3 x^{3}+\frac{27}{2} x^{2}+27 x+c \end{align}\]
Exercise 18.10. Find \(\displaystyle\int (x + 2)(x - a)\, dx\).
Answer
\(\dfrac{x^3}{3} + \dfrac{2 - a}{2} x^2 - 2ax + C\).
Solution
\[(x+2)(x-a)=x^{2}+(2-a) x-2 a\]
Therefore
\[\begin{align} \int(x+2)(x-a) d x & =\int x^{2} d x+(2-a) \int x d x-2 a \int d x \\ & =\frac{1}{3} x^{3}+\frac{2-a}{2} x^{2}-2 a x+C \end{align}\]
Exercise 18.11. Find \(\displaystyle\int \left(\sqrt x + \sqrt[3]{x}\right) 3a^2\, dx\).
Answer
\(a^2(2x^{\frac{3}{2}} + \tfrac{9}{4} x^{\frac{4}{3}}) + C\)
Solution
\[\begin{align} \int(\sqrt{x}+\sqrt[3]{x}) 3 a^{2} d x & =3 a^{2} \int\left(x^{\frac{1}{2}}+x^{\frac{1}{3}}\right) d x \\ & =3 a^{2}\left[\int x^{\frac{1}{2}} d x+\int x^{\frac{1}{3}} d x\right] \\ & =3 a^{2}\left[\frac{2}{3} x^{\frac{3}{2}}+\frac{3}{4} x^{\frac{4}{3}}\right]+C \\ & =2 a^{2} x^{\frac{3}{2}}+\frac{9 a^{2}}{4} x^{\frac{4}{3}}+C \end{align}\]
Exercise 18.12. Find \(\displaystyle\int \left(\sin \theta - \frac{1}{2}\right)\, \frac{d\theta}{3}\).
Answer
\(-\dfrac{1}{3} \cos\theta - \tfrac{1}{6} \theta + C\).
Solution
\[\begin{align} \int\left(\sin \theta-\frac{1}{2}\right) \frac{d \theta}{3} & =\frac{1}{3} \int\left(\sin \theta-\frac{1}{2}\right) d \theta \\ & =\frac{1}{3}\left[\int \sin \theta d \theta-\frac{1}{2} \int d \theta\right] \\ & =\frac{1}{3}\left[-\cos \theta-\frac{1}{2} \theta\right]+C \\ & =-\frac{1}{3} \cos \theta+\frac{1}{6} \theta+C \end{align}\]
Exercise 18.13. Find \(\displaystyle\int \cos^2 a \theta\, d\theta\).
Answer
\(\dfrac{\theta}{2} + \dfrac{\sin 2a\theta}{4a} + C\).
Solution
\[\cos ^{2} a \theta=\frac{1-\cos (2 a \theta)}{2}\]
Therefore
\[\begin{align} \int \cos ^{2} a \theta d \theta & =\int \frac{1+\cos (2 a \theta)}{2} d \theta \\ & =\frac{1}{2} \int[1+\cos (2 a \theta)] d \theta\\ &=\frac{1}{2}\left\{\int d \theta+\int \cos (2 a \theta) d \theta\right\} \end{align}\]
In this chapter, we learned that
\[\int \cos (A x) d x=\frac{1}{A} \sin A x+C\]
In this formula, if we replace \(A\) by \(2 a\) and \(x\) by \(\theta\), We \(\operatorname{con}\) find \(\int \cos (2 a \theta) d \theta\).
Hence
\[\begin{align} \int \cos ^{2} a \theta d \theta&=\frac{1}{2} \theta+\frac{1}{2} \times \frac{1}{2 a} \sin (2 a \theta)+C\\ &=\frac{1}{2}\theta+\frac{1}{4a}\sin (2a\theta)+C. \end{align}\]
Exercise 18.14. Find \(\displaystyle\int \sin^2 \theta\, d\theta\).
Answer
\(\dfrac{\theta}{2} - \dfrac{\sin 2\theta}{4} + C\).
Solution
\[\sin ^{2} \theta=\frac{1-\cos 2 \theta}{2}\]
Therefore
\[\begin{align} \int \sin ^{2} \theta d \theta & =\frac{1}{2} \int(1-\cos 2 \theta) d \theta \\ & =\frac{1}{2}\left[\int d \theta-\int \cos 2 \theta d \theta\right] \\ & =\frac{1}{2}\left[\theta-\frac{1}{2} \sin 2 \theta\right]+C \\ & =\frac{1}{2} \theta-\frac{1}{4} \sin 2 \theta+C \end{align}\]
Exercise 18.15. Find \(\displaystyle\int \sin^2 a \theta\, d\theta\).
Answer
\(\dfrac{\theta}{2} - \dfrac{\sin 2a\theta}{4a} + C\).
Solution
\[\sin ^{2} a \theta=\frac{1-\cos (2 a \theta)}{2}\]
Hence
\[\begin{align} \int \sin ^{2} a \theta & =\frac{1}{2} \int(1-\cos (2 a \theta)) d \theta \\ & =\frac{1}{2}\left[\theta-\frac{1}{2 a} \sin (2 a \theta)\right]+C \\ & =\frac{1}{2} \theta-\frac{1}{4 a} \sin (2 a \theta)+C \end{align}\]
Exercise 18.16. Find \(\displaystyle\int e^{3x}\, dx\).
Answer
\(\dfrac{1}{3} e ^{3x}+C\).
Solution
\[\begin{align} e^{3 x} d x & =\frac{1}{3} e^{3 x}(3 d x) \\ & =\frac{1}{3} e^{3 x} d(3 x) \end{align}\]
Let \(3 x=t\), then
\[\begin{align} e^{3 x} d x & =\frac{1}{3} e^{t} d t \\ \int e^{3 x} d x & =\frac{1}{3} \int e^{t} d t \\ & =\frac{1}{3} e^{t}+C \\ & =\frac{1}{3} e^{3 x}+C \end{align}\]
Exercise 18.17. Find \(\displaystyle\int \dfrac{dx}{1 + x}\).
Answer
\(\ln|1 + x| + C\).
Solution
\[\int \frac{d x}{1+x}=\ln |x+1|+C\]
Exercise 18.18. Find \(\displaystyle\int \dfrac{dx}{1 - x}\).
Answer
\(-\ln |1 - x| + C\).
Solution
\[\begin{align} \int \frac{d x}{1-x} & =-\int \frac{d x}{x-1} \\ & =-\ln |x-1|+C \end{align}\]
Since \(|x-1|=|1-x|\), then result can also be written as
\[-\ln |1-x|+C.\]
Since \(\ln A^{B}=B \ln A\), other ways of writing the result are
\[\ln \frac{1}{|x-1|}+C\quad \text { or }\quad \ln \frac{1}{|1-x|}+C.\]