3.1.26 \(\int \log (x^2+\sqrt {1-x^2}) \, dx\) [26]

Optimal. Leaf size=185 \[ -2 x-\sin ^{-1}(x)+\sqrt {\frac {1}{2} \left (1+\sqrt {5}\right )} \tan ^{-1}\left (\sqrt {\frac {2}{1+\sqrt {5}}} x\right )+\sqrt {\frac {1}{2} \left (1+\sqrt {5}\right )} \tan ^{-1}\left (\frac {\sqrt {\frac {1}{2} \left (1+\sqrt {5}\right )} x}{\sqrt {1-x^2}}\right )+\sqrt {\frac {1}{2} \left (-1+\sqrt {5}\right )} \tanh ^{-1}\left (\sqrt {\frac {2}{-1+\sqrt {5}}} x\right )-\sqrt {\frac {1}{2} \left (-1+\sqrt {5}\right )} \tanh ^{-1}\left (\frac {\sqrt {\frac {1}{2} \left (-1+\sqrt {5}\right )} x}{\sqrt {1-x^2}}\right )+x \log \left (x^2+\sqrt {1-x^2}\right ) \]

[Out]

-2*x-arcsin(x)+x*ln(x^2+(-x^2+1)^(1/2))+1/2*arctanh(x*2^(1/2)/(5^(1/2)-1)^(1/2))*(-2+2*5^(1/2))^(1/2)-1/2*arct
anh(1/2*x*(-2+2*5^(1/2))^(1/2)/(-x^2+1)^(1/2))*(-2+2*5^(1/2))^(1/2)+1/2*arctan(x*2^(1/2)/(5^(1/2)+1)^(1/2))*(2
+2*5^(1/2))^(1/2)+1/2*arctan(1/2*x*(2+2*5^(1/2))^(1/2)/(-x^2+1)^(1/2))*(2+2*5^(1/2))^(1/2)

________________________________________________________________________________________

Rubi [A]
time = 0.70, antiderivative size = 349, normalized size of antiderivative = 1.89, number of steps used = 31, number of rules used = 12, integrand size = 16, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.750, Rules used = {2628, 6874, 1307, 222, 1706, 385, 213, 209, 1180, 1144, 1188, 399} \begin {gather*} x \log \left (x^2+\sqrt {1-x^2}\right )+2 \sqrt {\frac {1}{5} \left (2+\sqrt {5}\right )} \tan ^{-1}\left (\frac {\sqrt {\frac {1}{2} \left (1+\sqrt {5}\right )} x}{\sqrt {1-x^2}}\right )-\sqrt {\frac {1}{10} \left (1+\sqrt {5}\right )} \tan ^{-1}\left (\frac {\sqrt {\frac {1}{2} \left (1+\sqrt {5}\right )} x}{\sqrt {1-x^2}}\right )-\sqrt {\frac {1}{10} \left (\sqrt {5}-1\right )} \tanh ^{-1}\left (\frac {\sqrt {\frac {1}{2} \left (\sqrt {5}-1\right )} x}{\sqrt {1-x^2}}\right )-2 \sqrt {\frac {1}{5} \left (\sqrt {5}-2\right )} \tanh ^{-1}\left (\frac {\sqrt {\frac {1}{2} \left (\sqrt {5}-1\right )} x}{\sqrt {1-x^2}}\right )-2 x-\sin ^{-1}(x)+2 \sqrt {\frac {1}{5} \left (2+\sqrt {5}\right )} \tan ^{-1}\left (\sqrt {\frac {2}{1+\sqrt {5}}} x\right )-\sqrt {\frac {1}{10} \left (1+\sqrt {5}\right )} \tan ^{-1}\left (\sqrt {\frac {2}{1+\sqrt {5}}} x\right )+\sqrt {\frac {1}{10} \left (\sqrt {5}-1\right )} \tanh ^{-1}\left (\sqrt {\frac {2}{\sqrt {5}-1}} x\right )+2 \sqrt {\frac {1}{5} \left (\sqrt {5}-2\right )} \tanh ^{-1}\left (\sqrt {\frac {2}{\sqrt {5}-1}} x\right ) \end {gather*}

Antiderivative was successfully verified.

[In]

Int[Log[x^2 + Sqrt[1 - x^2]],x]

[Out]

-2*x - ArcSin[x] - Sqrt[(1 + Sqrt[5])/10]*ArcTan[Sqrt[2/(1 + Sqrt[5])]*x] + 2*Sqrt[(2 + Sqrt[5])/5]*ArcTan[Sqr
t[2/(1 + Sqrt[5])]*x] - Sqrt[(1 + Sqrt[5])/10]*ArcTan[(Sqrt[(1 + Sqrt[5])/2]*x)/Sqrt[1 - x^2]] + 2*Sqrt[(2 + S
qrt[5])/5]*ArcTan[(Sqrt[(1 + Sqrt[5])/2]*x)/Sqrt[1 - x^2]] + 2*Sqrt[(-2 + Sqrt[5])/5]*ArcTanh[Sqrt[2/(-1 + Sqr
t[5])]*x] + Sqrt[(-1 + Sqrt[5])/10]*ArcTanh[Sqrt[2/(-1 + Sqrt[5])]*x] - 2*Sqrt[(-2 + Sqrt[5])/5]*ArcTanh[(Sqrt
[(-1 + Sqrt[5])/2]*x)/Sqrt[1 - x^2]] - Sqrt[(-1 + Sqrt[5])/10]*ArcTanh[(Sqrt[(-1 + Sqrt[5])/2]*x)/Sqrt[1 - x^2
]] + x*Log[x^2 + Sqrt[1 - x^2]]

