Integral of \( \displaystyle e^{x} \cos{\left(x \right)} \)
Problem 4.664 · easy
Find \( \displaystyle \int e^{x} \cos{\left(x \right)} \, dx \). (Omit the constant of integration.)
- \[ \int e^{x} \cos{\left(x \right)}\, dx \]integralStart with the integral of the integrand.✓ Proved
- \[ = \int \frac{\left(e^{i x} + e^{- i x}\right) e^{x}}{2}\, dx \]trig-identityUse the exponential form of the cosine function.≈ Checked numerically
- \[ = \int \frac{e^{x} e^{- i x}}{2}\, dx + \int \frac{e^{x} e^{i x}}{2}\, dx \]linearitySplit the integral into two parts.✓ Proved
- \[ = \int \frac{e^{x \left(1 - i\right)}}{2}\, dx + \int \frac{e^{x \left(1 + i\right)}}{2}\, dx \]algebraCombine the exponents.✓ Proved
- \[ = \frac{\left(2 + 2 i\right) e^{x \left(1 - i\right)}}{8} + \frac{\left(2 - 2 i\right) e^{x \left(1 + i\right)}}{8} \]antiderivativeIntegrate each exponential term.✓ Proved
- \[ = \frac{\left(2 - 2 i\right) e^{x} e^{i x}}{8} + \frac{\left(2 + 2 i\right) e^{x} e^{- i x}}{8} \]algebraSeparate the exponential terms.✓ Proved
- \[ = \left(\frac{\left(2 - 2 i\right) e^{i x}}{8} + \frac{\left(2 + 2 i\right) e^{- i x}}{8}\right) e^{x} \]algebraFactor out exp(x).✓ Proved
- \[ = \frac{\left(1 + i\right) \left(2 - 2 i\right) \left(\left(1 - i\right) e^{i x} + \left(1 + i\right) e^{- i x}\right) e^{x}}{16} \]algebraFind a common denominator.✓ Proved
- \[ = \frac{\left(\left(1 - i\right) e^{i x} + \left(1 + i\right) e^{- i x}\right) e^{x}}{4} \]algebra algebraExpand the denominator. Simplify the denominator.✓ Proved
- \[ = \frac{\left(e^{i x} - i e^{i x} + e^{- i x} + i e^{- i x}\right) e^{x}}{4} \]algebraDistribute the terms in the numerator.✓ Proved
- \[ = \frac{\left(- i \left(e^{i x} - e^{- i x}\right) + e^{i x} + e^{- i x}\right) e^{x}}{4} \]algebraGroup the terms to form cosine and sine components.✓ Proved
- \[ = \frac{\left(2 \sin{\left(x \right)} + 2 \cos{\left(x \right)}\right) e^{x}}{4} \]trig-identity algebraSubstitute the exponential forms of sine and cosine. Simplify the numerator by multiplying I*I.≈ Checked numerically
- \[ = \frac{\left(\sin{\left(x \right)} + \cos{\left(x \right)}\right) e^{x}}{2} \]simplifyFinal simplification.✓ Proved
Answer \( \frac{e^{x} \sin{\left(x \right)} + e^{x} \cos{\left(x \right)}}{2} + C \)
✓ Nihil obstat Lines: 14 proved, 2 checked numerically. The answer was also checked a second way, without looking at the solution. Reviewers found nothing wrong with the explanation.
The full receipt
| Line | Status | Checked by | Detail |
|---|---|---|---|
| 1 | ✓ Proved | sympy 1.14.0 | line 1 is the problem as stated |
| 2 | ≈ Checked numerically | sympy 1.14.0 | sympy 1.14.0: simplify left (1 - I)*(-exp(2*I*x) + (1 + I)*exp(I*x)*sin(x) + (1 + I)*exp(I*x)*cos(x) - I)*exp(x - I*x)/4; numeric agreement only, at 24 of 24 sampled points |
| 3 | ✓ Proved | sympy 1.14.0 | simplify(a - b) reduced to 0 |
| 4 | ✓ Proved | sympy 1.14.0 | simplify(a - b) reduced to 0 |
| 5 | ✓ Proved | sympy 1.14.0 | simplify(a - b) reduced to 0 |
| 6 | ✓ Proved | sympy 1.14.0 | simplify(a - b) reduced to 0 |
| 7 | ✓ Proved | sympy 1.14.0 | simplify(a - b) reduced to 0 |
| 8 | ✓ Proved | sympy 1.14.0 | simplify(a - b) reduced to 0 |
| 9 | ✓ Proved | sympy 1.14.0 | simplify(a - b) reduced to 0 |
| 10 | ✓ Proved | sympy 1.14.0 | simplify(a - b) reduced to 0 |
| 11 | ✓ Proved | sympy 1.14.0 | simplify(a - b) reduced to 0 |
| 12 | ✓ Proved | sympy 1.14.0 | simplify(a - b) reduced to 0 |
| 13 | ≈ Checked numerically | sympy 1.14.0 | sympy 1.14.0: simplify left (exp(2*I*x) - I*exp(2*I*x) - 2*sqrt(2)*exp(I*x)*sin(x + pi/4) + 1 + I)*exp(x - I*x)/4; numeric agreement only, at 24 of 24 sampled points |
| 14 | ✓ Proved | sympy 1.14.0 | simplify(a - b) reduced to 0 |
| 15 | ✓ Proved | sympy 1.14.0 | simplify(a - b) reduced to 0 |
| answer | ✓ Proved | sympy 1.14.0 | final line against the stated answer: simplify(a - b) reduced to 0 |
| answer, a second way | ✓ Proved | sympy 1.14.0 | SymPy differentiated the stated antiderivative back to the integrand |
Reviewers
gpt-oss:20b: passqwen3.6:27b-mlx: pass
Every verdict on record (4)
gpt-oss:20b: pass 2026-10-08qwen3.6:27b-mlx: pass 2026-10-08gpt-oss:20b: pass 2026-10-08qwen3.6:27b-mlx: pass 2026-10-08
Proved: SymPy reduced the difference between the two sides to zero. Checked independently: a separate
method, named above, confirmed it. Checked numerically: the two sides agree at every sampled point, which is evidence,
not proof. Reviewed: a model or a person read it; that is all a sentence can have. Solution by
gemma4:26b, checked 2026-10-08 with SymPy 1.14.0.