Integral of eˣ·cos(x)

∫excos⁡(x) dx\int e^{x} \cos\left(x\right)\,dx = exsin⁡(x)2+excos⁡(x)2+C\frac{e^{x} \sin{\left(x \right)}}{2} + \frac{e^{x} \cos{\left(x \right)}}{2} + C

Answer

Indefinite integral
exsin⁡(x)2+excos⁡(x)2+C\frac{e^{x} \sin{\left(x \right)}}{2} + \frac{e^{x} \cos{\left(x \right)}}{2} + C

Checked numerically before it is shown

Step-by-step solution

  1. Integration by parts, twice

    Integrate by parts twice; the original integral reappears and can be solved for:

    ∫excos⁡(x) dx=exsin⁡(x)2+excos⁡(x)2\int e^{x} \cos{\left(x \right)}\,dx = \frac{e^{x} \sin{\left(x \right)}}{2} + \frac{e^{x} \cos{\left(x \right)}}{2}
  2. Constant of integration

    Add the constant of integration:

    ∫excos⁡(x) dx=exsin⁡(x)2+excos⁡(x)2+C\int e^{x} \cos{\left(x \right)}\,dx = \frac{e^{x} \sin{\left(x \right)}}{2} + \frac{e^{x} \cos{\left(x \right)}}{2} + C

Change the problem in the solver Integral calculator

Related solved examples