Integration using Euler's formula
   HOME

TheInfoList



OR:

In integral calculus, Euler's formula for complex numbers may be used to evaluate integrals involving trigonometric functions. Using Euler's formula, any trigonometric function may be written in terms of complex exponential functions, namely e^ and e^ and then integrated. This technique is often simpler and faster than using trigonometric identities or integration by parts, and is sufficiently powerful to integrate any rational fraction, rational expression involving trigonometric functions.


Euler's formula

Euler's formula states that :e^ = \cos x + i\,\sin x. Substituting -x for x gives the equation :e^ = \cos x - i\,\sin x because cosine is an even function and sine is odd. These two equations can be solved for the sine and cosine to give :\cos x = \frac\quad\text\quad\sin x = \frac.


Examples


First example

Consider the integral :\int \cos^2 x \, dx . The standard approach to this integral is to use a half-angle formula to simplify the integrand. We can use Euler's identity instead: :\begin \int \cos^2 x \, dx \,&=\, \int \left(\frac\right)^2 dx \\[6pt] &=\, \frac14\int \left( e^ + 2 +e^ \right) dx \end At this point, it would be possible to change back to real numbers using the formula . Alternatively, we can integrate the complex exponentials and not change back to trigonometric functions until the end: :\begin \frac14\int \left( e^ + 2 + e^ \right) dx &= \frac14\left(\frac + 2x - \frac\right)+C \\[6pt] &= \frac14\left(2x + \sin 2x\right) +C. \end


Second example

Consider the integral :\int \sin^2 x \cos 4x \, dx. This integral would be extremely tedious to solve using trigonometric identities, but using Euler's identity makes it relatively painless: :\begin \int \sin^2 x \cos 4x \, dx &= \int \left(\frac\right)^2\left(\frac\right) dx \\[6pt] &= -\frac18\int \left(e^ - 2 + e^\right)\left(e^+e^\right) dx \\[6pt] &= -\frac18\int \left(e^ - 2e^ + e^ + e^ - 2e^ + e^\right) dx. \end At this point we can either integrate directly, or we can first change the integrand to and continue from there. Either method gives :\int \sin^2 x \cos 4x \, dx = -\frac \sin 6x + \frac18\sin 4x - \frac18 \sin 2x + C.


Using real parts

In addition to Euler's identity, it can be helpful to make judicious use of the real parts of complex expressions. For example, consider the integral :\int e^x \cos x \, dx. Since is the real part of , we know that :\int e^x \cos x \, dx = \operatorname\int e^x e^\, dx. The integral on the right is easy to evaluate: :\int e^x e^ \, dx = \int e^\,dx = \frac + C. Thus: :\begin \int e^x \cos x \, dx &= \operatorname\left(\frac\right) + C \\[6pt] &= e^x\operatorname\left(\frac\right) +C \\[6pt] &= e^x\operatorname\left(\frac\right) +C \\[6pt] &= e^x \frac +C. \end


Fractions

In general, this technique may be used to evaluate any fractions involving trigonometric functions. For example, consider the integral :\int \frac \, dx. Using Euler's identity, this integral becomes :\frac12 \int \frac \, dx. If we now make the integration by substitution, substitution u = e^, the result is the integral of a rational function: :-\frac\int \frac\,du. One may proceed using partial fraction decomposition.


See also

* Trigonometric substitution * Weierstrass substitution * Euler substitution


References

{{Integrals Integral calculus Theorems in mathematical analysis Theorems in calculus