Optimal. Leaf size=31 \[ \frac{a^x \sin (x)}{\log ^2(a)+1}+\frac{a^x \log (a) \cos (x)}{\log ^2(a)+1} \]
[Out]
_______________________________________________________________________________________
Rubi [A] time = 0.0219576, antiderivative size = 31, normalized size of antiderivative = 1., number of steps used = 1, number of rules used = 1, integrand size = 6, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.167 \[ \frac{a^x \sin (x)}{\log ^2(a)+1}+\frac{a^x \log (a) \cos (x)}{\log ^2(a)+1} \]
Antiderivative was successfully verified.
[In] Int[a^x*Cos[x],x]
[Out]
_______________________________________________________________________________________
Rubi in Sympy [A] time = 1.5652, size = 29, normalized size = 0.94 \[ \frac{a^{x} \log{\left (a \right )} \cos{\left (x \right )}}{\log{\left (a \right )}^{2} + 1} + \frac{a^{x} \sin{\left (x \right )}}{\log{\left (a \right )}^{2} + 1} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] rubi_integrate(a**x*cos(x),x)
[Out]
_______________________________________________________________________________________
Mathematica [A] time = 0.0182058, size = 20, normalized size = 0.65 \[ \frac{a^x (\log (a) \cos (x)+\sin (x))}{\log ^2(a)+1} \]
Antiderivative was successfully verified.
[In] Integrate[a^x*Cos[x],x]
[Out]
_______________________________________________________________________________________
Maple [B] time = 0.03, size = 71, normalized size = 2.3 \[{1 \left ({\frac{\ln \left ( a \right ){{\rm e}^{x\ln \left ( a \right ) }}}{1+ \left ( \ln \left ( a \right ) \right ) ^{2}}}+2\,{\frac{{{\rm e}^{x\ln \left ( a \right ) }}\tan \left ( x/2 \right ) }{1+ \left ( \ln \left ( a \right ) \right ) ^{2}}}-{\frac{\ln \left ( a \right ){{\rm e}^{x\ln \left ( a \right ) }}}{1+ \left ( \ln \left ( a \right ) \right ) ^{2}} \left ( \tan \left ({\frac{x}{2}} \right ) \right ) ^{2}} \right ) \left ( \left ( \tan \left ({\frac{x}{2}} \right ) \right ) ^{2}+1 \right ) ^{-1}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] int(a^x*cos(x),x)
[Out]
_______________________________________________________________________________________
Maxima [A] time = 1.46046, size = 32, normalized size = 1.03 \[ \frac{a^{x} \cos \left (x\right ) \log \left (a\right ) + a^{x} \sin \left (x\right )}{\log \left (a\right )^{2} + 1} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate(a^x*cos(x),x, algorithm="maxima")
[Out]
_______________________________________________________________________________________
Fricas [A] time = 0.216685, size = 27, normalized size = 0.87 \[ \frac{{\left (\cos \left (x\right ) \log \left (a\right ) + \sin \left (x\right )\right )} a^{x}}{\log \left (a\right )^{2} + 1} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate(a^x*cos(x),x, algorithm="fricas")
[Out]
_______________________________________________________________________________________
Sympy [A] time = 1.89758, size = 107, normalized size = 3.45 \[ \begin{cases} \frac{i x e^{- i x} \sin{\left (x \right )}}{2} + \frac{x e^{- i x} \cos{\left (x \right )}}{2} + \frac{i e^{- i x} \cos{\left (x \right )}}{2} & \text{for}\: a = e^{- i} \\- \frac{i x e^{i x} \sin{\left (x \right )}}{2} + \frac{x e^{i x} \cos{\left (x \right )}}{2} - \frac{i e^{i x} \cos{\left (x \right )}}{2} & \text{for}\: a = e^{i} \\\frac{a^{x} \log{\left (a \right )} \cos{\left (x \right )}}{\log{\left (a \right )}^{2} + 1} + \frac{a^{x} \sin{\left (x \right )}}{\log{\left (a \right )}^{2} + 1} & \text{otherwise} \end{cases} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate(a**x*cos(x),x)
[Out]
_______________________________________________________________________________________
GIAC/XCAS [A] time = 0.23007, size = 455, normalized size = 14.68 \[ \text{result too large to display} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate(a^x*cos(x),x, algorithm="giac")
[Out]