Integration using Euler's formula

This is an old revision of this page, as edited by Eratosthenes (talk | contribs) at 22:04, 8 January 2009. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Functions containing sine or cosine can be expressed as complex exponentials using Euler's formula.

Example: suppose we wanted to integrate:

Then the cosine function can be expressed in its Euler form:

This is far easier to integrate.

Alternatively, we may also take note of real and imaginary portions of complex numbers

Cosine is the real portion of a complex number written in cos x + i sin x form

This calculation continues as:

=Re 1/2*exp(x)*cos(x)+1/2*i*exp(x)*sin(x)-1/2*i*exp(x)*cos(x)+1/2*exp(x)*sin(x)

=1/2 exp(x)*cos(x) + 1/2 exp(x)*sin(x)