I have a problem with plotting a piecewise defined function with "Show". My code is
f1[u_] := Piecewise[
{{2/Sqrt[1 + u], u < 2},
{1/(Sqrt[1 + u*((u + Sqrt[-4 + u^2])/2)^3]) +
1/(Sqrt[1 + u*((u - Sqrt[-4 + u^2])/2)^3]), u >= 2}}]
p := Plot[f1[u], {u, 0, 10}]
enter code here
Show[p, PlotRange -> {{0, 10}, {0.8, 2}}]
And the result is
btw. I use Show to plot this function with some Listplots, but the problem occurs also without the Listplots.
Interesting is also that when I define u from 0 to 5 in the definition of p, the resulting plot shows the entire function from 0 to 5 without problems ? I hope u can help me finding the error