### 3.777 $$\int (a+b x)^4 \sqrt{a^2-b^2 x^2} \, dx$$

Optimal. Leaf size=173 $\frac{21}{16} a^4 x \sqrt{a^2-b^2 x^2}-\frac{7 a^3 \left (a^2-b^2 x^2\right )^{3/2}}{8 b}-\frac{21 a^2 (a+b x) \left (a^2-b^2 x^2\right )^{3/2}}{40 b}-\frac{3 a (a+b x)^2 \left (a^2-b^2 x^2\right )^{3/2}}{10 b}-\frac{(a+b x)^3 \left (a^2-b^2 x^2\right )^{3/2}}{6 b}+\frac{21 a^6 \tan ^{-1}\left (\frac{b x}{\sqrt{a^2-b^2 x^2}}\right )}{16 b}$

[Out]

(21*a^4*x*Sqrt[a^2 - b^2*x^2])/16 - (7*a^3*(a^2 - b^2*x^2)^(3/2))/(8*b) - (21*a^2*(a + b*x)*(a^2 - b^2*x^2)^(3
/2))/(40*b) - (3*a*(a + b*x)^2*(a^2 - b^2*x^2)^(3/2))/(10*b) - ((a + b*x)^3*(a^2 - b^2*x^2)^(3/2))/(6*b) + (21
*a^6*ArcTan[(b*x)/Sqrt[a^2 - b^2*x^2]])/(16*b)

________________________________________________________________________________________

Rubi [A]  time = 0.0757016, antiderivative size = 173, normalized size of antiderivative = 1., number of steps used = 7, number of rules used = 5, integrand size = 24, $$\frac{\text{number of rules}}{\text{integrand size}}$$ = 0.208, Rules used = {671, 641, 195, 217, 203} $\frac{21}{16} a^4 x \sqrt{a^2-b^2 x^2}-\frac{7 a^3 \left (a^2-b^2 x^2\right )^{3/2}}{8 b}-\frac{21 a^2 (a+b x) \left (a^2-b^2 x^2\right )^{3/2}}{40 b}-\frac{3 a (a+b x)^2 \left (a^2-b^2 x^2\right )^{3/2}}{10 b}-\frac{(a+b x)^3 \left (a^2-b^2 x^2\right )^{3/2}}{6 b}+\frac{21 a^6 \tan ^{-1}\left (\frac{b x}{\sqrt{a^2-b^2 x^2}}\right )}{16 b}$

Antiderivative was successfully veriﬁed.

[In]

Int[(a + b*x)^4*Sqrt[a^2 - b^2*x^2],x]

[Out]

(21*a^4*x*Sqrt[a^2 - b^2*x^2])/16 - (7*a^3*(a^2 - b^2*x^2)^(3/2))/(8*b) - (21*a^2*(a + b*x)*(a^2 - b^2*x^2)^(3
/2))/(40*b) - (3*a*(a + b*x)^2*(a^2 - b^2*x^2)^(3/2))/(10*b) - ((a + b*x)^3*(a^2 - b^2*x^2)^(3/2))/(6*b) + (21
*a^6*ArcTan[(b*x)/Sqrt[a^2 - b^2*x^2]])/(16*b)

Rule 671

Int[((d_) + (e_.)*(x_))^(m_)*((a_) + (c_.)*(x_)^2)^(p_), x_Symbol] :> Simp[(e*(d + e*x)^(m - 1)*(a + c*x^2)^(p
+ 1))/(c*(m + 2*p + 1)), x] + Dist[(2*c*d*(m + p))/(c*(m + 2*p + 1)), Int[(d + e*x)^(m - 1)*(a + c*x^2)^p, x]
, x] /; FreeQ[{a, c, d, e, p}, x] && EqQ[c*d^2 + a*e^2, 0] && GtQ[m, 1] && NeQ[m + 2*p + 1, 0] && IntegerQ[2*p
]

Rule 641

