3.74 \(\int \sin (x) \tan (2 x) \, dx\)

Optimal. Leaf size=20 \[ \frac {\tanh ^{-1}\left (\sqrt {2} \sin (x)\right )}{\sqrt {2}}-\sin (x) \]

[Out]

-sin(x)+1/2*arctanh(sin(x)*2^(1/2))*2^(1/2)

________________________________________________________________________________________

Rubi [A]  time = 0.02, antiderivative size = 20, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 3, integrand size = 7, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.429, Rules used = {12, 321, 206} \[ \frac {\tanh ^{-1}\left (\sqrt {2} \sin (x)\right )}{\sqrt {2}}-\sin (x) \]

Antiderivative was successfully verified.

[In]

Int[Sin[x]*Tan[2*x],x]

[Out]

ArcTanh[Sqrt[2]*Sin[x]]/Sqrt[2] - Sin[x]

Rule 12

Int[(a_)*(u_), x_Symbol] :> Dist[a, Int[u, x], x] /; FreeQ[a, x] &&  !MatchQ[u, (b_)*(v_) /; FreeQ[b, x]]

Rule 206

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

Rule 321

Int[((c_.)*(x_))^(m_)*((a_) + (b_.)*(x_)^(n_))^(p_), x_Symbol] :> Simp[(c^(n - 1)*(c*x)^(m - n + 1)*(a + b*x^n
)^(p + 1))/(b*(m + n*p + 1)), x] - Dist[(a*c^n*(m - n + 1))/(b*(m + n*p + 1)), Int[(c*x)^(m - n)*(a + b*x^n)^p
, x], x] /; FreeQ[{a, b, c, p}, x] && IGtQ[n, 0] && GtQ[m, n - 1] && NeQ[m + n*p + 1, 0] && IntBinomialQ[a, b,
 c, n, m, p, x]

Rubi steps

\begin {align*} \int \sin (x) \tan (2 x) \, dx &=\operatorname {Subst}\left (\int \frac {2 x^2}{1-2 x^2} \, dx,x,\sin (x)\right )\\ &=2 \operatorname {Subst}\left (\int \frac {x^2}{1-2 x^2} \, dx,x,\sin (x)\right )\\ &=-\sin (x)+\operatorname {Subst}\left (\int \frac {1}{1-2 x^2} \, dx,x,\sin (x)\right )\\ &=\frac {\tanh ^{-1}\left (\sqrt {2} \sin (x)\right )}{\sqrt {2}}-\sin (x)\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.01, size = 20, normalized size = 1.00 \[ \frac {\tanh ^{-1}\left (\sqrt {2} \sin (x)\right )}{\sqrt {2}}-\sin (x) \]

Antiderivative was successfully verified.

[In]

Integrate[Sin[x]*Tan[2*x],x]

[Out]

ArcTanh[Sqrt[2]*Sin[x]]/Sqrt[2] - Sin[x]

________________________________________________________________________________________

fricas [B]  time = 2.06, size = 38, normalized size = 1.90 \[ \frac {1}{4} \, \sqrt {2} \log \left (-\frac {2 \, \cos \relax (x)^{2} - 2 \, \sqrt {2} \sin \relax (x) - 3}{2 \, \cos \relax (x)^{2} - 1}\right ) - \sin \relax (x) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sin(x)*tan(2*x),x, algorithm="fricas")

[Out]

1/4*sqrt(2)*log(-(2*cos(x)^2 - 2*sqrt(2)*sin(x) - 3)/(2*cos(x)^2 - 1)) - sin(x)

________________________________________________________________________________________

giac [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int \sin \relax (x) \tan \left (2 \, x\right )\,{d x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sin(x)*tan(2*x),x, algorithm="giac")

[Out]

integrate(sin(x)*tan(2*x), x)

________________________________________________________________________________________

maple [A]  time = 0.16, size = 18, normalized size = 0.90 \[ -\sin \relax (x )+\frac {\arctanh \left (\sin \relax (x ) \sqrt {2}\right ) \sqrt {2}}{2} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(sin(x)*tan(2*x),x)

[Out]

-sin(x)+1/2*arctanh(sin(x)*2^(1/2))*2^(1/2)

________________________________________________________________________________________

maxima [B]  time = 0.44, size = 141, normalized size = 7.05 \[ \frac {1}{8} \, \sqrt {2} \log \left (2 \, \cos \relax (x)^{2} + 2 \, \sin \relax (x)^{2} + 2 \, \sqrt {2} \cos \relax (x) + 2 \, \sqrt {2} \sin \relax (x) + 2\right ) - \frac {1}{8} \, \sqrt {2} \log \left (2 \, \cos \relax (x)^{2} + 2 \, \sin \relax (x)^{2} + 2 \, \sqrt {2} \cos \relax (x) - 2 \, \sqrt {2} \sin \relax (x) + 2\right ) + \frac {1}{8} \, \sqrt {2} \log \left (2 \, \cos \relax (x)^{2} + 2 \, \sin \relax (x)^{2} - 2 \, \sqrt {2} \cos \relax (x) + 2 \, \sqrt {2} \sin \relax (x) + 2\right ) - \frac {1}{8} \, \sqrt {2} \log \left (2 \, \cos \relax (x)^{2} + 2 \, \sin \relax (x)^{2} - 2 \, \sqrt {2} \cos \relax (x) - 2 \, \sqrt {2} \sin \relax (x) + 2\right ) - \sin \relax (x) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sin(x)*tan(2*x),x, algorithm="maxima")

[Out]

1/8*sqrt(2)*log(2*cos(x)^2 + 2*sin(x)^2 + 2*sqrt(2)*cos(x) + 2*sqrt(2)*sin(x) + 2) - 1/8*sqrt(2)*log(2*cos(x)^
2 + 2*sin(x)^2 + 2*sqrt(2)*cos(x) - 2*sqrt(2)*sin(x) + 2) + 1/8*sqrt(2)*log(2*cos(x)^2 + 2*sin(x)^2 - 2*sqrt(2
)*cos(x) + 2*sqrt(2)*sin(x) + 2) - 1/8*sqrt(2)*log(2*cos(x)^2 + 2*sin(x)^2 - 2*sqrt(2)*cos(x) - 2*sqrt(2)*sin(
x) + 2) - sin(x)

________________________________________________________________________________________

mupad [B]  time = 2.39, size = 17, normalized size = 0.85 \[ \frac {\sqrt {2}\,\mathrm {atanh}\left (\sqrt {2}\,\sin \relax (x)\right )}{2}-\sin \relax (x) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(tan(2*x)*sin(x),x)

[Out]

(2^(1/2)*atanh(2^(1/2)*sin(x)))/2 - sin(x)

________________________________________________________________________________________

sympy [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int \sin {\relax (x )} \tan {\left (2 x \right )}\, dx \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sin(x)*tan(2*x),x)

[Out]

Integral(sin(x)*tan(2*x), x)

________________________________________________________________________________________