3.14 \(\int \frac{(a+b \sin ^{-1}(c x))^2}{(d+e x)^2} \, dx\)

Optimal. Leaf size=309 \[ -\frac{2 b^2 c \text{PolyLog}\left (2,\frac{i e e^{i \sin ^{-1}(c x)}}{c d-\sqrt{c^2 d^2-e^2}}\right )}{e \sqrt{c^2 d^2-e^2}}+\frac{2 b^2 c \text{PolyLog}\left (2,\frac{i e e^{i \sin ^{-1}(c x)}}{\sqrt{c^2 d^2-e^2}+c d}\right )}{e \sqrt{c^2 d^2-e^2}}-\frac{2 i b c \left (a+b \sin ^{-1}(c x)\right ) \log \left (1-\frac{i e e^{i \sin ^{-1}(c x)}}{c d-\sqrt{c^2 d^2-e^2}}\right )}{e \sqrt{c^2 d^2-e^2}}+\frac{2 i b c \left (a+b \sin ^{-1}(c x)\right ) \log \left (1-\frac{i e e^{i \sin ^{-1}(c x)}}{\sqrt{c^2 d^2-e^2}+c d}\right )}{e \sqrt{c^2 d^2-e^2}}-\frac{\left (a+b \sin ^{-1}(c x)\right )^2}{e (d+e x)} \]

[Out]

-((a + b*ArcSin[c*x])^2/(e*(d + e*x))) - ((2*I)*b*c*(a + b*ArcSin[c*x])*Log[1 - (I*e*E^(I*ArcSin[c*x]))/(c*d -
 Sqrt[c^2*d^2 - e^2])])/(e*Sqrt[c^2*d^2 - e^2]) + ((2*I)*b*c*(a + b*ArcSin[c*x])*Log[1 - (I*e*E^(I*ArcSin[c*x]
))/(c*d + Sqrt[c^2*d^2 - e^2])])/(e*Sqrt[c^2*d^2 - e^2]) - (2*b^2*c*PolyLog[2, (I*e*E^(I*ArcSin[c*x]))/(c*d -
Sqrt[c^2*d^2 - e^2])])/(e*Sqrt[c^2*d^2 - e^2]) + (2*b^2*c*PolyLog[2, (I*e*E^(I*ArcSin[c*x]))/(c*d + Sqrt[c^2*d
^2 - e^2])])/(e*Sqrt[c^2*d^2 - e^2])

________________________________________________________________________________________

Rubi [A]  time = 0.528895, antiderivative size = 309, normalized size of antiderivative = 1., number of steps used = 10, number of rules used = 7, integrand size = 18, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.389, Rules used = {4743, 4773, 3323, 2264, 2190, 2279, 2391} \[ -\frac{2 b^2 c \text{PolyLog}\left (2,\frac{i e e^{i \sin ^{-1}(c x)}}{c d-\sqrt{c^2 d^2-e^2}}\right )}{e \sqrt{c^2 d^2-e^2}}+\frac{2 b^2 c \text{PolyLog}\left (2,\frac{i e e^{i \sin ^{-1}(c x)}}{\sqrt{c^2 d^2-e^2}+c d}\right )}{e \sqrt{c^2 d^2-e^2}}-\frac{2 i b c \left (a+b \sin ^{-1}(c x)\right ) \log \left (1-\frac{i e e^{i \sin ^{-1}(c x)}}{c d-\sqrt{c^2 d^2-e^2}}\right )}{e \sqrt{c^2 d^2-e^2}}+\frac{2 i b c \left (a+b \sin ^{-1}(c x)\right ) \log \left (1-\frac{i e e^{i \sin ^{-1}(c x)}}{\sqrt{c^2 d^2-e^2}+c d}\right )}{e \sqrt{c^2 d^2-e^2}}-\frac{\left (a+b \sin ^{-1}(c x)\right )^2}{e (d+e x)} \]

Antiderivative was successfully verified.

[In]

Int[(a + b*ArcSin[c*x])^2/(d + e*x)^2,x]

[Out]

