Integration using Euler's formula

This is an old revision of this page, as edited by Delaszk (talk | contribs) at 11:51, 6 November 2008. 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/(1+i)) * exp((1+i)*x)

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

=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)