Int[((d_) + (e_.)*(x_))*((a_) + (c_.)*(x_)^2)^(p_.), x_Symbol] :> Simp[(e*(a + c*x^2)^(p + 1))/(2*c*(p + 1)),
x] + Dist[d, Int[(a + c*x^2)^p, x], x] /; FreeQ[{a, c, d, e, p}, x] && NeQ[p, -1]

Rule 195

Int[((a_) + (b_.)*(x_)^(n_))^(p_), x_Symbol] :> Simp[(x*(a + b*x^n)^p)/(n*p + 1), x] + Dist[(a*n*p)/(n*p + 1),
Int[(a + b*x^n)^(p - 1), x], x] /; FreeQ[{a, b}, x] && IGtQ[n, 0] && GtQ[p, 0] && (IntegerQ[2*p] || (EqQ[n, 2
] && IntegerQ[4*p]) || (EqQ[n, 2] && IntegerQ[3*p]) || LtQ[Denominator[p + 1/n], Denominator[p]])

Rule 217

Int[1/Sqrt[(a_) + (b_.)*(x_)^2], x_Symbol] :> Subst[Int[1/(1 - b*x^2), x], x, x/Sqrt[a + b*x^2]] /; FreeQ[{a,
b}, x] &&  !GtQ[a, 0]

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 (a+b x)^4 \sqrt{a^2-b^2 x^2} \, dx &=-\frac{(a+b x)^3 \left (a^2-b^2 x^2\right )^{3/2}}{6 b}+\frac{1}{2} (3 a) \int (a+b x)^3 \sqrt{a^2-b^2 x^2} \, dx\\ &=-\frac{3 a (a+b x)^2 \left (a^2-b^2 x^2\right )^{3/2}}{10 b}-\frac{(a+b x)^3 \left (a^2-b^2 x^2\right )^{3/2}}{6 b}+\frac{1}{10} \left (21 a^2\right ) \int (a+b x)^2 \sqrt{a^2-b^2 x^2} \, dx\\ &=-\frac{21 a^2 (a+b x) \left (a^2-b^2 x^2\right )^{3/2}}{40 b}-\frac{3 a (a+b x)^2 \left (a^2-b^2 x^2\right )^{3/2}}{10 b}-\frac{(a+b x)^3 \left (a^2-b^2 x^2\right )^{3/2}}{6 b}+\frac{1}{8} \left (21 a^3\right ) \int (a+b x) \sqrt{a^2-b^2 x^2} \, dx\\ &=-\frac{7 a^3 \left (a^2-b^2 x^2\right )^{3/2}}{8 b}-\frac{21 a^2 (a+b x) \left (a^2-b^2 x^2\right )^{3/2}}{40 b}-\frac{3 a (a+b x)^2 \left (a^2-b^2 x^2\right )^{3/2}}{10 b}-\frac{(a+b x)^3 \left (a^2-b^2 x^2\right )^{3/2}}{6 b}+\frac{1}{8} \left (21 a^4\right ) \int \sqrt{a^2-b^2 x^2} \, dx\\ &=\frac{21}{16} a^4 x \sqrt{a^2-b^2 x^2}-\frac{7 a^3 \left (a^2-b^2 x^2\right )^{3/2}}{8 b}-\frac{21 a^2 (a+b x) \left (a^2-b^2 x^2\right )^{3/2}}{40 b}-\frac{3 a (a+b x)^2 \left (a^2-b^2 x^2\right )^{3/2}}{10 b}-\frac{(a+b x)^3 \left (a^2-b^2 x^2\right )^{3/2}}{6 b}+\frac{1}{16} \left (21 a^6\right ) \int \frac{1}{\sqrt{a^2-b^2 x^2}} \, dx\\ &=\frac{21}{16} a^4 x \sqrt{a^2-b^2 x^2}-\frac{7 a^3 \left (a^2-b^2 x^2\right )^{3/2}}{8 b}-\frac{21 a^2 (a+b x) \left (a^2-b^2 x^2\right )^{3/2}}{40 b}-\frac{3 a (a+b x)^2 \left (a^2-b^2 x^2\right )^{3/2}}{10 b}-\frac{(a+b x)^3 \left (a^2-b^2 x^2\right )^{3/2}}{6 b}+\frac{1}{16} \left (21 a^6\right ) \operatorname{Subst}\left (\int \frac{1}{1+b^2 x^2} \, dx,x,\frac{x}{\sqrt{a^2-b^2 x^2}}\right )\\ &=\frac{21}{16} a^4 x \sqrt{a^2-b^2 x^2}-\frac{7 a^3 \left (a^2-b^2 x^2\right )^{3/2}}{8 b}-\frac{21 a^2 (a+b x) \left (a^2-b^2 x^2\right )^{3/2}}{40 b}-\frac{3 a (a+b x)^2 \left (a^2-b^2 x^2\right )^{3/2}}{10 b}-\frac{(a+b x)^3 \left (a^2-b^2 x^2\right )^{3/2}}{6 b}+\frac{21 a^6 \tan ^{-1}\left (\frac{b x}{\sqrt{a^2-b^2 x^2}}\right )}{16 b}\\ \end{align*}