-((a + b*ArcSin[c*x])^2/(e*(d + e*x))) - ((2*I)*b*c*(a + b*ArcSin[c*x])*Log[1 - (I*e*E^(I*ArcSin[c*x]))/(c*d -
 Sqrt[c^2*d^2 - e^2])])/(e*Sqrt[c^2*d^2 - e^2]) + ((2*I)*b*c*(a + b*ArcSin[c*x])*Log[1 - (I*e*E^(I*ArcSin[c*x]
))/(c*d + Sqrt[c^2*d^2 - e^2])])/(e*Sqrt[c^2*d^2 - e^2]) - (2*b^2*c*PolyLog[2, (I*e*E^(I*ArcSin[c*x]))/(c*d -
Sqrt[c^2*d^2 - e^2])])/(e*Sqrt[c^2*d^2 - e^2]) + (2*b^2*c*PolyLog[2, (I*e*E^(I*ArcSin[c*x]))/(c*d + Sqrt[c^2*d
^2 - e^2])])/(e*Sqrt[c^2*d^2 - e^2])

Rule 4743

Int[((a_.) + ArcSin[(c_.)*(x_)]*(b_.))^(n_.)*((d_) + (e_.)*(x_))^(m_.), x_Symbol] :> Simp[((d + e*x)^(m + 1)*(
a + b*ArcSin[c*x])^n)/(e*(m + 1)), x] - Dist[(b*c*n)/(e*(m + 1)), Int[((d + e*x)^(m + 1)*(a + b*ArcSin[c*x])^(
n - 1))/Sqrt[1 - c^2*x^2], x], x] /; FreeQ[{a, b, c, d, e, m}, x] && IGtQ[n, 0] && NeQ[m, -1]

Rule 4773

Int[(((a_.) + ArcSin[(c_.)*(x_)]*(b_.))^(n_.)*((f_) + (g_.)*(x_))^(m_.))/Sqrt[(d_) + (e_.)*(x_)^2], x_Symbol]
:> Dist[1/(c^(m + 1)*Sqrt[d]), Subst[Int[(a + b*x)^n*(c*f + g*Sin[x])^m, x], x, ArcSin[c*x]], x] /; FreeQ[{a,
b, c, d, e, f, g, n}, x] && EqQ[c^2*d + e, 0] && IntegerQ[m] && GtQ[d, 0] && (GtQ[m, 0] || IGtQ[n, 0])

Rule 3323

Int[((c_.) + (d_.)*(x_))^(m_.)/((a_) + (b_.)*sin[(e_.) + (f_.)*(x_)]), x_Symbol] :> Dist[2, Int[((c + d*x)^m*E
^(I*(e + f*x)))/(I*b + 2*a*E^(I*(e + f*x)) - I*b*E^(2*I*(e + f*x))), x], x] /; FreeQ[{a, b, c, d, e, f}, x] &&
 NeQ[a^2 - b^2, 0] && IGtQ[m, 0]

Rule 2264

Int[((F_)^(u_)*((f_.) + (g_.)*(x_))^(m_.))/((a_.) + (b_.)*(F_)^(u_) + (c_.)*(F_)^(v_)), x_Symbol] :> With[{q =
 Rt[b^2 - 4*a*c, 2]}, Dist[(2*c)/q, Int[((f + g*x)^m*F^u)/(b - q + 2*c*F^u), x], x] - Dist[(2*c)/q, Int[((f +
g*x)^m*F^u)/(b + q + 2*c*F^u), x], x]] /; FreeQ[{F, a, b, c, f, g}, x] && EqQ[v, 2*u] && LinearQ[u, x] && NeQ[
b^2 - 4*a*c, 0] && IGtQ[m, 0]

Rule 2190

