A coding agent calls solve_ivp in seconds, but whether the result is right depends on decisions that barely show in the code: the solver chosen, the tolerances, the treatment of stiff components or a time step that breaks a stability limit. In this training you solve differential equations with coding agents on examples such as the pendulum, a predator–prey model, reaction kinetics and heat conduction. You learn to give the agent criteria, check results through conserved quantities and reference solutions, and reliably recognise the symptoms of unstable methods.
Who the differential equations training is for
Engineers, researchers, lecturers and advanced students who solve ordinary or simple partial differential equations numerically and want to use coding agents for the job.
What you'll walk away with
- Describe initial value problems so that the agent implements model, parameters and initial conditions traceably
- Choose between explicit and implicit solvers for good reasons and recognise stiffness
- Set relative and absolute tolerances and check their influence with convergence tests
- Build events, conserved quantities and reference solutions into automated checks
- Solve a simple partial differential equation with the method of lines while respecting the stability condition
Typical scenarios
- A biology group simulates a predator–prey model and notices from a drifting conserved quantity that the default tolerances are too coarse for long time spans.
- A process engineering team solves a stiff reaction system on which an explicit solver takes tiny steps, and switches to an implicit method after a comparison.
- A lecturer prepares an exercise on heat conduction in which students see in agent-generated code how too large a time step makes the solution oscillate.
Does this fit your team?
Pick a few dates that suit you. The request is non-binding, and the agenda is tailored in a short call beforehand.
What the differential equations training covers
- Describing model and task preciselyEquations, parameters, units and initial conditions as a brief for the agent, with questions about assumptions.
- Solvers and tolerancesRunge–Kutta methods, BDF and Radau in solve_ivp, step-size control and choosing tolerances.
- Recognising stiffnessHow to recognise stiff problems, and how the run time and step counts of different methods give them away.
- Checking with physics and mathsEnergy, mass conservation, events, reference solutions and convergence tests as guard rails.
- A look at partial differential equationsThe method of lines for the heat equation, the CFL condition and typical instabilities.
Before the differential equations training: prerequisites
- Basics of ordinary differential equations
- Basic Python and an environment with SciPy and a coding agent
- Optionally, a model of your own that you want to solve or check
Materials you keep
- A decision guide for choosing solvers and tolerances
- Notebooks for the example models with built-in checks
- An instruction template for coding agents on simulation tasks