What is a differential equation?
A differential equation relates a function to its own rates of change (its derivatives). Instead of giving y directly, it gives a rule like "y grows at a rate proportional to itself". Solving it means finding every function that obeys the rule; a starting value then picks out one.
Ordinary differential equations (ODEs) involve one variable, usually time. Partial differential equations (PDEs), like the heat and wave equations, involve several. Most real ones can't be solved exactly, so computers approximate them step by step.
Follow the arrows, one step at a time
Each little dash shows the slope the equation demands at that point. Euler's method starts at y₀, walks a short way in that direction, re-reads the slope, and repeats. Smaller steps track the true solution (dashed) more closely.
Three coupled equations predict an outbreak
Split a population into Susceptible, Infected and Recovered. Infections happen when S meets I, at rate β; people recover at rate γ. The ratio R₀ = β/γ, the number each case infects in a fully susceptible population, decides everything.
dI/dt = β·S·I − γ·I
dR/dt = γ·I