Integration without integration
A neat shortcut for integrals like ∫e^{ax}sin(bx)dx and ∫e^{ax}cos(bx)dx, avoiding repeated integration by parts.
Continue where you stopped
The core idea
On this page
There is a clean shortcut for integrals involving products of common “physics functions” like e^ax, sin(bx), cos(bx), sinh(bx), cosh(bx).
It’s especially useful when you keep meeting the same exponential × trig patterns (for example, while solving linear ODEs with sinusoidal forcing, or while doing repeated integration-by-parts loops).
- AC/phasor toolbox: UY1: Phasors & Alternating Currents
- Steady-state AC response: UY1: L-R-C Series Circuit With A.C.
- Resonance context: UY1: Resonance & Power In A.C. Circuits
- Math hub: Mathematics for Undergraduate Physics
The formula
Suppose f and g satisfy second-order equations of the form:
where u and v are constants and u ≠ v.
Then:
- Pick f and g so your integrand is fg.
- Confirm f'' = vf and g'' = ug with constants u,v.
- Compute f',g'.
- Substitute into (fg' - f'g)/(u-v) + C.
- Differentiate your result to verify you got back fg.
Common “constant-u/v” functions:
- e^ax: f'' = a² f
- sin(bx), cos(bx): g'' = -b² g
- sinh(bx), cosh(bx): g'' = b² g
Why it works (one line)
Differentiate the numerator:
Divide by (u-v) and integrate.
The shortcut above breaks because you’d divide by zero. In that case, use a different method (often a direct integral or a short integration-by-parts loop).
If both functions satisfy the same second-order equation (same u), then u-v = 0 and the shortcut is not valid.
Example: sin(bx) and cos(bx) both satisfy y'' = -b²y, so you can’t use this trick directly on ∫ sin(bx) cos(bx) dx.
Worked example: ∫ e^ax sin(bx) dx
Let:
and
Compute derivatives:
Apply the shortcut:
So:
Worked example: ∫ e^ax cos(bx) dx
Use the same setup:
- f = e^ax so v = a², f' = ae^ax
- g = cos(bx) so u = -b², g' = -b sin(bx)
Then:
so:
Worked example (hyperbolic): ∫ e^ax sinh(bx) dx
Let f = e^ax so v = a², and g = sinh(bx) so u = b² with g' = b cosh(bx).
Apply the shortcut:
Practice (with hints + answers)
1) Compute ∫ e^{2x} cos(3x) dx
Hint: Use the cosine result with a = 2, b = 3.
Answer:
2) Compute ∫ e^{-x} sin(2x) dx
Hint: Use the sine result with a = -1, b = 2.
Answer:
3) Compute ∫ e^{x} sinh(2x) dx
Hint: Use the hyperbolic result with a = 1, b = 2.
Answer:
4) (u=v case) Compute ∫ sin(2x) cos(2x) dx
Hint: Use the identity sin(2x) cos(2x) = 1/2 sin(4x).
Answer:
Related pages
- For standard methods: Integration Techniques
- For where these integrals often come from: Second Order Differential Equation