I'd like to plot the solution to the differential equation
$$\frac{d}{dx}y(x)=\frac{(y-1)^2}{(x+1)^2}$$
with initial value condition $y(0)=0$.
The solution is $$y(x)=\frac{x}{2x+1}$$
Clearly, this function is not defined for $x=-\frac{1}{2}$, a vertical asymptote in the graph of this function.
In Maple, I define the differential equation and plot the solution for the initial condition with commands:
ode := diff(y(x), x) = (y(x) - 1)^2/(x + 1)^2
with(DETools);
DEplot(ode2, y(x), x = -5 .. 5, [[y(0) = 0]]);
And the result is a plot with a warning. The warning is:
Warning, plot may be incomplete, the following errors(s) were issued:cannot evaluate the solution further left of -.49999997, probably a singularity
If I try to plot avoiding the vertical asymptote (singularity) in the graph, Maple doesn't plot anything at all, but does give the same warning as before:
DEplot(ode2, y(x), x = -5 .. -1, [[y(0) = 0]]);
How come Maple can't even plot when I avoid the singularity altogether? Also, how come it just can't plot the part of the function to the left of the singularity?