Rule 209

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

Rule 213

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

Rule 222

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

Rule 385

Int[((a_) + (b_.)*(x_)^(n_))^(p_)/((c_) + (d_.)*(x_)^(n_)), x_Symbol] :> Subst[Int[1/(c - (b*c - a*d)*x^n), x]
, x, x/(a + b*x^n)^(1/n)] /; FreeQ[{a, b, c, d}, x] && NeQ[b*c - a*d, 0] && EqQ[n*p + 1, 0] && IntegerQ[n]

Rule 399

Int[((a_) + (b_.)*(x_)^(n_))^(p_)/((c_) + (d_.)*(x_)^(n_)), x_Symbol] :> Dist[b/d, Int[(a + b*x^n)^(p - 1), x]
, x] - Dist[(b*c - a*d)/d, Int[(a + b*x^n)^(p - 1)/(c + d*x^n), x], x] /; FreeQ[{a, b, c, d, p}, x] && NeQ[b*c
 - a*d, 0] && EqQ[n*(p - 1) + 1, 0] && IntegerQ[n]

Rule 1144

Int[((d_.)*(x_))^(m_)/((a_) + (b_.)*(x_)^2 + (c_.)*(x_)^4), x_Symbol] :> With[{q = Rt[b^2 - 4*a*c, 2]}, Dist[(
d^2/2)*(b/q + 1), Int[(d*x)^(m - 2)/(b/2 + q/2 + c*x^2), x], x] - Dist[(d^2/2)*(b/q - 1), Int[(d*x)^(m - 2)/(b
/2 - q/2 + c*x^2), x], x]] /; FreeQ[{a, b, c, d}, x] && NeQ[b^2 - 4*a*c, 0] && GeQ[m, 2]

Rule 1180

Int[((d_) + (e_.)*(x_)^2)/((a_) + (b_.)*(x_)^2 + (c_.)*(x_)^4), x_Symbol] :> With[{q = Rt[b^2 - 4*a*c, 2]}, Di
st[e/2 + (2*c*d - b*e)/(2*q), Int[1/(b/2 - q/2 + c*x^2), x], x] + Dist[e/2 - (2*c*d - b*e)/(2*q), Int[1/(b/2 +
 q/2 + c*x^2), x], x]] /; FreeQ[{a, b, c, d, e}, x] && NeQ[b^2 - 4*a*c, 0] && NeQ[c*d^2 - a*e^2, 0] && PosQ[b^
2 - 4*a*c]

Rule 1188

Int[((d_) + (e_.)*(x_)^2)^(q_)/((a_) + (b_.)*(x_)^2 + (c_.)*(x_)^4), x_Symbol] :> With[{r = Rt[b^2 - 4*a*c, 2]
}, Dist[2*(c/r), Int[(d + e*x^2)^q/(b - r + 2*c*x^2), x], x] - Dist[2*(c/r), Int[(d + e*x^2)^q/(b + r + 2*c*x^
2), x], x]] /; FreeQ[{a, b, c, d, e, q}, x] && NeQ[b^2 - 4*a*c, 0] && NeQ[c*d^2 - b*d*e + a*e^2, 0] &&  !Integ
erQ[q]

Rule 1307

Int[(((f_.)*(x_))^(m_.)*((d_.) + (e_.)*(x_)^2)^(q_))/((a_) + (b_.)*(x_)^2 + (c_.)*(x_)^4), x_Symbol] :> Dist[e
*(f^2/c), Int[(f*x)^(m - 2)*(d + e*x^2)^(q - 1), x], x] - Dist[f^2/c, Int[(f*x)^(m - 2)*(d + e*x^2)^(q - 1)*(S
imp[a*e - (c*d - b*e)*x^2, x]/(a + b*x^2 + c*x^4)), x], x] /; FreeQ[{a, b, c, d, e, f}, x] && NeQ[b^2 - 4*a*c,
 0] &&  !IntegerQ[q] && GtQ[q, 0] && GtQ[m, 1] && LeQ[m, 3]

Rule 1706

Int[(Px_)*((d_) + (e_.)*(x_)^2)^(q_.)*((a_) + (b_.)*(x_)^2 + (c_.)*(x_)^4)^(p_.), x_Symbol] :> Int[ExpandInteg
rand[Px*(d + e*x^2)^q*(a + b*x^2 + c*x^4)^p, x], x] /; FreeQ[{a, b, c, d, e, q}, x] && PolyQ[Px, x^2] && NeQ[b
^2 - 4*a*c, 0] && NeQ[c*d^2 - b*d*e + a*e^2, 0] && IntegerQ[p]

Rule 2628

Int[Log[u_], x_Symbol] :> Simp[x*Log[u], x] - Int[SimplifyIntegrand[x*(D[u, x]/u), x], x] /; InverseFunctionFr
eeQ[u, x]

Rule 6874

Int[u_, x_Symbol] :> With[{v = ExpandIntegrand[u, x]}, Int[v, x] /; SumQ[v]]

