Concept Flow - Solving ODEs (solve_ivp)
Define ODE function f(t, y)
Set initial conditions y0 and time span
Call solve_ivp with f, time span, y0
solve_ivp integrates step-by-step
Collect solution times and values
Use or plot solution results
We define the ODE, set initial values and time range, then call solve_ivp which calculates the solution step-by-step and returns the results.