I want to draw this nonlinear differantial equation' graphic with other solving equation (in same graphic).
ϵ y''[x] + y'[x] + y[x]^2 == 0, y[0] == 0, y[1] == 1/2
y^c = 1/(x +
1) - (1 + 2 x) E^(-(
x/ϵ)) + ϵ {2/(x + 1)^2 Log[2/(
x + 1)] + (1/2 - 2 Log[2]) E^(-(x/ϵ)) -
1/2 E^(-((2 x)/ϵ))}
I got nonlinear differantial equation' numerical solution with this form.
ϵ = 0.1;
functions = NDSolveValue[{ϵ y''[x] + y'[x] + y[x]^2 == 0, y[0] == 0,
y[1] == 1/2}, {y, x}, {x, 0, 1}];
Plot[Evaluate@Through@functions@x, {x, 0, 1}]
Show
andPlot
for details. $\endgroup$