Rubi steps

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

________________________________________________________________________________________

Mathematica [C] Result contains complex when optimal does not.
time = 0.34, size = 910, normalized size = 4.92 \begin {gather*} \frac {-8 \sqrt {5} x-4 \sqrt {5} \sin ^{-1}(x)+5 \sqrt {2 \left (-1+\sqrt {5}\right )} \tan ^{-1}\left (\sqrt {\frac {2}{1+\sqrt {5}}} x\right )+\sqrt {10 \left (-1+\sqrt {5}\right )} \tan ^{-1}\left (\sqrt {\frac {2}{1+\sqrt {5}}} x\right )-\left (-5+\sqrt {5}\right ) \sqrt {2 \left (1+\sqrt {5}\right )} \tanh ^{-1}\left (\sqrt {\frac {2}{-1+\sqrt {5}}} x\right )-5 \sqrt {2+\sqrt {5}} \log \left (-\sqrt {\frac {1}{2} \left (-1+\sqrt {5}\right )}+x\right )+3 \sqrt {5 \left (2+\sqrt {5}\right )} \log \left (-\sqrt {\frac {1}{2} \left (-1+\sqrt {5}\right )}+x\right )+5 \sqrt {2+\sqrt {5}} \log \left (\sqrt {\frac {1}{2} \left (-1+\sqrt {5}\right )}+x\right )-3 \sqrt {5 \left (2+\sqrt {5}\right )} \log \left (\sqrt {\frac {1}{2} \left (-1+\sqrt {5}\right )}+x\right )-5 i \sqrt {-2+\sqrt {5}} \log \left (-i \sqrt {\frac {1}{2} \left (1+\sqrt {5}\right )}+x\right )-3 i \sqrt {5 \left (-2+\sqrt {5}\right )} \log \left (-i \sqrt {\frac {1}{2} \left (1+\sqrt {5}\right )}+x\right )+5 i \sqrt {-2+\sqrt {5}} \log \left (i \sqrt {\frac {1}{2} \left (1+\sqrt {5}\right )}+x\right )+3 i \sqrt {5 \left (-2+\sqrt {5}\right )} \log \left (i \sqrt {\frac {1}{2} \left (1+\sqrt {5}\right )}+x\right )+4 \sqrt {5} x \log \left (x^2+\sqrt {1-x^2}\right )+5 i \sqrt {-2+\sqrt {5}} \log \left (2-i \sqrt {2 \left (1+\sqrt {5}\right )} x+\sqrt {2 \left (3+\sqrt {5}\right )} \sqrt {1-x^2}\right )+3 i \sqrt {5 \left (-2+\sqrt {5}\right )} \log \left (2-i \sqrt {2 \left (1+\sqrt {5}\right )} x+\sqrt {2 \left (3+\sqrt {5}\right )} \sqrt {1-x^2}\right )-5 i \sqrt {-2+\sqrt {5}} \log \left (2+i \sqrt {2 \left (1+\sqrt {5}\right )} x+\sqrt {2 \left (3+\sqrt {5}\right )} \sqrt {1-x^2}\right )-3 i \sqrt {5 \left (-2+\sqrt {5}\right )} \log \left (2+i \sqrt {2 \left (1+\sqrt {5}\right )} x+\sqrt {2 \left (3+\sqrt {5}\right )} \sqrt {1-x^2}\right )+5 \sqrt {2+\sqrt {5}} \log \left (2-\sqrt {2 \left (-1+\sqrt {5}\right )} x+\sqrt {2} \sqrt {\left (-3+\sqrt {5}\right ) \left (-1+x^2\right )}\right )-3 \sqrt {5 \left (2+\sqrt {5}\right )} \log \left (2-\sqrt {2 \left (-1+\sqrt {5}\right )} x+\sqrt {2} \sqrt {\left (-3+\sqrt {5}\right ) \left (-1+x^2\right )}\right )-5 \sqrt {2+\sqrt {5}} \log \left (2+\sqrt {2 \left (-1+\sqrt {5}\right )} x+\sqrt {2} \sqrt {\left (-3+\sqrt {5}\right ) \left (-1+x^2\right )}\right )+3 \sqrt {5 \left (2+\sqrt {5}\right )} \log \left (2+\sqrt {2 \left (-1+\sqrt {5}\right )} x+\sqrt {2} \sqrt {\left (-3+\sqrt {5}\right ) \left (-1+x^2\right )}\right )}{4 \sqrt {5}} \end {gather*}

Warning: Unable to verify antiderivative.

[In]

Integrate[Log[x^2 + Sqrt[1 - x^2]],x]

[Out]