Int[(((F_)^((g_.)*((e_.) + (f_.)*(x_))))^(n_.)*((c_.) + (d_.)*(x_))^(m_.))/((a_) + (b_.)*((F_)^((g_.)*((e_.) +
 (f_.)*(x_))))^(n_.)), x_Symbol] :> Simp[((c + d*x)^m*Log[1 + (b*(F^(g*(e + f*x)))^n)/a])/(b*f*g*n*Log[F]), x]
 - Dist[(d*m)/(b*f*g*n*Log[F]), Int[(c + d*x)^(m - 1)*Log[1 + (b*(F^(g*(e + f*x)))^n)/a], x], x] /; FreeQ[{F,
a, b, c, d, e, f, g, n}, x] && IGtQ[m, 0]

Rule 2279

Int[Log[(a_) + (b_.)*((F_)^((e_.)*((c_.) + (d_.)*(x_))))^(n_.)], x_Symbol] :> Dist[1/(d*e*n*Log[F]), Subst[Int
[Log[a + b*x]/x, x], x, (F^(e*(c + d*x)))^n], x] /; FreeQ[{F, a, b, c, d, e, n}, x] && GtQ[a, 0]

Rule 2391

Int[Log[(c_.)*((d_) + (e_.)*(x_)^(n_.))]/(x_), x_Symbol] :> -Simp[PolyLog[2, -(c*e*x^n)]/n, x] /; FreeQ[{c, d,
 e, n}, x] && EqQ[c*d, 1]

Rubi steps

\begin{align*} \int \frac{\left (a+b \sin ^{-1}(c x)\right )^2}{(d+e x)^2} \, dx &=-\frac{\left (a+b \sin ^{-1}(c x)\right )^2}{e (d+e x)}+\frac{(2 b c) \int \frac{a+b \sin ^{-1}(c x)}{(d+e x) \sqrt{1-c^2 x^2}} \, dx}{e}\\ &=-\frac{\left (a+b \sin ^{-1}(c x)\right )^2}{e (d+e x)}+\frac{(2 b c) \operatorname{Subst}\left (\int \frac{a+b x}{c d+e \sin (x)} \, dx,x,\sin ^{-1}(c x)\right )}{e}\\ &=-\frac{\left (a+b \sin ^{-1}(c x)\right )^2}{e (d+e x)}+\frac{(4 b c) \operatorname{Subst}\left (\int \frac{e^{i x} (a+b x)}{i e+2 c d e^{i x}-i e e^{2 i x}} \, dx,x,\sin ^{-1}(c x)\right )}{e}\\ &=-\frac{\left (a+b \sin ^{-1}(c x)\right )^2}{e (d+e x)}-\frac{(4 i b c) \operatorname{Subst}\left (\int \frac{e^{i x} (a+b x)}{2 c d-2 \sqrt{c^2 d^2-e^2}-2 i e e^{i x}} \, dx,x,\sin ^{-1}(c x)\right )}{\sqrt{c^2 d^2-e^2}}+\frac{(4 i b c) \operatorname{Subst}\left (\int \frac{e^{i x} (a+b x)}{2 c d+2 \sqrt{c^2 d^2-e^2}-2 i e e^{i x}} \, dx,x,\sin ^{-1}(c x)\right )}{\sqrt{c^2 d^2-e^2}}\\ &=-\frac{\left (a+b \sin ^{-1}(c x)\right )^2}{e (d+e x)}-\frac{2 i b c \left (a+b \sin ^{-1}(c x)\right ) \log \left (1-\frac{i e e^{i \sin ^{-1}(c x)}}{c d-\sqrt{c^2 d^2-e^2}}\right )}{e \sqrt{c^2 d^2-e^2}}+\frac{2 i b c \left (a+b \sin ^{-1}(c x)\right ) \log \left (1-\frac{i e e^{i \sin ^{-1}(c x)}}{c d+\sqrt{c^2 d^2-e^2}}\right )}{e \sqrt{c^2 d^2-e^2}}+\frac{\left (2 i b^2 c\right ) \operatorname{Subst}\left (\int \log \left (1-\frac{2 i e e^{i x}}{2 c d-2 \sqrt{c^2 d^2-e^2}}\right ) \, dx,x,\sin ^{-1}(c x)\right )}{e \sqrt{c^2 d^2-e^2}}-\frac{\left (2 i b^2 c\right ) \operatorname{Subst}\left (\int \log \left (1-\frac{2 i e e^{i x}}{2 c d+2 \sqrt{c^2 d^2-e^2}}\right ) \, dx,x,\sin ^{-1}(c x)\right )}{e \sqrt{c^2 d^2-e^2}}\\ &=-\frac{\left (a+b \sin ^{-1}(c x)\right )^2}{e (d+e x)}-\frac{2 i b c \left (a+b \sin ^{-1}(c x)\right ) \log \left (1-\frac{i e e^{i \sin ^{-1}(c x)}}{c d-\sqrt{c^2 d^2-e^2}}\right )}{e \sqrt{c^2 d^2-e^2}}+\frac{2 i b c \left (a+b \sin ^{-1}(c x)\right ) \log \left (1-\frac{i e e^{i \sin ^{-1}(c x)}}{c d+\sqrt{c^2 d^2-e^2}}\right )}{e \sqrt{c^2 d^2-e^2}}+\frac{\left (2 b^2 c\right ) \operatorname{Subst}\left (\int \frac{\log \left (1-\frac{2 i e x}{2 c d-2 \sqrt{c^2 d^2-e^2}}\right )}{x} \, dx,x,e^{i \sin ^{-1}(c x)}\right )}{e \sqrt{c^2 d^2-e^2}}-\frac{\left (2 b^2 c\right ) \operatorname{Subst}\left (\int \frac{\log \left (1-\frac{2 i e x}{2 c d+2 \sqrt{c^2 d^2-e^2}}\right )}{x} \, dx,x,e^{i \sin ^{-1}(c x)}\right )}{e \sqrt{c^2 d^2-e^2}}\\ &=-\frac{\left (a+b \sin ^{-1}(c x)\right )^2}{e (d+e x)}-\frac{2 i b c \left (a+b \sin ^{-1}(c x)\right ) \log \left (1-\frac{i e e^{i \sin ^{-1}(c x)}}{c d-\sqrt{c^2 d^2-e^2}}\right )}{e \sqrt{c^2 d^2-e^2}}+\frac{2 i b c \left (a+b \sin ^{-1}(c x)\right ) \log \left (1-\frac{i e e^{i \sin ^{-1}(c x)}}{c d+\sqrt{c^2 d^2-e^2}}\right )}{e \sqrt{c^2 d^2-e^2}}-\frac{2 b^2 c \text{Li}_2\left (\frac{i e e^{i \sin ^{-1}(c x)}}{c d-\sqrt{c^2 d^2-e^2}}\right )}{e \sqrt{c^2 d^2-e^2}}+\frac{2 b^2 c \text{Li}_2\left (\frac{i e e^{i \sin ^{-1}(c x)}}{c d+\sqrt{c^2 d^2-e^2}}\right )}{e \sqrt{c^2 d^2-e^2}}\\ \end{align*}

