Optimal. Leaf size=41 \[ \frac {a e^{a x} \cos (b x)}{a^2+b^2}+\frac {b e^{a x} \sin (b x)}{a^2+b^2} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.01, antiderivative size = 41, normalized size of antiderivative = 1.00, number of steps
used = 1, number of rules used = 1, integrand size = 10, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.100, Rules used = {4518}
\begin {gather*} \frac {b e^{a x} \sin (b x)}{a^2+b^2}+\frac {a e^{a x} \cos (b x)}{a^2+b^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 4518
Rubi steps
\begin {align*} \int e^{a x} \cos (b x) \, dx &=\frac {a e^{a x} \cos (b x)}{a^2+b^2}+\frac {b e^{a x} \sin (b x)}{a^2+b^2}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.02, size = 28, normalized size = 0.68 \begin {gather*} \frac {e^{a x} (a \cos (b x)+b \sin (b x))}{a^2+b^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Mathics [C] Result contains higher order function than in optimal. Order 9 vs. order 3 in
optimal.
time = 2.90, size = 118, normalized size = 2.88 \begin {gather*} \text {Piecewise}\left [\left \{\left \{x,a\text {==}0\text {\&\&}b\text {==}0\right \},\left \{\frac {\left (b x E^{I b x}+I \text {Cos}\left [b x\right ]\right ) E^{-I b x}}{2 b},a\text {==}-I b\right \},\left \{\frac {\left (b x E^{-I b x}-I \text {Cos}\left [b x\right ]\right ) E^{I b x}}{2 b},a\text {==}I b\right \}\right \},\frac {a \text {Cos}\left [b x\right ] E^{a x}}{a^2+b^2}+\frac {b E^{a x} \text {Sin}\left [b x\right ]}{a^2+b^2}\right ] \end {gather*}
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.05, size = 40, normalized size = 0.98
method | result | size |
default | \(\frac {a \,{\mathrm e}^{a x} \cos \left (b x \right )}{a^{2}+b^{2}}+\frac {b \,{\mathrm e}^{a x} \sin \left (b x \right )}{a^{2}+b^{2}}\) | \(40\) |
risch | \(\frac {{\mathrm e}^{x \left (i b +a \right )}}{2 i b +2 a}+\frac {{\mathrm e}^{x \left (-i b +a \right )}}{-2 i b +2 a}\) | \(40\) |
norman | \(\frac {\frac {a \,{\mathrm e}^{a x}}{a^{2}+b^{2}}-\frac {a \,{\mathrm e}^{a x} \left (\tan ^{2}\left (\frac {b x}{2}\right )\right )}{a^{2}+b^{2}}+\frac {2 b \,{\mathrm e}^{a x} \tan \left (\frac {b x}{2}\right )}{a^{2}+b^{2}}}{1+\tan ^{2}\left (\frac {b x}{2}\right )}\) | \(73\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.26, size = 27, normalized size = 0.66 \begin {gather*} \frac {{\left (a \cos \left (b x\right ) + b \sin \left (b x\right )\right )} e^{\left (a x\right )}}{a^{2} + b^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.35, size = 31, normalized size = 0.76 \begin {gather*} \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}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.30, size = 139, normalized size = 3.39 \begin {gather*} \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} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.00, size = 34, normalized size = 0.83 \begin {gather*} \mathrm {e}^{a x} \left (\frac {a \cos \left (b x\right )}{a^{2}+b^{2}}+\frac {b \sin \left (b x\right )}{a^{2}+b^{2}}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.03, size = 27, normalized size = 0.66 \begin {gather*} \frac {{\mathrm {e}}^{a\,x}\,\left (a\,\cos \left (b\,x\right )+b\,\sin \left (b\,x\right )\right )}{a^2+b^2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________