(-8*Sqrt[5]*x - 4*Sqrt[5]*ArcSin[x] + 5*Sqrt[2*(-1 + Sqrt[5])]*ArcTan[Sqrt[2/(1 + Sqrt[5])]*x] + Sqrt[10*(-1 +
 Sqrt[5])]*ArcTan[Sqrt[2/(1 + Sqrt[5])]*x] - (-5 + Sqrt[5])*Sqrt[2*(1 + Sqrt[5])]*ArcTanh[Sqrt[2/(-1 + Sqrt[5]
)]*x] - 5*Sqrt[2 + Sqrt[5]]*Log[-Sqrt[(-1 + Sqrt[5])/2] + x] + 3*Sqrt[5*(2 + Sqrt[5])]*Log[-Sqrt[(-1 + Sqrt[5]
)/2] + x] + 5*Sqrt[2 + Sqrt[5]]*Log[Sqrt[(-1 + Sqrt[5])/2] + x] - 3*Sqrt[5*(2 + Sqrt[5])]*Log[Sqrt[(-1 + Sqrt[
5])/2] + x] - (5*I)*Sqrt[-2 + Sqrt[5]]*Log[(-I)*Sqrt[(1 + Sqrt[5])/2] + x] - (3*I)*Sqrt[5*(-2 + Sqrt[5])]*Log[
(-I)*Sqrt[(1 + Sqrt[5])/2] + x] + (5*I)*Sqrt[-2 + Sqrt[5]]*Log[I*Sqrt[(1 + Sqrt[5])/2] + x] + (3*I)*Sqrt[5*(-2
 + Sqrt[5])]*Log[I*Sqrt[(1 + Sqrt[5])/2] + x] + 4*Sqrt[5]*x*Log[x^2 + Sqrt[1 - x^2]] + (5*I)*Sqrt[-2 + Sqrt[5]
]*Log[2 - I*Sqrt[2*(1 + Sqrt[5])]*x + Sqrt[2*(3 + Sqrt[5])]*Sqrt[1 - x^2]] + (3*I)*Sqrt[5*(-2 + Sqrt[5])]*Log[
2 - I*Sqrt[2*(1 + Sqrt[5])]*x + Sqrt[2*(3 + Sqrt[5])]*Sqrt[1 - x^2]] - (5*I)*Sqrt[-2 + Sqrt[5]]*Log[2 + I*Sqrt
[2*(1 + Sqrt[5])]*x + Sqrt[2*(3 + Sqrt[5])]*Sqrt[1 - x^2]] - (3*I)*Sqrt[5*(-2 + Sqrt[5])]*Log[2 + I*Sqrt[2*(1
+ Sqrt[5])]*x + Sqrt[2*(3 + Sqrt[5])]*Sqrt[1 - x^2]] + 5*Sqrt[2 + Sqrt[5]]*Log[2 - Sqrt[2*(-1 + Sqrt[5])]*x +
Sqrt[2]*Sqrt[(-3 + Sqrt[5])*(-1 + x^2)]] - 3*Sqrt[5*(2 + Sqrt[5])]*Log[2 - Sqrt[2*(-1 + Sqrt[5])]*x + Sqrt[2]*
Sqrt[(-3 + Sqrt[5])*(-1 + x^2)]] - 5*Sqrt[2 + Sqrt[5]]*Log[2 + Sqrt[2*(-1 + Sqrt[5])]*x + Sqrt[2]*Sqrt[(-3 + S
qrt[5])*(-1 + x^2)]] + 3*Sqrt[5*(2 + Sqrt[5])]*Log[2 + Sqrt[2*(-1 + Sqrt[5])]*x + Sqrt[2]*Sqrt[(-3 + Sqrt[5])*
(-1 + x^2)]])/(4*Sqrt[5])

________________________________________________________________________________________

Mathics [F(-1)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}

Warning: Unable to verify antiderivative.

[In]

mathics('Integrate[Log[x^2 + Sqrt[1 - x^2]],x]')

[Out]

Timed out

________________________________________________________________________________________

Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(391\) vs. \(2(138)=276\).
time = 0.10, size = 392, normalized size = 2.12

