Applying a Complex Exponential to Integrate
Integrating Oscillations by Carrying One Complex Exponential
Euler's formula is the translation rule
Euler's formula, eit = cos t + i sin t, packages the two basic oscillations together. Thus cos(kx) is the real part of eikx, and sin(kx) is the imaginary part. For a real constant k not equal to zero, integrate the complex representative first: integral eikx dx = eikx/(ik) + C.
Extract a component after the integration
Because 1/i = -i, eikx/(ik) = [sin(kx) - i cos(kx)]/k. Its real part is sin(kx)/k, the antiderivative of cos(kx); its imaginary part is -cos(kx)/k, the antiderivative of sin(kx). The sign comes from division by i, not from a choice of convention.
Definite integrals retain their endpoints
For a definite integral, evaluate the complex antiderivative at both bounds, then take the needed component. For example, the real part of [ei7x/(7i)] from 0 to 2pi is zero because ei14pi and e0 are equal. This cancellation is an endpoint fact, not a rule that every trigonometric integral vanishes.
Differentiate as a compact error check
Differentiate the proposed real expression. The chain rule supplies k, so a missing denominator or a sign error is immediately exposed. Complex notation organizes the work; it does not remove the need to retain constants of integration for indefinite integrals.
Using a complex exponential, which expression is an antiderivative of cos(3x)?
Use the complex-exponential method to evaluate the integral from 0 to pi of sin(2x) dx.