differential equation calculator

Interactive Differential Equation Calculator

Choose an equation type, enter coefficients and initial conditions, then compute the exact value at your target point.

Current equation: y' + 2y = 4

What this differential equation calculator does

This calculator solves several common ordinary differential equations (ODEs) with initial conditions. It is designed for quick checks, homework support, and intuition building. Instead of only returning a number, it also reports the closed-form formula used for the solution.

  • First-order linear ODE: y' + a·y = b
  • Exponential growth/decay: y' = k·y
  • Second-order linear homogeneous ODE: y'' + a·y' + b·y = 0
Tip: If you want an exact symbolic manipulation engine for arbitrary equations, use a CAS. This page focuses on the most common coefficient-based models used in calculus, engineering, and physics courses.

How to use the calculator

1) Select your equation model

Choose the equation type from the dropdown menu. The input form automatically updates based on your selection.

2) Enter parameters and initial conditions

Provide coefficients (a, b, or k) and initial values such as y(x₀) (and y'(x₀) for second-order equations).

3) Enter target x and compute

Set the x-value where you want the solution evaluated, then click Calculate Solution. The result panel shows both the formula and the numerical value.

Mathematical reference

First-order linear: y' + a·y = b

If a ≠ 0, the exact solution with initial condition y(x₀) = y₀ is:

y(x) = b/a + (y₀ - b/a)e-a(x-x₀)

If a = 0, it reduces to y' = b, so:

y(x) = y₀ + b(x-x₀)

Exponential model: y' = k·y

This is the classic growth/decay equation. The solution is:

y(x) = y₀ek(x-x₀)

  • k > 0: exponential growth
  • k < 0: exponential decay
  • k = 0: constant solution

Second-order homogeneous: y'' + a·y' + b·y = 0

The characteristic equation is r² + a·r + b = 0. The discriminant is Δ = a² - 4b.

  • Δ > 0: two distinct real roots (overdamped form)
  • Δ = 0: repeated root (critical damping)
  • Δ < 0: complex roots (oscillatory response)

This calculator automatically uses the correct closed form and applies initial conditions y(x₀)=y₀ and y'(x₀)=v₀.

Why differential equations matter

Differential equations are the language of change. They show up in population dynamics, circuits, heat flow, control systems, biomechanics, and finance. Being able to model and solve an initial value problem quickly helps you focus on interpretation rather than algebra mistakes.

Common mistakes to avoid

  • Mixing up signs in the exponential term (especially for decay).
  • Forgetting to shift by (x - x₀) when applying initial conditions.
  • Using first-order formulas for second-order equations.
  • Ignoring units of parameters, especially in physical models.

FAQ

Does this solve nonlinear differential equations?

No. This page handles specific linear forms with constant coefficients.

Can I use this as a verification tool?

Yes. It is ideal for checking hand solutions to initial value problems.

Does it support partial differential equations?

No. This is an ordinary differential equation calculator only.

🔗 Related Calculators