Mathematica [A]  time = 0.21049, size = 123, normalized size = 0.71 $\frac{\sqrt{a^2-b^2 x^2} \left (\sqrt{1-\frac{b^2 x^2}{a^2}} \left (256 a^3 b^2 x^2+350 a^2 b^3 x^3-75 a^4 b x-448 a^5+192 a b^4 x^4+40 b^5 x^5\right )+315 a^5 \sin ^{-1}\left (\frac{b x}{a}\right )\right )}{240 b \sqrt{1-\frac{b^2 x^2}{a^2}}}$

Antiderivative was successfully veriﬁed.

[In]

Integrate[(a + b*x)^4*Sqrt[a^2 - b^2*x^2],x]

[Out]

(Sqrt[a^2 - b^2*x^2]*(Sqrt[1 - (b^2*x^2)/a^2]*(-448*a^5 - 75*a^4*b*x + 256*a^3*b^2*x^2 + 350*a^2*b^3*x^3 + 192
*a*b^4*x^4 + 40*b^5*x^5) + 315*a^5*ArcSin[(b*x)/a]))/(240*b*Sqrt[1 - (b^2*x^2)/a^2])

________________________________________________________________________________________

Maple [A]  time = 0.058, size = 139, normalized size = 0.8 \begin{align*} -{\frac{{b}^{2}{x}^{3}}{6} \left ( -{b}^{2}{x}^{2}+{a}^{2} \right ) ^{{\frac{3}{2}}}}-{\frac{13\,{a}^{2}x}{8} \left ( -{b}^{2}{x}^{2}+{a}^{2} \right ) ^{{\frac{3}{2}}}}+{\frac{21\,{a}^{4}x}{16}\sqrt{-{b}^{2}{x}^{2}+{a}^{2}}}+{\frac{21\,{a}^{6}}{16}\arctan \left ({x\sqrt{{b}^{2}}{\frac{1}{\sqrt{-{b}^{2}{x}^{2}+{a}^{2}}}}} \right ){\frac{1}{\sqrt{{b}^{2}}}}}-{\frac{4\,ab{x}^{2}}{5} \left ( -{b}^{2}{x}^{2}+{a}^{2} \right ) ^{{\frac{3}{2}}}}-{\frac{28\,{a}^{3}}{15\,b} \left ( -{b}^{2}{x}^{2}+{a}^{2} \right ) ^{{\frac{3}{2}}}} \end{align*}

Veriﬁcation of antiderivative is not currently implemented for this CAS.

[In]

int((b*x+a)^4*(-b^2*x^2+a^2)^(1/2),x)

[Out]

