Integrals of Trigonometric Functions
Integrals of trigonometric functions are used to find antiderivatives of sine, cosine, and other trigonometric expressions. These integrals are among the fundamental formulas of calculus and provide a starting point for solving more complex integration problems.
In this article, I explain the basic trigonometric integration formulas and show how to prove each one. The method is straightforward: differentiate the proposed antiderivative and check that the result matches the original integrand.
Integrating the Sine Function
I'll start with the integral of the sine function:
\[ \int \sin x\,dx=-\cos x+c \]
Why does integrating sine give negative cosine?
To understand this, recall that the derivative of cosine is \(-\sin x\). Changing the sign of cosine also changes the sign of its derivative, giving \(\sin x\):
\[ \frac{d}{dx}(-\cos x+c)=-(-\sin x)=\sin x \]
The derivative matches the original integrand. This confirms that \(-\cos x\) is an antiderivative of \(\sin x\).
Notice that the constant \(c\) does not affect the derivative because the derivative of any constant is zero. For example, both \(-\cos x+2\) and \(-\cos x-5\) have the same derivative, \(\sin x\).
Note. An indefinite integral represents the family of all antiderivatives of a function. In other words, it includes all functions whose derivatives equal the given integrand. This gives us a simple way to verify an integration formula: differentiate the result and check whether it reproduces the original function. Throughout this article, \(c\) represents an arbitrary constant, and all angles are measured in radians.
Integrating the Cosine Function
Now consider the integral of the cosine function:
\[ \int \cos x\,dx=\sin x+c \]
This formula is even easier to verify because the derivative of sine is cosine:
\[ \frac{d}{dx}(\sin x+c)=\cos x \]
Since differentiating \(\sin x\) gives \(\cos x\), the sine function is an antiderivative of cosine.
By adding an arbitrary constant \(c\), I obtain the general antiderivative, which represents the entire family of functions with the same derivative.
Integrating \(1/\cos^2 x\)
Next, I'll examine the integral of \(1/\cos^2 x\), which is closely related to the tangent function:
\[ \int \frac{1}{\cos^2 x}\,dx=\tan x+c \]
To see why this formula works, I'll begin by writing the tangent function as the ratio of sine to cosine:
\[ \tan x=\frac{\sin x}{\cos x} \]
I can now differentiate this expression using the quotient rule:
\[ \frac{d}{dx}\tan x = \frac{d}{dx} \frac{\sin x}{\cos x} = \frac{\cos x\cdot\cos x-\sin x\cdot(-\sin x)}{\cos^2 x} \]
Simplifying the numerator gives:
\[ \frac{d}{dx}\tan x =\frac{\cos^2 x+\sin^2 x}{\cos^2 x} \]
Here, I can use the Pythagorean identity, which states that \(\cos^2 x+\sin^2 x=1\).
Substituting this identity into the derivative gives:
\[ \frac{d}{dx}(\tan x+c)=\frac{1}{\cos^2 x} \]
The result is exactly the original integrand. Therefore, the tangent function is an antiderivative of \(1/\cos^2 x\).
Keep in mind that this formula is valid on any interval where \(\cos x\neq0\), since the integrand is undefined when cosine equals zero.
Integrating \(1/\sin^2 x\)
Finally, I'll consider the integral of \(1/\sin^2 x\), which involves the cotangent function:
\[ \int \frac{1}{\sin^2 x}\,dx=-\cot x+c \]
The negative sign is important. To understand where it comes from, I'll start with the definition of the cotangent function:
\[ \cot x=\frac{\cos x}{\sin x} \]
As with the tangent function, I can find its derivative using the quotient rule:
\[ \frac{d}{dx}\cot x = \frac{d}{dx} \frac{\cos x}{\sin x} =\frac{(-\sin x)\cdot\sin x-\cos x\cdot\cos x}{\sin^2 x} \]
Both terms in the numerator are negative, so I can factor out a negative sign:
\[ \frac{d}{dx}\cot x =-\frac{\sin^2 x+\cos^2 x}{\sin^2 x} \]
Now I apply the Pythagorean identity, \(\cos^2 x+\sin^2 x=1\), to simplify the expression:
\[ \frac{d}{dx}\cot x =-\frac{1}{\sin^2 x} \]
Notice that the derivative of cotangent is negative. However, the integrand \(1/\sin^2 x\) is positive wherever it is defined.
To obtain the original integrand, I therefore need to take the negative of the cotangent function:
\[ \frac{d}{dx}(-\cot x+c) =-\left(-\frac{1}{\sin^2 x}\right) =\frac{1}{\sin^2 x} \]
This confirms the integration formula. As with the previous example, there is a restriction on the domain: the formula holds on any interval where \(\sin x\neq0\).
The same method can be used to verify other trigonometric integration formulas. By starting with a known derivative and working backward, I can identify an antiderivative and then confirm the result through differentiation.
Integrals Resulting in Inverse Trigonometric Functions
Some integrals have inverse trigonometric functions as their antiderivatives, including arcsine, arccosine, arctangent, and arccotangent. Recognizing these forms makes it easier to evaluate integrals without using more complicated techniques. $$ \int\frac{1}{\sqrt{1-x^2}}\,dx= \begin{cases} \arcsin x+c \\ \\ -\arccos x+c \end{cases} $$ $$ \int\frac{1}{1+x^2}\,dx= \begin{cases} \arctan x+c \\ \\ -\operatorname{arccot}x+c \end{cases} $$
To understand where these formulas come from, I'll start with the derivative of the inverse sine function:
\[ \frac{d}{dx}\arcsin x=\frac{1}{\sqrt{1-x^2}} \]
Since integration reverses differentiation, I can immediately write:
\[ \int\frac{1}{\sqrt{1-x^2}}\,dx=\arcsin x+c \]
This formula is valid for \(-1 < x < 1\).
There is another way to express the same antiderivative. Recall that the derivative of the inverse cosine function is:
\[ \frac{d}{dx}\arccos x=-\frac{1}{\sqrt{1-x^2}} \]
The negative sign means that I can also write:
\[ \int\frac{1}{\sqrt{1-x^2}}\,dx=-\arccos x+c \]
Both expressions are correct. In fact, the arcsine and arccosine of the same number always add up to \(\pi/2\). This means that the two antiderivatives differ only by a constant, which is already accounted for by the constant of integration.
Now let's look at the derivative of the inverse tangent function:
\[ \frac{d}{dx}\arctan x=\frac{1}{1+x^2} \]
Using the same reasoning, I obtain:
\[ \int\frac{1}{1+x^2}\,dx=\arctan x+c \]
This integral can also be expressed using the inverse cotangent function. Its derivative is:
\[ \frac{d}{dx}\operatorname{arccot}x=-\frac{1}{1+x^2} \]
Therefore:
\[ \int\frac{1}{1+x^2}\,dx=-\operatorname{arccot}x+c \]
As with arcsine and arccosine, these two expressions represent the same family of antiderivatives, differing only by an additive constant.
Example 1
Let's apply the inverse sine formula to a slightly different integral:
\[ \int\frac{1}{\sqrt{25-x^2}}\,dx \]
At first glance, this doesn't exactly match the standard formula because the expression under the square root contains 25 instead of 1.
To put it into the right form, I factor out 25 from the expression under the square root:
\[ =\int\frac{1}{5\sqrt{1-\frac{x^2}{25}}}\,dx \]
Next, I move the constant factor outside the integral:
\[ =\frac15\int\frac{1}{\sqrt{1-(x/5)^2}}\,dx \]
Now the connection with the inverse sine formula is clear. The expression \(x/5\) takes the place of \(x\) in the standard formula.
There is one important detail: the derivative of \(x/5\) is \(1/5\), exactly the factor already sitting outside the integral. This allows me to apply the formula directly.
Therefore:
\[ \int\frac{1}{\sqrt{25-x^2}}\,dx=\arcsin\left(\frac{x}{5}\right)+c \]
To make sure the result is correct, I differentiate the antiderivative:
\[ \frac{d}{dx}\arcsin\left(\frac{x}{5}\right) =\frac{\frac15}{\sqrt{1-\frac{x^2}{25}}} =\frac{1}{\sqrt{25-x^2}} \]
The derivative gives back the original integrand, so the result is correct for \(-5 < x < 5\).
Example 2
Now let's work through an example involving the inverse tangent function:
\[ \int\frac{6}{x^2+9}\,dx \]
The denominator contains a sum of squares, which is a useful clue that the inverse tangent formula may apply.
First, I factor out 9 from the denominator:
\[ =\frac23\int\frac{1}{1+\frac{x^2}{9}}\,dx \]
The integrand now has the same basic form as the derivative of the inverse tangent function, with \(x/3\) replacing \(x\).
However, I also need to account for the derivative of the inner expression. Since the derivative of \(x/3\) is \(1/3\), integrating requires an additional factor of 3.
Thus:
\[ =\frac23\cdot3\arctan\left(\frac{x}{3}\right)+c \]
Multiplying the constants gives:
\[ \int\frac{6}{x^2+9}\,dx=2\arctan\left(\frac{x}{3}\right)+c \]
As in the previous example, I can check the answer by differentiating:
\[ \frac{d}{dx}\left[2\arctan\left(\frac{x}{3}\right)\right] =2\cdot\frac{\frac13}{1+\frac{x^2}{9}} =\frac{6}{x^2+9} \]
Once again, the derivative matches the original integrand exactly, confirming the result.
Note. It's important to distinguish between integrating ordinary trigonometric functions and finding integrals whose antiderivatives are inverse trigonometric functions. For example, the antiderivative of sine is negative cosine, whereas the antiderivative of \(1/\sqrt{1-x^2}\) is arcsine. When the argument of an inverse trigonometric function is an expression other than \(x\), remember to account for the derivative of that expression using the chain rule. This is often the key to recognizing and evaluating these integrals correctly.