Mathematica [A]  time = 0.338029, size = 231, normalized size = 0.75 \[ \frac{-\frac{\left (a+b \sin ^{-1}(c x)\right )^2}{d+e x}+\frac{2 b c \left (-b \text{PolyLog}\left (2,\frac{i e e^{i \sin ^{-1}(c x)}}{c d-\sqrt{c^2 d^2-e^2}}\right )+b \text{PolyLog}\left (2,\frac{i e e^{i \sin ^{-1}(c x)}}{\sqrt{c^2 d^2-e^2}+c d}\right )-i \left (a+b \sin ^{-1}(c x)\right ) \left (\log \left (1+\frac{i e e^{i \sin ^{-1}(c x)}}{\sqrt{c^2 d^2-e^2}-c d}\right )-\log \left (1-\frac{i e e^{i \sin ^{-1}(c x)}}{\sqrt{c^2 d^2-e^2}+c d}\right )\right )\right )}{\sqrt{c^2 d^2-e^2}}}{e} \]

Antiderivative was successfully verified.

[In]

Integrate[(a + b*ArcSin[c*x])^2/(d + e*x)^2,x]

[Out]

(-((a + b*ArcSin[c*x])^2/(d + e*x)) + (2*b*c*((-I)*(a + b*ArcSin[c*x])*(Log[1 + (I*e*E^(I*ArcSin[c*x]))/(-(c*d
) + Sqrt[c^2*d^2 - e^2])] - Log[1 - (I*e*E^(I*ArcSin[c*x]))/(c*d + Sqrt[c^2*d^2 - e^2])]) - b*PolyLog[2, (I*e*
E^(I*ArcSin[c*x]))/(c*d - Sqrt[c^2*d^2 - e^2])] + b*PolyLog[2, (I*e*E^(I*ArcSin[c*x]))/(c*d + Sqrt[c^2*d^2 - e
^2])]))/Sqrt[c^2*d^2 - e^2])/e