-1/6*b^2*x^3*(-b^2*x^2+a^2)^(3/2)-13/8*a^2*x*(-b^2*x^2+a^2)^(3/2)+21/16*a^4*x*(-b^2*x^2+a^2)^(1/2)+21/16*a^6/(
b^2)^(1/2)*arctan((b^2)^(1/2)*x/(-b^2*x^2+a^2)^(1/2))-4/5*a*b*x^2*(-b^2*x^2+a^2)^(3/2)-28/15*a^3*(-b^2*x^2+a^2
)^(3/2)/b

________________________________________________________________________________________

Maxima [A]  time = 1.60884, size = 177, normalized size = 1.02 \begin{align*} -\frac{1}{6} \,{\left (-b^{2} x^{2} + a^{2}\right )}^{\frac{3}{2}} b^{2} x^{3} + \frac{21 \, a^{6} \arcsin \left (\frac{b^{2} x}{\sqrt{a^{2} b^{2}}}\right )}{16 \, \sqrt{b^{2}}} + \frac{21}{16} \, \sqrt{-b^{2} x^{2} + a^{2}} a^{4} x - \frac{4}{5} \,{\left (-b^{2} x^{2} + a^{2}\right )}^{\frac{3}{2}} a b x^{2} - \frac{13}{8} \,{\left (-b^{2} x^{2} + a^{2}\right )}^{\frac{3}{2}} a^{2} x - \frac{28 \,{\left (-b^{2} x^{2} + a^{2}\right )}^{\frac{3}{2}} a^{3}}{15 \, b} \end{align*}

Veriﬁcation of antiderivative is not currently implemented for this CAS.

[In]

integrate((b*x+a)^4*(-b^2*x^2+a^2)^(1/2),x, algorithm="maxima")

[Out]

-1/6*(-b^2*x^2 + a^2)^(3/2)*b^2*x^3 + 21/16*a^6*arcsin(b^2*x/sqrt(a^2*b^2))/sqrt(b^2) + 21/16*sqrt(-b^2*x^2 +
a^2)*a^4*x - 4/5*(-b^2*x^2 + a^2)^(3/2)*a*b*x^2 - 13/8*(-b^2*x^2 + a^2)^(3/2)*a^2*x - 28/15*(-b^2*x^2 + a^2)^(
3/2)*a^3/b

________________________________________________________________________________________

Fricas [A]  time = 1.83845, size = 234, normalized size = 1.35 \begin{align*} -\frac{630 \, a^{6} \arctan \left (-\frac{a - \sqrt{-b^{2} x^{2} + a^{2}}}{b x}\right ) -{\left (40 \, b^{5} x^{5} + 192 \, a b^{4} x^{4} + 350 \, a^{2} b^{3} x^{3} + 256 \, a^{3} b^{2} x^{2} - 75 \, a^{4} b x - 448 \, a^{5}\right )} \sqrt{-b^{2} x^{2} + a^{2}}}{240 \, b} \end{align*}

Veriﬁcation of antiderivative is not currently implemented for this CAS.

[In]

integrate((b*x+a)^4*(-b^2*x^2+a^2)^(1/2),x, algorithm="fricas")

[Out]

-1/240*(630*a^6*arctan(-(a - sqrt(-b^2*x^2 + a^2))/(b*x)) - (40*b^5*x^5 + 192*a*b^4*x^4 + 350*a^2*b^3*x^3 + 25
6*a^3*b^2*x^2 - 75*a^4*b*x - 448*a^5)*sqrt(-b^2*x^2 + a^2))/b

________________________________________________________________________________________

Sympy [C]  time = 12.3879, size = 706, normalized size = 4.08 \begin{align*} \text{result too large to display} \end{align*}

Veriﬁcation of antiderivative is not currently implemented for this CAS.

[In]

integrate((b*x+a)**4*(-b**2*x**2+a**2)**(1/2),x)

[Out]

