Differential Equation Calculator
Solve common differential equations, estimate custom first-order ODEs with RK4, and compare formulas, initial values, and numerical steps.
Exact and numerical differential equation results
Choose the model: Use exact formulas for linear, exponential, logistic, and second-order constant-coefficient equations.
What it does: Use a differential equation calculator to solve equations that include a function and its derivatives. Enter the differential equation, define the variables, choose the order, and solve for the unknown function.
Common outputs: General solutions, particular solutions, step-by-step work, and graphs are common in full symbolic tools; this page focuses on exact values for common forms and RK4 numerical estimates.
Use RK4 for custom equations: Enter a first-order equation in the form y' = f(x,y), such as x + y or sin(x) - y.
Initial values matter: A differential equation describes a family of curves until an initial condition chooses one specific solution.
Important: This calculator is built for standard educational models and numerical estimates, not a full computer algebra system.
Solution value
At --, using --.
Derivative at target
--
--
Interval
--
--
Steps or roots
--
--
Model note
--
--
Solution expression or method
--
RK4 step table
Showing the first steps and the final target value.
| Step | x | y | h |
|---|
Note: Numerical ODE solutions are approximations. Smaller step sizes usually improve the RK4 estimate, but exact symbolic solutions require the equation to match a solvable form.
How to use the differential equation calculator
- Select the equation type: Choose a standard exact model or the custom RK4 numerical solver.
- Enter initial conditions: Add x0, y(x0), and y'(x0) when a second-order equation needs it.
- Set the target value: Enter the x value where you want the solution estimate.
- Use RK4 for custom equations: Type f(x,y), choose a step size, and review the numerical table.
- Check the method note: Exact formulas, roots, step count, and warnings help explain the result.
Differential equation formulas used
A differential equation connects an unknown function with one or more derivatives. This calculator focuses on common classroom and modeling cases where an exact formula or a reliable numerical method is useful.
First-order linear: y' = a*y + b
Exponential: y = y0 * exp(k * (x - x0))
Logistic: y = K / (1 + ((K - y0) / y0) * exp(-r * (x - x0)))
For a custom first-order equation, the calculator applies the fourth-order Runge-Kutta method. RK4 estimates the next value by combining four slope samples across each step.
Further reading: OpenStax - Basics of Differential Equations and MIT OpenCourseWare - Differential Equations.
Equation type guide
| Equation type | Inputs | Best for | Result type |
|---|---|---|---|
| Custom RK4 | f(x,y), x0, y0, target x, step size | First-order equations without a quick formula | Numerical approximation |
| Linear y' = a*y + b | a, b, x0, y0, target x | Growth with a constant forcing term | Exact value |
| Exponential | k, x0, y0, target x | Continuous growth, decay, interest, cooling models | Exact value |
| Logistic | r, K, x0, y0, target x | Growth with a limiting capacity | Exact value |
| Second-order homogeneous | a, b, x0, y0, y'(x0), target x | Damped motion and oscillation models | Exact value from characteristic roots |
Numerical solver notes
The RK4 method is often a strong practical choice because it samples several slopes per step instead of using only the slope at the start. It is still an approximation, so step size and equation behavior matter.
Smaller h
Usually improves accuracy, but increases the number of steps and calculations.
Stiff equations
Some equations change too quickly for a simple step choice and may need specialized numerical methods.
Direction
The calculator can step forward or backward from x0 depending on the target x value.
Numerical method references: LibreTexts - Runge-Kutta Methods and Wolfram MathWorld - Runge-Kutta Method.
Which differential equation method should you choose?
Most searchers know the equation they have, but not the method name. This lookup table connects common equation patterns with the solving approach to try first.
| If the equation looks like | Try this method | What to identify | Calculator fit |
|---|---|---|---|
| y' = g(x)h(y) | Separation of variables | Move y terms and x terms to opposite sides. | Use RK4 for a numerical value if no closed form is needed. |
| y' + p(x)y = q(x) | Integrating factor | Find p(x), q(x), and the initial condition. | Use the linear mode when p and q are constants. |
| y' = k*y | Exponential growth or decay | Rate k and starting value y0. | Use exponential mode for an exact value. |
| y' = r*y*(1-y/K) | Logistic model | Growth rate r, carrying capacity K, and y0. | Use logistic mode for an exact value. |
| y'' + a*y' + b*y = 0 | Characteristic equation | Coefficients a and b, plus y0 and y'(x0). | Use second-order mode. |
| Boundary values at two points | Boundary value method | Left and right boundary conditions. | Not directly solved here; use this page for IVP-style estimates. |
Input notation guide for custom RK4 equations
Small notation differences can change the result or cause an input error. Use this guide when translating a textbook equation into the custom f(x,y) field.
Use x and y as variables
Write x + y, x*y, or sin(x) - y. The custom solver expects the derivative expression for y' in terms of x and y.
Use explicit multiplication
Write 2*y, not 2y. Write x*(1-y), not x(1-y).
Use supported functions
The input accepts common functions such as sin, cos, sqrt, log, exp, abs, and pow.
Check domain restrictions
Expressions like sqrt(y) and log(y) need valid y values during every step, not only at the initial condition.
Real-world differential equation model finder
Differential equations appear in many subjects under different names. This section helps connect a word problem to the equation family you are likely looking for.
| Model or topic | Typical equation | What the variables mean | Useful result |
|---|---|---|---|
| Population growth | y' = k*y or y' = r*y*(1-y/K) | y is population, x is time, K is carrying capacity. | Future population or time to approach a limit. |
| Newton cooling | T' = -k*(T - A) | T is object temperature and A is ambient temperature. | Temperature after a chosen time. |
| Mixing tank | y' = input rate - output rate | y is amount of substance in the tank. | Concentration over time. |
| Spring and damping | y'' + a*y' + b*y = 0 | y is displacement and y' is velocity. | Oscillation, decay, or damping behavior. |
| Electrical RC circuit | V' = -(1/RC)*V | V is voltage, R is resistance, C is capacitance. | Voltage decay over time. |
Interesting Fact
Differential equations are one of the main languages of mathematical modeling because they describe change directly. The same basic idea can model population growth, heat transfer, chemical reactions, electrical circuits, and motion. A small change in an initial condition can sometimes produce a visibly different solution curve, which is why initial value problems are so important.
Frequently asked questions
What is a differential equation calculator used for?
A differential equation calculator estimates or solves an equation that contains an unknown function, one or more variables, and a derivative. This page handles several common exact forms and also includes a numerical RK4 method for custom first-order equations written in notation such as y' = f(x,y). The result can be a solution value, an expression, or an approximation that helps you understand the model.
What is the difference between an initial condition and a boundary condition?
An initial condition gives the value of the unknown function at a starting point, such as y(0) = 1, so the problem is often called an IVP. A boundary condition gives information at two or more points, which creates a BVP and may need a different solving method. For a second-order differential equation, the order usually requires two pieces of information, such as y(0) and an initial slope y'(0).
When should I use the RK4 method instead of an exact formula?
Use RK4 when you have a first-order equation in the form y' = f(x,y) and you need a numerical estimate at a target x value. It is useful for calculus homework checks, slope field exploration, and models where an integrating factor, separation, or another exact technique is not convenient. The approximation depends on step size, so compare a smaller h when accuracy matters.
Can this calculator solve every differential equation or system?
No. Differential equations can be nonlinear, stiff, partial, coupled into a system, or impossible to express with elementary functions. Some problems require a Laplace transform, matrix method, boundary value solver, or graph-based numerical software. This calculator is designed for common ordinary differential equation examples and numerical exploration, not every symbolic problem in advanced mathematics.
What does y'' + a*y' + b*y = 0 mean?
This is a second-order homogeneous linear differential equation with constant coefficients. It often appears in vibration, spring, damping, and circuit models where the derivative terms describe velocity, acceleration, or change. The calculator solves the expression by finding characteristic roots, then uses y(x0) and y'(x0) to determine the constants and produce the particular solution.
Other useful calculators
Estimated Reading Time Calculator
Estimate reading time from text, word count and reading speed.
Golf Grip Size Calculator
Find the right golf grip size from hand measurements.
Kinetic Energy Calculator
Calculate kinetic energy from mass and velocity.
Full-Time Equivalent Calculator
Calculate FTE from employee hours and full-time schedules.
Concrete Curing Time Calculator
Estimate curing time for concrete projects and conditions.
Pool Pump Run Time Calculator
Estimate daily pool pump runtime from pool and flow data.
Disclaimer: This differential equation calculator is for educational estimation and common ODE forms. Verify important work with your course method, numerical tolerance, symbolic software, or instructor guidance.
Last updated: May 13, 2026