Optimal. Leaf size=41 \[ \frac{b e^{a x} \sin (b x)}{a^2+b^2}+\frac{a e^{a x} \cos (b x)}{a^2+b^2} \]
[Out]
_______________________________________________________________________________________
Rubi [A] time = 0.0282219, antiderivative size = 41, normalized size of antiderivative = 1., number of steps used = 1, number of rules used = 1, integrand size = 10, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.1 \[ \frac{b e^{a x} \sin (b x)}{a^2+b^2}+\frac{a e^{a x} \cos (b x)}{a^2+b^2} \]
Antiderivative was successfully verified.
[In] Int[E^(a*x)*Cos[b*x],x]
[Out]
_______________________________________________________________________________________
Rubi in Sympy [A] time = 1.90678, size = 36, normalized size = 0.88 \[ \frac{a e^{a x} \cos{\left (b x \right )}}{a^{2} + b^{2}} + \frac{b e^{a x} \sin{\left (b x \right )}}{a^{2} + b^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] rubi_integrate(exp(a*x)*cos(b*x),x)
[Out]
_______________________________________________________________________________________
Mathematica [A] time = 0.0293159, size = 28, normalized size = 0.68 \[ \frac{e^{a x} (a \cos (b x)+b \sin (b x))}{a^2+b^2} \]
Antiderivative was successfully verified.
[In] Integrate[E^(a*x)*Cos[b*x],x]
[Out]
_______________________________________________________________________________________
Maple [A] time = 0.015, size = 40, normalized size = 1. \[{\frac{a{{\rm e}^{ax}}\cos \left ( bx \right ) }{{a}^{2}+{b}^{2}}}+{\frac{{{\rm e}^{ax}}b\sin \left ( bx \right ) }{{a}^{2}+{b}^{2}}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] int(exp(a*x)*cos(b*x),x)
[Out]
_______________________________________________________________________________________
Maxima [A] time = 1.3467, size = 36, normalized size = 0.88 \[ \frac{{\left (a \cos \left (b x\right ) + b \sin \left (b x\right )\right )} e^{\left (a x\right )}}{a^{2} + b^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate(cos(b*x)*e^(a*x),x, algorithm="maxima")
[Out]
_______________________________________________________________________________________
Fricas [A] time = 0.219554, size = 42, normalized size = 1.02 \[ \frac{a \cos \left (b x\right ) e^{\left (a x\right )} + b e^{\left (a x\right )} \sin \left (b x\right )}{a^{2} + b^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate(cos(b*x)*e^(a*x),x, algorithm="fricas")
[Out]
_______________________________________________________________________________________
Sympy [A] time = 2.09457, size = 139, normalized size = 3.39 \[ \begin{cases} x & \text{for}\: a = 0 \wedge b = 0 \\\frac{i x e^{- i b x} \sin{\left (b x \right )}}{2} + \frac{x e^{- i b x} \cos{\left (b x \right )}}{2} + \frac{i e^{- i b x} \cos{\left (b x \right )}}{2 b} & \text{for}\: a = - i b \\- \frac{i x e^{i b x} \sin{\left (b x \right )}}{2} + \frac{x e^{i b x} \cos{\left (b x \right )}}{2} - \frac{i e^{i b x} \cos{\left (b x \right )}}{2 b} & \text{for}\: a = i b \\\frac{a e^{a x} \cos{\left (b x \right )}}{a^{2} + b^{2}} + \frac{b e^{a x} \sin{\left (b x \right )}}{a^{2} + b^{2}} & \text{otherwise} \end{cases} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate(exp(a*x)*cos(b*x),x)
[Out]
_______________________________________________________________________________________
GIAC/XCAS [A] time = 0.236036, size = 49, normalized size = 1.2 \[{\left (\frac{a \cos \left (b x\right )}{a^{2} + b^{2}} + \frac{b \sin \left (b x\right )}{a^{2} + b^{2}}\right )} e^{\left (a x\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate(cos(b*x)*e^(a*x),x, algorithm="giac")
[Out]