Optimal. Leaf size=47 \[ \frac {x (b B+c C)}{b^2+c^2}+\frac {(B c-b C) \log (b \cos (x)+c \sin (x))}{b^2+c^2} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.04, antiderivative size = 47, normalized size of antiderivative = 1.00, number of steps used = 1, number of rules used = 1, integrand size = 21, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.048, Rules used = {3133} \[ \frac {x (b B+c C)}{b^2+c^2}+\frac {(B c-b C) \log (b \cos (x)+c \sin (x))}{b^2+c^2} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3133
Rubi steps
\begin {align*} \int \frac {B \cos (x)+C \sin (x)}{b \cos (x)+c \sin (x)} \, dx &=\frac {(b B+c C) x}{b^2+c^2}+\frac {(B c-b C) \log (b \cos (x)+c \sin (x))}{b^2+c^2}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.14, size = 39, normalized size = 0.83 \[ \frac {x (b B+c C)+(B c-b C) \log (b \cos (x)+c \sin (x))}{b^2+c^2} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.88, size = 59, normalized size = 1.26 \[ \frac {2 \, {\left (B b + C c\right )} x - {\left (C b - B c\right )} \log \left (2 \, b c \cos \relax (x) \sin \relax (x) + {\left (b^{2} - c^{2}\right )} \cos \relax (x)^{2} + c^{2}\right )}{2 \, {\left (b^{2} + c^{2}\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.17, size = 77, normalized size = 1.64 \[ \frac {{\left (B b + C c\right )} x}{b^{2} + c^{2}} + \frac {{\left (C b - B c\right )} \log \left (\tan \relax (x)^{2} + 1\right )}{2 \, {\left (b^{2} + c^{2}\right )}} - \frac {{\left (C b c - B c^{2}\right )} \log \left ({\left | c \tan \relax (x) + b \right |}\right )}{b^{2} c + c^{3}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 0.14, size = 111, normalized size = 2.36 \[ \frac {\ln \left (c \tan \relax (x )+b \right ) B c}{b^{2}+c^{2}}-\frac {\ln \left (c \tan \relax (x )+b \right ) b C}{b^{2}+c^{2}}-\frac {\ln \left (1+\tan ^{2}\relax (x )\right ) B c}{2 \left (b^{2}+c^{2}\right )}+\frac {\ln \left (1+\tan ^{2}\relax (x )\right ) b C}{2 b^{2}+2 c^{2}}+\frac {B \arctan \left (\tan \relax (x )\right ) b}{b^{2}+c^{2}}+\frac {C \arctan \left (\tan \relax (x )\right ) c}{b^{2}+c^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [B] time = 0.42, size = 181, normalized size = 3.85 \[ B {\left (\frac {2 \, b \arctan \left (\frac {\sin \relax (x)}{\cos \relax (x) + 1}\right )}{b^{2} + c^{2}} + \frac {c \log \left (-b - \frac {2 \, c \sin \relax (x)}{\cos \relax (x) + 1} + \frac {b \sin \relax (x)^{2}}{{\left (\cos \relax (x) + 1\right )}^{2}}\right )}{b^{2} + c^{2}} - \frac {c \log \left (\frac {\sin \relax (x)^{2}}{{\left (\cos \relax (x) + 1\right )}^{2}} + 1\right )}{b^{2} + c^{2}}\right )} + C {\left (\frac {2 \, c \arctan \left (\frac {\sin \relax (x)}{\cos \relax (x) + 1}\right )}{b^{2} + c^{2}} - \frac {b \log \left (-b - \frac {2 \, c \sin \relax (x)}{\cos \relax (x) + 1} + \frac {b \sin \relax (x)^{2}}{{\left (\cos \relax (x) + 1\right )}^{2}}\right )}{b^{2} + c^{2}} + \frac {b \log \left (\frac {\sin \relax (x)^{2}}{{\left (\cos \relax (x) + 1\right )}^{2}} + 1\right )}{b^{2} + c^{2}}\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 12.82, size = 1976, normalized size = 42.04 \[ \text {result too large to display} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.88, size = 371, normalized size = 7.89 \[ \begin {cases} \tilde {\infty } \left (B \log {\left (\sin {\relax (x )} \right )} + C x\right ) & \text {for}\: b = 0 \wedge c = 0 \\\frac {B \log {\left (\sin {\relax (x )} \right )} + C x}{c} & \text {for}\: b = 0 \\\frac {B x \sin {\relax (x )}}{- 2 i c \sin {\relax (x )} - 2 c \cos {\relax (x )}} - \frac {i B x \cos {\relax (x )}}{- 2 i c \sin {\relax (x )} - 2 c \cos {\relax (x )}} - \frac {i B \sin {\relax (x )}}{- 2 i c \sin {\relax (x )} - 2 c \cos {\relax (x )}} - \frac {i C x \sin {\relax (x )}}{- 2 i c \sin {\relax (x )} - 2 c \cos {\relax (x )}} - \frac {C x \cos {\relax (x )}}{- 2 i c \sin {\relax (x )} - 2 c \cos {\relax (x )}} + \frac {C \sin {\relax (x )}}{- 2 i c \sin {\relax (x )} - 2 c \cos {\relax (x )}} & \text {for}\: b = - i c \\\frac {B x \sin {\relax (x )}}{2 i c \sin {\relax (x )} - 2 c \cos {\relax (x )}} + \frac {i B x \cos {\relax (x )}}{2 i c \sin {\relax (x )} - 2 c \cos {\relax (x )}} + \frac {i B \sin {\relax (x )}}{2 i c \sin {\relax (x )} - 2 c \cos {\relax (x )}} + \frac {i C x \sin {\relax (x )}}{2 i c \sin {\relax (x )} - 2 c \cos {\relax (x )}} - \frac {C x \cos {\relax (x )}}{2 i c \sin {\relax (x )} - 2 c \cos {\relax (x )}} + \frac {C \sin {\relax (x )}}{2 i c \sin {\relax (x )} - 2 c \cos {\relax (x )}} & \text {for}\: b = i c \\\frac {B b x}{b^{2} + c^{2}} + \frac {B c \log {\left (\cos {\relax (x )} + \frac {c \sin {\relax (x )}}{b} \right )}}{b^{2} + c^{2}} - \frac {C b \log {\left (\cos {\relax (x )} + \frac {c \sin {\relax (x )}}{b} \right )}}{b^{2} + c^{2}} + \frac {C c x}{b^{2} + c^{2}} & \text {otherwise} \end {cases} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________