________________________________________________________________________________________

Maple [B]  time = 0.393, size = 646, normalized size = 2.1 \begin{align*} -{\frac{c{a}^{2}}{ \left ( ecx+dc \right ) e}}-{\frac{c{b}^{2} \left ( \arcsin \left ( cx \right ) \right ) ^{2}}{ \left ( ecx+dc \right ) e}}+2\,{\frac{c{b}^{2}\sqrt{-{c}^{2}{d}^{2}+{e}^{2}}\arcsin \left ( cx \right ) }{e \left ({c}^{2}{d}^{2}-{e}^{2} \right ) }\ln \left ({\frac{idc+ \left ( icx+\sqrt{-{c}^{2}{x}^{2}+1} \right ) e+\sqrt{-{c}^{2}{d}^{2}+{e}^{2}}}{idc+\sqrt{-{c}^{2}{d}^{2}+{e}^{2}}}} \right ) }-2\,{\frac{c{b}^{2}\sqrt{-{c}^{2}{d}^{2}+{e}^{2}}\arcsin \left ( cx \right ) }{e \left ({c}^{2}{d}^{2}-{e}^{2} \right ) }\ln \left ({\frac{idc+ \left ( icx+\sqrt{-{c}^{2}{x}^{2}+1} \right ) e-\sqrt{-{c}^{2}{d}^{2}+{e}^{2}}}{idc-\sqrt{-{c}^{2}{d}^{2}+{e}^{2}}}} \right ) }+{\frac{2\,ic{b}^{2}}{e \left ({c}^{2}{d}^{2}-{e}^{2} \right ) }\sqrt{-{c}^{2}{d}^{2}+{e}^{2}}{\it dilog} \left ({ \left ( idc+ \left ( icx+\sqrt{-{c}^{2}{x}^{2}+1} \right ) e-\sqrt{-{c}^{2}{d}^{2}+{e}^{2}} \right ) \left ( idc-\sqrt{-{c}^{2}{d}^{2}+{e}^{2}} \right ) ^{-1}} \right ) }-{\frac{2\,ic{b}^{2}}{e \left ({c}^{2}{d}^{2}-{e}^{2} \right ) }\sqrt{-{c}^{2}{d}^{2}+{e}^{2}}{\it dilog} \left ({ \left ( idc+ \left ( icx+\sqrt{-{c}^{2}{x}^{2}+1} \right ) e+\sqrt{-{c}^{2}{d}^{2}+{e}^{2}} \right ) \left ( idc+\sqrt{-{c}^{2}{d}^{2}+{e}^{2}} \right ) ^{-1}} \right ) }-2\,{\frac{cab\arcsin \left ( cx \right ) }{ \left ( ecx+dc \right ) e}}-2\,{\frac{cab}{{e}^{2}}\ln \left ({ \left ( -2\,{\frac{{c}^{2}{d}^{2}-{e}^{2}}{{e}^{2}}}+2\,{\frac{dc}{e} \left ( cx+{\frac{dc}{e}} \right ) }+2\,\sqrt{-{\frac{{c}^{2}{d}^{2}-{e}^{2}}{{e}^{2}}}}\sqrt{- \left ( cx+{\frac{dc}{e}} \right ) ^{2}+2\,{\frac{dc}{e} \left ( cx+{\frac{dc}{e}} \right ) }-{\frac{{c}^{2}{d}^{2}-{e}^{2}}{{e}^{2}}}} \right ) \left ( cx+{\frac{dc}{e}} \right ) ^{-1}} \right ){\frac{1}{\sqrt{-{\frac{{c}^{2}{d}^{2}-{e}^{2}}{{e}^{2}}}}}}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((a+b*arcsin(c*x))^2/(e*x+d)^2,x)

[Out]

-c*a^2/(c*e*x+c*d)/e-c*b^2*arcsin(c*x)^2/e/(c*e*x+c*d)+2*c*b^2*(-c^2*d^2+e^2)^(1/2)/e/(c^2*d^2-e^2)*arcsin(c*x
)*ln((I*d*c+(I*c*x+(-c^2*x^2+1)^(1/2))*e+(-c^2*d^2+e^2)^(1/2))/(I*d*c+(-c^2*d^2+e^2)^(1/2)))-2*c*b^2*(-c^2*d^2
+e^2)^(1/2)/e/(c^2*d^2-e^2)*arcsin(c*x)*ln((I*d*c+(I*c*x+(-c^2*x^2+1)^(1/2))*e-(-c^2*d^2+e^2)^(1/2))/(I*d*c-(-
c^2*d^2+e^2)^(1/2)))+2*I*c*b^2*(-c^2*d^2+e^2)^(1/2)/e/(c^2*d^2-e^2)*dilog((I*d*c+(I*c*x+(-c^2*x^2+1)^(1/2))*e-
(-c^2*d^2+e^2)^(1/2))/(I*d*c-(-c^2*d^2+e^2)^(1/2)))-2*I*c*b^2*(-c^2*d^2+e^2)^(1/2)/e/(c^2*d^2-e^2)*dilog((I*d*
c+(I*c*x+(-c^2*x^2+1)^(1/2))*e+(-c^2*d^2+e^2)^(1/2))/(I*d*c+(-c^2*d^2+e^2)^(1/2)))-2*c*a*b/(c*e*x+c*d)/e*arcsi
n(c*x)-2*c*a*b/e^2/(-(c^2*d^2-e^2)/e^2)^(1/2)*ln((-2*(c^2*d^2-e^2)/e^2+2*d*c/e*(c*x+d*c/e)+2*(-(c^2*d^2-e^2)/e
^2)^(1/2)*(-(c*x+d*c/e)^2+2*d*c/e*(c*x+d*c/e)-(c^2*d^2-e^2)/e^2)^(1/2))/(c*x+d*c/e))

________________________________________________________________________________________

Maxima [F(-2)]  time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+b*arcsin(c*x))^2/(e*x+d)^2,x, algorithm="maxima")

