The question requires checking of numerical solutions to a differential equation by substituting in those solutions.
The original equation is as follows;
equ = y'[t] - (t^2 y[t]^2)/(1 + 8 t^4)
And the numerical solution for y[t] is calculated as;
sol = NDSolve[{y'[t] == (t^2 y[t]^2)/(1 + 8 t^4), y[0] == 1/2}, y[t], {t, 0, 1.5}]
sol = {{y[t] -> InterpolatingFunction[{{0., 1.5}}, <>][t]}}
I have produced the following pice of code;
Plot[Evaluate[equ /. {y[t] -> sol, y'[t] -> D[sol, t]}], {t, 0., 1.5}]
But it does not produce a graph (it does output the axes) and there is no error message.
If anyone can fix my code, or suggest a better method of substituting in the values for the numerical solution of the equation, I would be very grateful.



sol? – Yves Klett Feb 24 '16 at 17:04sol = NDSolve[{y'[t] == (t^2 y[t]^2)/(1 + 8 t^4), y[0] == 1/2}, y, {t, 0, 1.5}](yinstead ofy[t].) Then,Plot[Evaluate[equ /. sol], {t, 0., 1.5}]. – march Feb 24 '16 at 17:11