∫Calc Practice

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.)
  1. \[ \int e^{x} \cos{\left(x \right)}\, dx \]
    integralStart with the integral of the integrand.✓ Proved
  2. \[ = \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
  3. \[ = \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
  4. \[ = \int \frac{e^{x \left(1 - i\right)}}{2}\, dx + \int \frac{e^{x \left(1 + i\right)}}{2}\, dx \]
    algebraCombine the exponents.✓ Proved
  5. \[ = \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
  6. \[ = \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
  7. \[ = \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
  8. \[ = \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
  9. \[ = \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
  10. \[ = \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
  11. \[ = \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
  12. \[ = \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
  13. \[ = \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
LineStatusChecked byDetail
1✓ Provedsympy 1.14.0line 1 is the problem as stated
2≈ Checked numericallysympy 1.14.0sympy 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✓ Provedsympy 1.14.0simplify(a - b) reduced to 0
4✓ Provedsympy 1.14.0simplify(a - b) reduced to 0
5✓ Provedsympy 1.14.0simplify(a - b) reduced to 0
6✓ Provedsympy 1.14.0simplify(a - b) reduced to 0
7✓ Provedsympy 1.14.0simplify(a - b) reduced to 0
8✓ Provedsympy 1.14.0simplify(a - b) reduced to 0
9✓ Provedsympy 1.14.0simplify(a - b) reduced to 0
10✓ Provedsympy 1.14.0simplify(a - b) reduced to 0
11✓ Provedsympy 1.14.0simplify(a - b) reduced to 0
12✓ Provedsympy 1.14.0simplify(a - b) reduced to 0
13≈ Checked numericallysympy 1.14.0sympy 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✓ Provedsympy 1.14.0simplify(a - b) reduced to 0
15✓ Provedsympy 1.14.0simplify(a - b) reduced to 0
answer✓ Provedsympy 1.14.0final line against the stated answer: simplify(a - b) reduced to 0
answer, a second way✓ Provedsympy 1.14.0SymPy differentiated the stated antiderivative back to the integrand

Reviewers

  • gpt-oss:20b: pass
  • qwen3.6:27b-mlx: pass
Every verdict on record (4)
  • gpt-oss:20b: pass 2026-10-08
  • qwen3.6:27b-mlx: pass 2026-10-08
  • gpt-oss:20b: pass 2026-10-08
  • qwen3.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.