[Out]

Exception raised: ValueError

________________________________________________________________________________________

Fricas [F]  time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left (\frac{b^{2} \arcsin \left (c x\right )^{2} + 2 \, a b \arcsin \left (c x\right ) + a^{2}}{e^{2} x^{2} + 2 \, d e x + d^{2}}, x\right ) \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+b*arcsin(c*x))^2/(e*x+d)^2,x, algorithm="fricas")

[Out]

integral((b^2*arcsin(c*x)^2 + 2*a*b*arcsin(c*x) + a^2)/(e^2*x^2 + 2*d*e*x + d^2), x)

________________________________________________________________________________________

Sympy [F]  time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\left (a + b \operatorname{asin}{\left (c x \right )}\right )^{2}}{\left (d + e x\right )^{2}}\, dx \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+b*asin(c*x))**2/(e*x+d)**2,x)

[Out]

Integral((a + b*asin(c*x))**2/(d + e*x)**2, x)

________________________________________________________________________________________

Giac [F]  time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{{\left (b \arcsin \left (c x\right ) + a\right )}^{2}}{{\left (e x + d\right )}^{2}}\,{d x} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+b*arcsin(c*x))^2/(e*x+d)^2,x, algorithm="giac")

[Out]

integrate((b*arcsin(c*x) + a)^2/(e*x + d)^2, x)