0
$\begingroup$

I have tried:

DSolve[{y'[x] == x^2 + y^3, y[1] == 1}, y[x], x] 

and did not work, and I have not figured out how to use RK4 order method to find y(2.2), using h = 0.1

$\endgroup$
2
  • $\begingroup$ It seems that there are singular point before 2.2 . sol = NDSolve[{y'[x] == x^2 + y[x]^3, y[1] == 1}, y[x], {x, 1, 3}, Method -> {"ExplicitRungeKutta", "DifferenceOrder" -> 4}] $\endgroup$ – cvgmt Dec 18 '20 at 0:55
  • $\begingroup$ It is done for you in the docs, here. @cvgmt That order-4 RK is different than the one most people mean by RK4. $\endgroup$ – Michael E2 Dec 18 '20 at 0:56