Optimal. Leaf size=42 \[ -\frac {b e^{a x} \cos (b x)}{a^2+b^2}+\frac {a e^{a x} \sin (b x)}{a^2+b^2} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.01, antiderivative size = 42, 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 = {4517}
\begin {gather*} \frac {a e^{a x} \sin (b x)}{a^2+b^2}-\frac {b e^{a x} \cos (b x)}{a^2+b^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 4517
Rubi steps
\begin {align*} \int e^{a x} \sin (b x) \, dx &=-\frac {b e^{a x} \cos (b x)}{a^2+b^2}+\frac {a e^{a x} \sin (b x)}{a^2+b^2}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.02, size = 29, normalized size = 0.69 \begin {gather*} \frac {e^{a x} (-b \cos (b x)+a \sin (b x))}{a^2+b^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.02, size = 41, normalized size = 0.98
method | result | size |
default | \(-\frac {b \,{\mathrm e}^{a x} \cos \left (b x \right )}{a^{2}+b^{2}}+\frac {a \,{\mathrm e}^{a x} \sin \left (b x \right )}{a^{2}+b^{2}}\) | \(41\) |
risch | \(-\frac {i {\mathrm e}^{x \left (i b +a \right )}}{2 \left (i b +a \right )}+\frac {i {\mathrm e}^{x \left (-i b +a \right )}}{-2 i b +2 a}\) | \(42\) |
norman | \(\frac {\frac {b \,{\mathrm e}^{a x} \left (\tan ^{2}\left (\frac {b x}{2}\right )\right )}{a^{2}+b^{2}}-\frac {b \,{\mathrm e}^{a x}}{a^{2}+b^{2}}+\frac {2 a \,{\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 = 1.58, size = 29, normalized size = 0.69 \begin {gather*} -\frac {{\left (b \cos \left (b x\right ) - a \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.82, size = 33, normalized size = 0.79 \begin {gather*} -\frac {b \cos \left (b x\right ) e^{\left (a x\right )} - a 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 [C] Result contains complex when optimal does not.
time = 0.27, size = 139, normalized size = 3.31 \begin {gather*} \begin {cases} 0 & \text {for}\: a = 0 \wedge b = 0 \\\frac {x e^{- i b x} \sin {\left (b x \right )}}{2} - \frac {i x e^{- i b x} \cos {\left (b x \right )}}{2} + \frac {i e^{- i b x} \sin {\left (b x \right )}}{2 b} & \text {for}\: a = - i b \\\frac {x e^{i b x} \sin {\left (b x \right )}}{2} + \frac {i x e^{i b x} \cos {\left (b x \right )}}{2} - \frac {i e^{i b x} \sin {\left (b x \right )}}{2 b} & \text {for}\: a = i b \\\frac {a e^{a x} \sin {\left (b x \right )}}{a^{2} + b^{2}} - \frac {b e^{a x} \cos {\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.55, size = 38, normalized size = 0.90 \begin {gather*} -{\left (\frac {b \cos \left (b x\right )}{a^{2} + b^{2}} - \frac {a \sin \left (b x\right )}{a^{2} + b^{2}}\right )} e^{\left (a x\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.02, size = 29, normalized size = 0.69 \begin {gather*} -\frac {{\mathrm {e}}^{a\,x}\,\left (b\,\cos \left (b\,x\right )-a\,\sin \left (b\,x\right )\right )}{a^2+b^2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________