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.0099713, 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, Rules used = {4433} \[ \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]
[Out]
Rule 4433
Rubi steps
\begin{align*} \int a^x \cos (x) \, dx &=\frac{a^x \cos (x) \log (a)}{1+\log ^2(a)}+\frac{a^x \sin (x)}{1+\log ^2(a)}\\ \end{align*}
Mathematica [A] time = 0.0176623, size = 20, normalized size = 0.65 \[ \frac{a^x (\log (a) \cos (x)+\sin (x))}{\log ^2(a)+1} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.017, size = 71, normalized size = 2.3 \begin{align*}{ \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}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 0.948647, size = 32, normalized size = 1.03 \begin{align*} \frac{a^{x} \cos \left (x\right ) \log \left (a\right ) + a^{x} \sin \left (x\right )}{\log \left (a\right )^{2} + 1} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 2.21215, size = 61, normalized size = 1.97 \begin{align*} \frac{{\left (\cos \left (x\right ) \log \left (a\right ) + \sin \left (x\right )\right )} a^{x}}{\log \left (a\right )^{2} + 1} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 1.06125, size = 107, normalized size = 3.45 \begin{align*} \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} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [C] time = 1.09182, size = 444, normalized size = 14.32 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]