3.378 \(\int \frac {1}{4-3 \cos ^2(x)+5 \sin ^2(x)} \, dx\)

Optimal. Leaf size=27 \[ \frac {x}{3}+\frac {1}{3} \tan ^{-1}\left (\frac {2 \sin (x) \cos (x)}{2 \sin ^2(x)+1}\right ) \]

________________________________________________________________________________________

Rubi [A]  time = 0.02, antiderivative size = 27, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 1, integrand size = 16, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.062, Rules used = {203} \[ \frac {x}{3}+\frac {1}{3} \tan ^{-1}\left (\frac {2 \sin (x) \cos (x)}{2 \sin ^2(x)+1}\right ) \]

Antiderivative was successfully verified.

[In]

Int[(4 - 3*Cos[x]^2 + 5*Sin[x]^2)^(-1),x]

[Out]

x/3 + ArcTan[(2*Cos[x]*Sin[x])/(1 + 2*Sin[x]^2)]/3

Rule 203

Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(1*ArcTan[(Rt[b, 2]*x)/Rt[a, 2]])/(Rt[a, 2]*Rt[b, 2]), x] /;
 FreeQ[{a, b}, x] && PosQ[a/b] && (GtQ[a, 0] || GtQ[b, 0])

Rubi steps

\begin {align*} \int \frac {1}{4-3 \cos ^2(x)+5 \sin ^2(x)} \, dx &=\operatorname {Subst}\left (\int \frac {1}{1+9 x^2} \, dx,x,\tan (x)\right )\\ &=\frac {x}{3}+\frac {1}{3} \tan ^{-1}\left (\frac {2 \cos (x) \sin (x)}{1+2 \sin ^2(x)}\right )\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.02, size = 9, normalized size = 0.33 \[ \frac {1}{3} \tan ^{-1}(3 \tan (x)) \]

Antiderivative was successfully verified.

[In]

Integrate[(4 - 3*Cos[x]^2 + 5*Sin[x]^2)^(-1),x]

[Out]

ArcTan[3*Tan[x]]/3

________________________________________________________________________________________

IntegrateAlgebraic [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {1}{4-3 \cos ^2(x)+5 \sin ^2(x)} \, dx \]

Verification is Not applicable to the result.

[In]

IntegrateAlgebraic[(4 - 3*Cos[x]^2 + 5*Sin[x]^2)^(-1),x]

[Out]

Could not integrate

________________________________________________________________________________________

