First-Order Differential Equation Calculator

Solve simple first-order differential equation models such as dy/dx = ky and dy/dx + py = q with an initial condition.

Differential EquationsCollege MathEngineering Math

Calculate

Model
Initial value y(0)
k or p
q for linear model
Evaluate at x
Please enter valid values.

What this calculator teaches

A first-order differential equation relates a function to its first derivative. It describes change over time or another independent variable.

This calculator covers two foundational models: proportional growth/decay and a constant-input linear equation.

Formula & Symbols

ConceptFormulaMeaning
Proportional modeldy/dx = ky → y = y₀e^{kx}Growth if k>0, decay if k<0.
Linear constant modeldy/dx + py = qSolution approaches q/p when p>0.
Initial conditiony(0)=y₀Selects one solution from the family.

Step-by-Step Examples

Example 1
Growth equation
  • dy/dx = 0.4y.
  • Initial value y(0)=5.
  • Solution is y = 5e^{0.4x}.
✓ At x=3, y≈16.60.
Example 2
Linear model
  • dy/dx + 2y = 10.
  • Equilibrium is q/p = 5.
  • Solution moves toward 5.
✓ y = 5 + (y₀ - 5)e^{-2x}.

Where students use this

🎓
High school and college
Use the tool to check homework and understand each step.
📊
Data and modeling
Connect formulas to tables, graphs, and real values.
🧪
Science and engineering
Use math results inside physics, chemistry, and engineering problems.
💻
Computer science
Apply the same logic to algorithms, systems, and numerical work.

Common Mistakes to Avoid

⚠️
Forgetting the initial condition

The differential equation gives a family of solutions until y(0) is used.

⚠️
Mixing k and p signs

dy/dx=ky uses e^{kx}; dy/dx + py = q uses e^{-px}.

⚠️
Assuming every ODE has this form

Many first-order equations require other methods or numerical solving.

Frequently Asked Questions

What is a first-order differential equation?
It includes the first derivative but no higher derivative.
What is an initial condition?
It is a known value like y(0)=5 that determines a specific solution.
Why does e appear?
The exponential function naturally appears when a quantity changes in proportion to itself.
What is equilibrium in dy/dx + py = q?
It is the value y = q/p where the derivative becomes zero.

Related Math Calculators

Formula Explorer connections

Interpretation: This formula describes an algebraic relationship among variables, functions, equations, roots or sequences. Assumption: Respect the expression’s domain and excluded values. Check roots in the original equation because transformations can introduce extraneous solutions.

Function Composition Calculator →Function Graphing Calculator →Function Transformation Calculator →Math Formula Explorer →