Optimal. Leaf size=31 \[ \frac {d^x \cos (x) \log (d)}{1+\log ^2(d)}+\frac {d^x \sin (x)}{1+\log ^2(d)} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.01, antiderivative size = 31, normalized size of antiderivative = 1.00, 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 = {4518}
\begin {gather*} \frac {d^x \sin (x)}{\log ^2(d)+1}+\frac {d^x \log (d) \cos (x)}{\log ^2(d)+1} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 4518
Rubi steps
\begin {align*} \int d^x \cos (x) \, dx &=\frac {d^x \cos (x) \log (d)}{1+\log ^2(d)}+\frac {d^x \sin (x)}{1+\log ^2(d)}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.02, size = 20, normalized size = 0.65 \begin {gather*} \frac {d^x (\cos (x) \log (d)+\sin (x))}{1+\log ^2(d)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.03, size = 32, normalized size = 1.03
method | result | size |
risch | \(\frac {d^{x} \cos \left (x \right ) \ln \left (d \right )}{1+\ln \left (d \right )^{2}}+\frac {d^{x} \sin \left (x \right )}{1+\ln \left (d \right )^{2}}\) | \(32\) |
norman | \(\frac {\frac {\ln \left (d \right ) {\mathrm e}^{x \ln \left (d \right )}}{1+\ln \left (d \right )^{2}}+\frac {2 \,{\mathrm e}^{x \ln \left (d \right )} \tan \left (\frac {x}{2}\right )}{1+\ln \left (d \right )^{2}}-\frac {\ln \left (d \right ) {\mathrm e}^{x \ln \left (d \right )} \left (\tan ^{2}\left (\frac {x}{2}\right )\right )}{1+\ln \left (d \right )^{2}}}{1+\tan ^{2}\left (\frac {x}{2}\right )}\) | \(71\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 1.35, size = 24, normalized size = 0.77 \begin {gather*} \frac {d^{x} \cos \left (x\right ) \log \left (d\right ) + d^{x} \sin \left (x\right )}{\log \left (d\right )^{2} + 1} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.54, size = 20, normalized size = 0.65 \begin {gather*} \frac {{\left (\cos \left (x\right ) \log \left (d\right ) + \sin \left (x\right )\right )} d^{x}}{\log \left (d\right )^{2} + 1} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [C] Result contains complex when optimal does not.
time = 0.27, size = 104, normalized size = 3.35 \begin {gather*} \begin {cases} \frac {i x e^{- i x} \sin {\left (x \right )}}{2} + \frac {x e^{- i x} \cos {\left (x \right )}}{2} + \frac {e^{- i x} \sin {\left (x \right )}}{2} & \text {for}\: d = e^{- i} \\- \frac {i x e^{i x} \sin {\left (x \right )}}{2} + \frac {x e^{i x} \cos {\left (x \right )}}{2} + \frac {e^{i x} \sin {\left (x \right )}}{2} & \text {for}\: d = e^{i} \\\frac {d^{x} \log {\left (d \right )} \cos {\left (x \right )}}{\log {\left (d \right )}^{2} + 1} + \frac {d^{x} \sin {\left (x \right )}}{\log {\left (d \right )}^{2} + 1} & \text {otherwise} \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [C] Result contains complex when optimal does not.
time = 1.47, size = 329, normalized size = 10.61 \begin {gather*} {\left | d \right |}^{x} {\left (\frac {2 \, \cos \left (\frac {1}{2} \, \pi x \mathrm {sgn}\left (d\right ) - \frac {1}{2} \, \pi x + x\right ) \log \left ({\left | d \right |}\right )}{{\left (\pi - \pi \mathrm {sgn}\left (d\right ) - 2\right )}^{2} + 4 \, \log \left ({\left | d \right |}\right )^{2}} - \frac {{\left (\pi - \pi \mathrm {sgn}\left (d\right ) - 2\right )} \sin \left (\frac {1}{2} \, \pi x \mathrm {sgn}\left (d\right ) - \frac {1}{2} \, \pi x + x\right )}{{\left (\pi - \pi \mathrm {sgn}\left (d\right ) - 2\right )}^{2} + 4 \, \log \left ({\left | d \right |}\right )^{2}}\right )} + {\left | d \right |}^{x} {\left (\frac {2 \, \cos \left (\frac {1}{2} \, \pi x \mathrm {sgn}\left (d\right ) - \frac {1}{2} \, \pi x - x\right ) \log \left ({\left | d \right |}\right )}{{\left (\pi - \pi \mathrm {sgn}\left (d\right ) + 2\right )}^{2} + 4 \, \log \left ({\left | d \right |}\right )^{2}} - \frac {{\left (\pi - \pi \mathrm {sgn}\left (d\right ) + 2\right )} \sin \left (\frac {1}{2} \, \pi x \mathrm {sgn}\left (d\right ) - \frac {1}{2} \, \pi x - x\right )}{{\left (\pi - \pi \mathrm {sgn}\left (d\right ) + 2\right )}^{2} + 4 \, \log \left ({\left | d \right |}\right )^{2}}\right )} + i \, {\left | d \right |}^{x} {\left (\frac {i \, e^{\left (\frac {1}{2} i \, \pi x \mathrm {sgn}\left (d\right ) - \frac {1}{2} i \, \pi x + i \, x\right )}}{-2 i \, \pi + 2 i \, \pi \mathrm {sgn}\left (d\right ) + 4 \, \log \left ({\left | d \right |}\right ) + 4 i} - \frac {i \, e^{\left (-\frac {1}{2} i \, \pi x \mathrm {sgn}\left (d\right ) + \frac {1}{2} i \, \pi x - i \, x\right )}}{2 i \, \pi - 2 i \, \pi \mathrm {sgn}\left (d\right ) + 4 \, \log \left ({\left | d \right |}\right ) - 4 i}\right )} + i \, {\left | d \right |}^{x} {\left (\frac {i \, e^{\left (\frac {1}{2} i \, \pi x \mathrm {sgn}\left (d\right ) - \frac {1}{2} i \, \pi x - i \, x\right )}}{-2 i \, \pi + 2 i \, \pi \mathrm {sgn}\left (d\right ) + 4 \, \log \left ({\left | d \right |}\right ) - 4 i} - \frac {i \, e^{\left (-\frac {1}{2} i \, \pi x \mathrm {sgn}\left (d\right ) + \frac {1}{2} i \, \pi x + i \, x\right )}}{2 i \, \pi - 2 i \, \pi \mathrm {sgn}\left (d\right ) + 4 \, \log \left ({\left | d \right |}\right ) + 4 i}\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.02, size = 20, normalized size = 0.65 \begin {gather*} \frac {d^x\,\left (\sin \left (x\right )+\ln \left (d\right )\,\cos \left (x\right )\right )}{{\ln \left (d\right )}^2+1} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________