fricas [A]  time = 1.24, size = 21, normalized size = 0.78 \[ -\frac {1}{6} \, \arctan \left (\frac {10 \, \cos \relax (x)^{2} - 9}{6 \, \cos \relax (x) \sin \relax (x)}\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/(4-3*cos(x)^2+5*sin(x)^2),x, algorithm="fricas")

[Out]

-1/6*arctan(1/6*(10*cos(x)^2 - 9)/(cos(x)*sin(x)))

________________________________________________________________________________________

giac [A]  time = 0.63, size = 20, normalized size = 0.74 \[ \frac {1}{3} \, x - \frac {1}{3} \, \arctan \left (\frac {\sin \left (2 \, x\right )}{\cos \left (2 \, x\right ) - 2}\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/(4-3*cos(x)^2+5*sin(x)^2),x, algorithm="giac")

[Out]

1/3*x - 1/3*arctan(sin(2*x)/(cos(2*x) - 2))

________________________________________________________________________________________

maple [A]  time = 0.10, size = 8, normalized size = 0.30




method result size



default \(\frac {\arctan \left (3 \tan \relax (x )\right )}{3}\) \(8\)
risch \(-\frac {i \ln \left ({\mathrm e}^{2 i x}-\frac {1}{2}\right )}{6}+\frac {i \ln \left ({\mathrm e}^{2 i x}-2\right )}{6}\) \(24\)



Verification of antiderivative is not currently implemented for this CAS.

[In]

int(1/(4-3*cos(x)^2+5*sin(x)^2),x,method=_RETURNVERBOSE)

[Out]

1/3*arctan(3*tan(x))

________________________________________________________________________________________

maxima [A]  time = 0.96, size = 7, normalized size = 0.26 \[ \frac {1}{3} \, \arctan \left (3 \, \tan \relax (x)\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/(4-3*cos(x)^2+5*sin(x)^2),x, algorithm="maxima")

[Out]

1/3*arctan(3*tan(x))

________________________________________________________________________________________

mupad [B]  time = 0.28, size = 16, normalized size = 0.59 \[ \frac {x}{3}-\frac {\mathrm {atan}\left (\mathrm {tan}\relax (x)\right )}{3}+\frac {\mathrm {atan}\left (3\,\mathrm {tan}\relax (x)\right )}{3} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(1/(5*sin(x)^2 - 3*cos(x)^2 + 4),x)

[Out]

x/3 - atan(tan(x))/3 + atan(3*tan(x))/3

________________________________________________________________________________________

sympy [B]  time = 13.65, size = 219, normalized size = 8.11 \[ \frac {4478554083 \sqrt {17 - 12 \sqrt {2}} \left (\operatorname {atan}{\left (\frac {\tan {\left (\frac {x}{2} \right )}}{\sqrt {17 - 12 \sqrt {2}}} \right )} + \pi \left \lfloor {\frac {\frac {x}{2} - \frac {\pi }{2}}{\pi }}\right \rfloor \right )}{2305195203 + 1630019160 \sqrt {2}} + \frac {3166815962 \sqrt {2} \sqrt {17 - 12 \sqrt {2}} \left (\operatorname {atan}{\left (\frac {\tan {\left (\frac {x}{2} \right )}}{\sqrt {17 - 12 \sqrt {2}}} \right )} + \pi \left \lfloor {\frac {\frac {x}{2} - \frac {\pi }{2}}{\pi }}\right \rfloor \right )}{2305195203 + 1630019160 \sqrt {2}} + \frac {131836323 \sqrt {12 \sqrt {2} + 17} \left (\operatorname {atan}{\left (\frac {\tan {\left (\frac {x}{2} \right )}}{\sqrt {12 \sqrt {2} + 17}} \right )} + \pi \left \lfloor {\frac {\frac {x}{2} - \frac {\pi }{2}}{\pi }}\right \rfloor \right )}{2305195203 + 1630019160 \sqrt {2}} + \frac {93222358 \sqrt {2} \sqrt {12 \sqrt {2} + 17} \left (\operatorname {atan}{\left (\frac {\tan {\left (\frac {x}{2} \right )}}{\sqrt {12 \sqrt {2} + 17}} \right )} + \pi \left \lfloor {\frac {\frac {x}{2} - \frac {\pi }{2}}{\pi }}\right \rfloor \right )}{2305195203 + 1630019160 \sqrt {2}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/(4-3*cos(x)**2+5*sin(x)**2),x)

[Out]

4478554083*sqrt(17 - 12*sqrt(2))*(atan(tan(x/2)/sqrt(17 - 12*sqrt(2))) + pi*floor((x/2 - pi/2)/pi))/(230519520
3 + 1630019160*sqrt(2)) + 3166815962*sqrt(2)*sqrt(17 - 12*sqrt(2))*(atan(tan(x/2)/sqrt(17 - 12*sqrt(2))) + pi*
floor((x/2 - pi/2)/pi))/(2305195203 + 1630019160*sqrt(2)) + 131836323*sqrt(12*sqrt(2) + 17)*(atan(tan(x/2)/sqr
t(12*sqrt(2) + 17)) + pi*floor((x/2 - pi/2)/pi))/(2305195203 + 1630019160*sqrt(2)) + 93222358*sqrt(2)*sqrt(12*
sqrt(2) + 17)*(atan(tan(x/2)/sqrt(12*sqrt(2) + 17)) + pi*floor((x/2 - pi/2)/pi))/(2305195203 + 1630019160*sqrt
(2))

________________________________________________________________________________________