Why This Calculator Matters
A first order differential equation connects a changing value with its rate of change. It appears in motion, cooling, growth, decay, circuits, mixing, and finance models. A calculator helps because hand steps can become repetitive. It also reduces small arithmetic errors.
Numerical Insight
This tool focuses on initial value problems. You enter x0, y0, a target x value, and a step size. The model may be written directly as dy/dx = f(x,y). You may also use the linear form y' + P(x)y = Q(x). The page converts that form into a derivative rule.
Method Comparison
Euler is simple and fast. It uses the current slope only. The midpoint method checks the slope halfway through the step. Heun uses an average of the starting and predicted slopes. RK4 blends four slopes. It usually gives stronger accuracy for smooth equations.
Advanced Options
You can choose one method or compare all methods. You can move forward or backward along the x axis. The final step is adjusted so the table ends exactly at the target. An optional exact expression can estimate error at every step. This is useful in lessons and verification.
Practical Use
Start with a small step size when accuracy matters. Then run the same problem with a smaller step. If the answer changes very little, the result is more dependable. If the answer changes a lot, the equation may need smaller steps, a shorter interval, or expert review.
Readable Output
The result table shows each step, x value, y value, slope data, exact value, and absolute error when available. CSV export supports spreadsheets. PDF export creates a compact report for records. The example table gives quick test cases before entering custom equations.
Common Modeling Checks
Before trusting any output, confirm the equation matches the real situation. Check signs, units, and starting conditions. A negative sign can reverse growth into decay. A large step can hide rapid changes. Discontinuous formulas may fail near jumps or undefined points. Compare methods when possible. Close agreement is a helpful signal, not a proof. For formal work, combine the table with theory, graphs, and boundary knowledge. This calculator supports exploration, homework checks, and planning notes. Always record assumptions beside exported results for later review.