method result size
default \(x \ln \left (x^{2}+\sqrt {-x^{2}+1}\right )+\frac {\arctan \left (\frac {2 x}{\sqrt {2+2 \sqrt {5}}}\right )}{\sqrt {2+2 \sqrt {5}}}+\frac {\sqrt {5}\, \arctan \left (\frac {2 x}{\sqrt {2+2 \sqrt {5}}}\right )}{\sqrt {2+2 \sqrt {5}}}-\frac {\arctanh \left (\frac {2 x}{\sqrt {-2+2 \sqrt {5}}}\right )}{\sqrt {-2+2 \sqrt {5}}}+\frac {\sqrt {5}\, \arctanh \left (\frac {2 x}{\sqrt {-2+2 \sqrt {5}}}\right )}{\sqrt {-2+2 \sqrt {5}}}-2 x -\frac {\sqrt {5}\, \arctanh \left (\frac {\sqrt {-x^{2}+1}-1}{x \sqrt {2+\sqrt {5}}}\right )}{2 \sqrt {2+\sqrt {5}}}-\frac {\arctanh \left (\frac {\sqrt {-x^{2}+1}-1}{x \sqrt {2+\sqrt {5}}}\right )}{2 \sqrt {2+\sqrt {5}}}-\frac {\sqrt {5}\, \arctan \left (\frac {\sqrt {-x^{2}+1}-1}{x \sqrt {-2+\sqrt {5}}}\right )}{2 \sqrt {-2+\sqrt {5}}}+\frac {\arctan \left (\frac {\sqrt {-x^{2}+1}-1}{x \sqrt {-2+\sqrt {5}}}\right )}{2 \sqrt {-2+\sqrt {5}}}-\frac {3 \arctan \left (\frac {\sqrt {-x^{2}+1}-1}{x \sqrt {2+\sqrt {5}}}\right )}{2 \sqrt {2+\sqrt {5}}}-\frac {\sqrt {5}\, \arctan \left (\frac {\sqrt {-x^{2}+1}-1}{x \sqrt {2+\sqrt {5}}}\right )}{2 \sqrt {2+\sqrt {5}}}+\frac {3 \arctanh \left (\frac {\sqrt {-x^{2}+1}-1}{x \sqrt {-2+\sqrt {5}}}\right )}{2 \sqrt {-2+\sqrt {5}}}-\frac {\sqrt {5}\, \arctanh \left (\frac {\sqrt {-x^{2}+1}-1}{x \sqrt {-2+\sqrt {5}}}\right )}{2 \sqrt {-2+\sqrt {5}}}-\arcsin \left (x \right )\) \(392\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(ln(x^2+(-x^2+1)^(1/2)),x,method=_RETURNVERBOSE)

[Out]

x*ln(x^2+(-x^2+1)^(1/2))+1/(2+2*5^(1/2))^(1/2)*arctan(2*x/(2+2*5^(1/2))^(1/2))+5^(1/2)/(2+2*5^(1/2))^(1/2)*arc
tan(2*x/(2+2*5^(1/2))^(1/2))-1/(-2+2*5^(1/2))^(1/2)*arctanh(2*x/(-2+2*5^(1/2))^(1/2))+5^(1/2)/(-2+2*5^(1/2))^(
1/2)*arctanh(2*x/(-2+2*5^(1/2))^(1/2))-2*x-1/2*5^(1/2)/(2+5^(1/2))^(1/2)*arctanh(((-x^2+1)^(1/2)-1)/x/(2+5^(1/
2))^(1/2))-1/2/(2+5^(1/2))^(1/2)*arctanh(((-x^2+1)^(1/2)-1)/x/(2+5^(1/2))^(1/2))-1/2*5^(1/2)/(-2+5^(1/2))^(1/2
)*arctan(((-x^2+1)^(1/2)-1)/x/(-2+5^(1/2))^(1/2))+1/2/(-2+5^(1/2))^(1/2)*arctan(((-x^2+1)^(1/2)-1)/x/(-2+5^(1/
2))^(1/2))-3/2/(2+5^(1/2))^(1/2)*arctan(((-x^2+1)^(1/2)-1)/x/(2+5^(1/2))^(1/2))-1/2*5^(1/2)/(2+5^(1/2))^(1/2)*
arctan(((-x^2+1)^(1/2)-1)/x/(2+5^(1/2))^(1/2))+3/2/(-2+5^(1/2))^(1/2)*arctanh(((-x^2+1)^(1/2)-1)/x/(-2+5^(1/2)
)^(1/2))-1/2*5^(1/2)/(-2+5^(1/2))^(1/2)*arctanh(((-x^2+1)^(1/2)-1)/x/(-2+5^(1/2))^(1/2))-arcsin(x)

________________________________________________________________________________________

Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(log(x^2+(-x^2+1)^(1/2)),x, algorithm="maxima")

[Out]

x*log(x^2 + sqrt(x + 1)*sqrt(-x + 1)) - x - integrate((x^4 - 2*x^2)/(x^4 - x^2 + (x^2 - 1)*e^(1/2*log(x + 1) +
 1/2*log(-x + 1))), x) + 1/2*log(x + 1) - 1/2*log(-x + 1)

________________________________________________________________________________________

Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 452 vs. \(2 (138) = 276\).
time = 0.36, size = 452, normalized size = 2.44 \begin {gather*} -\sqrt {2} \sqrt {\sqrt {5} + 1} \arctan \left (\frac {1}{8} \, \sqrt {4 \, x^{2} + 2 \, \sqrt {5} + 2} {\left (\sqrt {5} \sqrt {2} - \sqrt {2}\right )} \sqrt {\sqrt {5} + 1} - \frac {1}{4} \, {\left (\sqrt {5} \sqrt {2} x - \sqrt {2} x\right )} \sqrt {\sqrt {5} + 1}\right ) - \sqrt {2} \sqrt {\sqrt {5} + 1} \arctan \left (\frac {\sqrt {2} {\left (\sqrt {-x^{2} + 1} {\left (\sqrt {5} \sqrt {2} - \sqrt {2}\right )} + \sqrt {5} \sqrt {2} - \sqrt {2}\right )} \sqrt {\sqrt {5} + 1} \sqrt {\frac {x^{4} - 4 \, x^{2} - \sqrt {5} {\left (x^{4} - 2 \, x^{2}\right )} - 2 \, {\left (\sqrt {5} x^{2} - x^{2} + 2\right )} \sqrt {-x^{2} + 1} + 4}{x^{4}}} + 2 \, \sqrt {-x^{2} + 1} {\left (\sqrt {5} \sqrt {2} - \sqrt {2}\right )} \sqrt {\sqrt {5} + 1}}{8 \, x}\right ) + x \log \left (x^{2} + \sqrt {-x^{2} + 1}\right ) + \frac {1}{4} \, \sqrt {2} \sqrt {\sqrt {5} - 1} \log \left (2 \, x + \sqrt {2} \sqrt {\sqrt {5} - 1}\right ) - \frac {1}{4} \, \sqrt {2} \sqrt {\sqrt {5} - 1} \log \left (2 \, x - \sqrt {2} \sqrt {\sqrt {5} - 1}\right ) + \frac {1}{4} \, \sqrt {2} \sqrt {\sqrt {5} - 1} \log \left (-\frac {2 \, x^{2} + {\left (\sqrt {2} \sqrt {-x^{2} + 1} x - \sqrt {2} x\right )} \sqrt {\sqrt {5} - 1} + 2 \, \sqrt {-x^{2} + 1} - 2}{x^{2}}\right ) - \frac {1}{4} \, \sqrt {2} \sqrt {\sqrt {5} - 1} \log \left (-\frac {2 \, x^{2} - {\left (\sqrt {2} \sqrt {-x^{2} + 1} x - \sqrt {2} x\right )} \sqrt {\sqrt {5} - 1} + 2 \, \sqrt {-x^{2} + 1} - 2}{x^{2}}\right ) - 2 \, x + 2 \, \arctan \left (\frac {\sqrt {-x^{2} + 1} - 1}{x}\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(log(x^2+(-x^2+1)^(1/2)),x, algorithm="fricas")

[Out]

-sqrt(2)*sqrt(sqrt(5) + 1)*arctan(1/8*sqrt(4*x^2 + 2*sqrt(5) + 2)*(sqrt(5)*sqrt(2) - sqrt(2))*sqrt(sqrt(5) + 1
) - 1/4*(sqrt(5)*sqrt(2)*x - sqrt(2)*x)*sqrt(sqrt(5) + 1)) - sqrt(2)*sqrt(sqrt(5) + 1)*arctan(1/8*(sqrt(2)*(sq
rt(-x^2 + 1)*(sqrt(5)*sqrt(2) - sqrt(2)) + sqrt(5)*sqrt(2) - sqrt(2))*sqrt(sqrt(5) + 1)*sqrt((x^4 - 4*x^2 - sq
rt(5)*(x^4 - 2*x^2) - 2*(sqrt(5)*x^2 - x^2 + 2)*sqrt(-x^2 + 1) + 4)/x^4) + 2*sqrt(-x^2 + 1)*(sqrt(5)*sqrt(2) -
 sqrt(2))*sqrt(sqrt(5) + 1))/x) + x*log(x^2 + sqrt(-x^2 + 1)) + 1/4*sqrt(2)*sqrt(sqrt(5) - 1)*log(2*x + sqrt(2
)*sqrt(sqrt(5) - 1)) - 1/4*sqrt(2)*sqrt(sqrt(5) - 1)*log(2*x - sqrt(2)*sqrt(sqrt(5) - 1)) + 1/4*sqrt(2)*sqrt(s
qrt(5) - 1)*log(-(2*x^2 + (sqrt(2)*sqrt(-x^2 + 1)*x - sqrt(2)*x)*sqrt(sqrt(5) - 1) + 2*sqrt(-x^2 + 1) - 2)/x^2
) - 1/4*sqrt(2)*sqrt(sqrt(5) - 1)*log(-(2*x^2 - (sqrt(2)*sqrt(-x^2 + 1)*x - sqrt(2)*x)*sqrt(sqrt(5) - 1) + 2*s
qrt(-x^2 + 1) - 2)/x^2) - 2*x + 2*arctan((sqrt(-x^2 + 1) - 1)/x)

________________________________________________________________________________________

Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \log {\left (x^{2} + \sqrt {1 - x^{2}} \right )}\, dx \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(ln(x**2+(-x**2+1)**(1/2)),x)

[Out]

Integral(log(x**2 + sqrt(1 - x**2)), x)

________________________________________________________________________________________

Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 301 vs. \(2 (138) = 276\).
time = 0.03, size = 404, normalized size = 2.18 \begin {gather*} -\frac {1}{4} \sqrt {2 \left (\sqrt {5}-1\right )} \ln \left |x-\sqrt {\frac {-1+\sqrt {5}}{2}}\right |+\frac {1}{4} \sqrt {2 \left (\sqrt {5}-1\right )} \ln \left |x+\sqrt {\frac {-1+\sqrt {5}}{2}}\right |+\frac {1}{2} \sqrt {2 \left (\sqrt {5}+1\right )} \arctan \left (\frac {x}{\sqrt {-\frac {-1-\sqrt {5}}{2}}}\right )-2 x-\frac {1}{2} \pi \mathrm {sign}\left (x\right )-\frac {1}{2} \sqrt {2 \left (\sqrt {5}+1\right )} \arctan \left (\frac {\frac {2 x}{-2 \sqrt {-x^{2}+1}+2}-\frac {-2 \sqrt {-x^{2}+1}+2}{2 x}}{\sqrt {2 \left (\sqrt {5}+1\right )}}\right )-\frac {1}{4} \sqrt {2 \left (\sqrt {5}-1\right )} \ln \left |\sqrt {-2 \left (-\sqrt {5}+1\right )}+\frac {2 x}{-2 \sqrt {-x^{2}+1}+2}-\frac {-2 \sqrt {-x^{2}+1}+2}{2 x}\right |+\frac {1}{4} \sqrt {2 \left (\sqrt {5}-1\right )} \ln \left |-\sqrt {-2 \left (-\sqrt {5}+1\right )}+\frac {2 x}{-2 \sqrt {-x^{2}+1}+2}-\frac {-2 \sqrt {-x^{2}+1}+2}{2 x}\right |-\arctan \left (\frac {x \left (\left (-\frac {-2 \sqrt {-x^{2}+1}+2}{2 x}\right )^{2}-1\right )}{-2 \sqrt {-x^{2}+1}+2}\right )+x \ln \left (x^{2}+\sqrt {-x^{2}+1}\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(log(x^2+(-x^2+1)^(1/2)),x)

[Out]

x*log(x^2 + sqrt(-x^2 + 1)) - 1/2*pi*sgn(x) + 1/2*sqrt(2*sqrt(5) + 2)*arctan(x/sqrt(1/2*sqrt(5) + 1/2)) - 1/2*
sqrt(2*sqrt(5) + 2)*arctan(-(x/(sqrt(-x^2 + 1) - 1) - (sqrt(-x^2 + 1) - 1)/x)/sqrt(2*sqrt(5) + 2)) + 1/4*sqrt(
2*sqrt(5) - 2)*log(abs(x + sqrt(1/2*sqrt(5) - 1/2))) - 1/4*sqrt(2*sqrt(5) - 2)*log(abs(x - sqrt(1/2*sqrt(5) -
1/2))) - 1/4*sqrt(2*sqrt(5) - 2)*log(abs(sqrt(2*sqrt(5) - 2) - x/(sqrt(-x^2 + 1) - 1) + (sqrt(-x^2 + 1) - 1)/x
)) + 1/4*sqrt(2*sqrt(5) - 2)*log(abs(-sqrt(2*sqrt(5) - 2) - x/(sqrt(-x^2 + 1) - 1) + (sqrt(-x^2 + 1) - 1)/x))
- 2*x - arctan(-1/2*x*((sqrt(-x^2 + 1) - 1)^2/x^2 - 1)/(sqrt(-x^2 + 1) - 1))

________________________________________________________________________________________

Mupad [B]
time = 2.18, size = 608, normalized size = 3.29 \begin {gather*} x\,\ln \left (x^2+\sqrt {1-x^2}\right )-\mathrm {asin}\left (x\right )-2\,x+\frac {\ln \left (x-\frac {\sqrt {2}\,\sqrt {\sqrt {5}-1}}{2}\right )\,\left (\frac {\sqrt {5}}{2}-\frac {5}{2}\right )}{2\,\sqrt {\frac {\sqrt {5}}{2}-\frac {1}{2}}+4\,{\left (\frac {\sqrt {5}}{2}-\frac {1}{2}\right )}^{3/2}}-\frac {\ln \left (x+\frac {\sqrt {2}\,\sqrt {\sqrt {5}-1}}{2}\right )\,\left (\frac {\sqrt {5}}{2}-\frac {5}{2}\right )}{2\,\sqrt {\frac {\sqrt {5}}{2}-\frac {1}{2}}+4\,{\left (\frac {\sqrt {5}}{2}-\frac {1}{2}\right )}^{3/2}}-\frac {\ln \left (x-\frac {\sqrt {2}\,\sqrt {-\sqrt {5}-1}}{2}\right )\,\left (\frac {\sqrt {5}}{2}+\frac {5}{2}\right )}{2\,\sqrt {-\frac {\sqrt {5}}{2}-\frac {1}{2}}+4\,{\left (-\frac {\sqrt {5}}{2}-\frac {1}{2}\right )}^{3/2}}+\frac {\ln \left (x+\frac {\sqrt {2}\,\sqrt {-\sqrt {5}-1}}{2}\right )\,\left (\frac {\sqrt {5}}{2}+\frac {5}{2}\right )}{2\,\sqrt {-\frac {\sqrt {5}}{2}-\frac {1}{2}}+4\,{\left (-\frac {\sqrt {5}}{2}-\frac {1}{2}\right )}^{3/2}}+\frac {\ln \left (\frac {\frac {\left (x\,\sqrt {\frac {\sqrt {5}}{2}-\frac {1}{2}}+1\right )\,1{}\mathrm {i}}{\sqrt {\frac {3}{2}-\frac {\sqrt {5}}{2}}}+\sqrt {1-x^2}\,1{}\mathrm {i}}{x+\sqrt {\frac {\sqrt {5}}{2}-\frac {1}{2}}}\right )\,\left (\frac {3\,\sqrt {5}}{2}-\frac {5}{2}\right )}{\left (2\,\sqrt {\frac {\sqrt {5}}{2}-\frac {1}{2}}+4\,{\left (\frac {\sqrt {5}}{2}-\frac {1}{2}\right )}^{3/2}\right )\,\sqrt {\frac {3}{2}-\frac {\sqrt {5}}{2}}}-\frac {\ln \left (\frac {\frac {\left (x\,\sqrt {-\frac {\sqrt {5}}{2}-\frac {1}{2}}+1\right )\,1{}\mathrm {i}}{\sqrt {\frac {\sqrt {5}}{2}+\frac {3}{2}}}+\sqrt {1-x^2}\,1{}\mathrm {i}}{x+\sqrt {-\frac {\sqrt {5}}{2}-\frac {1}{2}}}\right )\,\left (\frac {3\,\sqrt {5}}{2}+\frac {5}{2}\right )}{\left (2\,\sqrt {-\frac {\sqrt {5}}{2}-\frac {1}{2}}+4\,{\left (-\frac {\sqrt {5}}{2}-\frac {1}{2}\right )}^{3/2}\right )\,\sqrt {\frac {\sqrt {5}}{2}+\frac {3}{2}}}-\frac {\ln \left (\frac {\frac {\left (x\,\sqrt {\frac {\sqrt {5}}{2}-\frac {1}{2}}-1\right )\,1{}\mathrm {i}}{\sqrt {\frac {3}{2}-\frac {\sqrt {5}}{2}}}-\sqrt {1-x^2}\,1{}\mathrm {i}}{x-\sqrt {\frac {\sqrt {5}}{2}-\frac {1}{2}}}\right )\,\left (\frac {3\,\sqrt {5}}{2}-\frac {5}{2}\right )}{\left (2\,\sqrt {\frac {\sqrt {5}}{2}-\frac {1}{2}}+4\,{\left (\frac {\sqrt {5}}{2}-\frac {1}{2}\right )}^{3/2}\right )\,\sqrt {\frac {3}{2}-\frac {\sqrt {5}}{2}}}+\frac {\ln \left (\frac {\frac {\left (x\,\sqrt {-\frac {\sqrt {5}}{2}-\frac {1}{2}}-1\right )\,1{}\mathrm {i}}{\sqrt {\frac {\sqrt {5}}{2}+\frac {3}{2}}}-\sqrt {1-x^2}\,1{}\mathrm {i}}{x-\sqrt {-\frac {\sqrt {5}}{2}-\frac {1}{2}}}\right )\,\left (\frac {3\,\sqrt {5}}{2}+\frac {5}{2}\right )}{\left (2\,\sqrt {-\frac {\sqrt {5}}{2}-\frac {1}{2}}+4\,{\left (-\frac {\sqrt {5}}{2}-\frac {1}{2}\right )}^{3/2}\right )\,\sqrt {\frac {\sqrt {5}}{2}+\frac {3}{2}}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(log(x^2 + (1 - x^2)^(1/2)),x)

[Out]

x*log(x^2 + (1 - x^2)^(1/2)) - asin(x) - 2*x + (log(x - (2^(1/2)*(5^(1/2) - 1)^(1/2))/2)*(5^(1/2)/2 - 5/2))/(2
*(5^(1/2)/2 - 1/2)^(1/2) + 4*(5^(1/2)/2 - 1/2)^(3/2)) - (log(x + (2^(1/2)*(5^(1/2) - 1)^(1/2))/2)*(5^(1/2)/2 -
 5/2))/(2*(5^(1/2)/2 - 1/2)^(1/2) + 4*(5^(1/2)/2 - 1/2)^(3/2)) - (log(x - (2^(1/2)*(- 5^(1/2) - 1)^(1/2))/2)*(
5^(1/2)/2 + 5/2))/(2*(- 5^(1/2)/2 - 1/2)^(1/2) + 4*(- 5^(1/2)/2 - 1/2)^(3/2)) + (log(x + (2^(1/2)*(- 5^(1/2) -
 1)^(1/2))/2)*(5^(1/2)/2 + 5/2))/(2*(- 5^(1/2)/2 - 1/2)^(1/2) + 4*(- 5^(1/2)/2 - 1/2)^(3/2)) + (log((((x*(5^(1
/2)/2 - 1/2)^(1/2) + 1)*1i)/(3/2 - 5^(1/2)/2)^(1/2) + (1 - x^2)^(1/2)*1i)/(x + (5^(1/2)/2 - 1/2)^(1/2)))*((3*5
^(1/2))/2 - 5/2))/((2*(5^(1/2)/2 - 1/2)^(1/2) + 4*(5^(1/2)/2 - 1/2)^(3/2))*(3/2 - 5^(1/2)/2)^(1/2)) - (log((((
x*(- 5^(1/2)/2 - 1/2)^(1/2) + 1)*1i)/(5^(1/2)/2 + 3/2)^(1/2) + (1 - x^2)^(1/2)*1i)/(x + (- 5^(1/2)/2 - 1/2)^(1
/2)))*((3*5^(1/2))/2 + 5/2))/((2*(- 5^(1/2)/2 - 1/2)^(1/2) + 4*(- 5^(1/2)/2 - 1/2)^(3/2))*(5^(1/2)/2 + 3/2)^(1
/2)) - (log((((x*(5^(1/2)/2 - 1/2)^(1/2) - 1)*1i)/(3/2 - 5^(1/2)/2)^(1/2) - (1 - x^2)^(1/2)*1i)/(x - (5^(1/2)/
2 - 1/2)^(1/2)))*((3*5^(1/2))/2 - 5/2))/((2*(5^(1/2)/2 - 1/2)^(1/2) + 4*(5^(1/2)/2 - 1/2)^(3/2))*(3/2 - 5^(1/2
)/2)^(1/2)) + (log((((x*(- 5^(1/2)/2 - 1/2)^(1/2) - 1)*1i)/(5^(1/2)/2 + 3/2)^(1/2) - (1 - x^2)^(1/2)*1i)/(x -
(- 5^(1/2)/2 - 1/2)^(1/2)))*((3*5^(1/2))/2 + 5/2))/((2*(- 5^(1/2)/2 - 1/2)^(1/2) + 4*(- 5^(1/2)/2 - 1/2)^(3/2)
)*(5^(1/2)/2 + 3/2)^(1/2))

________________________________________________________________________________________