solve a differential equation calculator

Differential Equation Solver

Solve common differential equations instantly. Choose a model, enter parameters, and get both the symbolic form and a numeric value at a chosen x.

Model: y' = k y

What this differential equation calculator does

This tool helps you solve a differential equation quickly for several high-value equation families used in physics, engineering, finance, biology, and data modeling. Instead of only returning a number, it also displays the general solution form and the particular solution that matches your initial conditions.

In plain terms: you choose an equation model, plug in coefficients and initial values, and the calculator gives you a function y(x), then evaluates it at any x you choose.

Supported equation types

1) Exponential growth/decay: y' = k y

This is one of the most common first-order differential equations. It appears in continuous compound growth, population dynamics, radioactive decay, and Newton's cooling in simplified form. With initial condition y(x₀) = y₀, the solution is:

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

2) First-order linear equation with constants: y' + P y = Q

This equation models many “driven + damping” systems. If P and Q are constants, the closed-form solution is straightforward:

  • If P ≠ 0: y(x) = Q/P + (y₀ - Q/P)e-P(x - x₀)
  • If P = 0: y(x) = y₀ + Q(x - x₀)

3) Second-order homogeneous equation: y'' + a y' + b y = 0

This is central to vibrations, circuits, and control systems. The behavior depends on the discriminant Δ = a² - 4b:

  • Δ > 0: two real roots → overdamped behavior
  • Δ = 0: repeated root → critically damped behavior
  • Δ < 0: complex roots → oscillatory behavior

The calculator automatically detects the case, solves for constants from y(0) and y'(0), and computes y(x).

How to use the calculator

  1. Select your equation type from the dropdown.
  2. Enter the coefficients and initial condition values.
  3. Set the x value where you want the function evaluated.
  4. Click Solve Equation to see the full result.

Why this is useful

Students often need to verify homework steps and check final numeric values. Engineers need quick parameter testing before deeper simulation. Analysts and researchers need fast intuition for how parameters change system response. This solver is built for that practical workflow.

Key notes and limitations

  • This page solves specific analytic forms, not all symbolic differential equations.
  • Input values should be real numbers.
  • For very large x or coefficients, exponentials can overflow due to floating-point limits.
  • If you need fully general symbolic solving (arbitrary nonlinear ODEs), use a full CAS like Mathematica, Maple, or SymPy.

Quick examples

Example A: Growth model

For y' = 0.35y with y(0)=2, at x=5: y(5)=2e1.75≈11.51. This appears instantly when you click solve with the default values.

Example B: First-order linear model

For y' + 1.2y = 6, y(0)=1: equilibrium is Q/P = 5. The solution approaches 5 as x grows.

Example C: Damped oscillator form

For y'' + 2y' + 2y = 0 with y(0)=1 and y'(0)=0, the roots are complex and the response is decaying oscillation. This is a classic underdamped system pattern.

Final thoughts

A good differential equation calculator should do more than print a number—it should reveal the structure of the solution. Use this page to build intuition, validate your derivations, and explore how equation coefficients influence system behavior.

🔗 Related Calculators

🔗 Related Calculators