a**4*Piecewise((-I*a**2*acosh(b*x/a)/(2*b) - I*a*x/(2*sqrt(-1 + b**2*x**2/a**2)) + I*b**2*x**3/(2*a*sqrt(-1 +
b**2*x**2/a**2)), Abs(b**2*x**2)/Abs(a**2) > 1), (a**2*asin(b*x/a)/(2*b) + a*x*sqrt(1 - b**2*x**2/a**2)/2, Tru
e)) + 4*a**3*b*Piecewise((x**2*sqrt(a**2)/2, Eq(b**2, 0)), (-(a**2 - b**2*x**2)**(3/2)/(3*b**2), True)) + 6*a*
*2*b**2*Piecewise((-I*a**4*acosh(b*x/a)/(8*b**3) + I*a**3*x/(8*b**2*sqrt(-1 + b**2*x**2/a**2)) - 3*I*a*x**3/(8
*sqrt(-1 + b**2*x**2/a**2)) + I*b**2*x**5/(4*a*sqrt(-1 + b**2*x**2/a**2)), Abs(b**2*x**2)/Abs(a**2) > 1), (a**
4*asin(b*x/a)/(8*b**3) - a**3*x/(8*b**2*sqrt(1 - b**2*x**2/a**2)) + 3*a*x**3/(8*sqrt(1 - b**2*x**2/a**2)) - b*
*2*x**5/(4*a*sqrt(1 - b**2*x**2/a**2)), True)) + 4*a*b**3*Piecewise((-2*a**4*sqrt(a**2 - b**2*x**2)/(15*b**4)
- a**2*x**2*sqrt(a**2 - b**2*x**2)/(15*b**2) + x**4*sqrt(a**2 - b**2*x**2)/5, Ne(b, 0)), (x**4*sqrt(a**2)/4, T
rue)) + b**4*Piecewise((-I*a**6*acosh(b*x/a)/(16*b**5) + I*a**5*x/(16*b**4*sqrt(-1 + b**2*x**2/a**2)) - I*a**3
*x**3/(48*b**2*sqrt(-1 + b**2*x**2/a**2)) - 5*I*a*x**5/(24*sqrt(-1 + b**2*x**2/a**2)) + I*b**2*x**7/(6*a*sqrt(
-1 + b**2*x**2/a**2)), Abs(b**2*x**2)/Abs(a**2) > 1), (a**6*asin(b*x/a)/(16*b**5) - a**5*x/(16*b**4*sqrt(1 - b
**2*x**2/a**2)) + a**3*x**3/(48*b**2*sqrt(1 - b**2*x**2/a**2)) + 5*a*x**5/(24*sqrt(1 - b**2*x**2/a**2)) - b**2
*x**7/(6*a*sqrt(1 - b**2*x**2/a**2)), True))

________________________________________________________________________________________

Giac [A]  time = 1.16998, size = 123, normalized size = 0.71 \begin{align*} \frac{21 \, a^{6} \arcsin \left (\frac{b x}{a}\right ) \mathrm{sgn}\left (a\right ) \mathrm{sgn}\left (b\right )}{16 \,{\left | b \right |}} - \frac{1}{240} \,{\left (\frac{448 \, a^{5}}{b} +{\left (75 \, a^{4} - 2 \,{\left (128 \, a^{3} b +{\left (175 \, a^{2} b^{2} + 4 \,{\left (5 \, b^{4} x + 24 \, a b^{3}\right )} x\right )} x\right )} x\right )} x\right )} \sqrt{-b^{2} x^{2} + a^{2}} \end{align*}

Veriﬁcation of antiderivative is not currently implemented for this CAS.

[In]

integrate((b*x+a)^4*(-b^2*x^2+a^2)^(1/2),x, algorithm="giac")

[Out]

21/16*a^6*arcsin(b*x/a)*sgn(a)*sgn(b)/abs(b) - 1/240*(448*a^5/b + (75*a^4 - 2*(128*a^3*b + (175*a^2*b^2 + 4*(5
*b^4*x + 24*a*b^3)*x)*x)*x)*x)*sqrt(-b^2*x^2 + a^2)