Solve Differential Equations Online – ODE & PDE Calculator with Steps

Solve ordinary and partial differential equations with various methods including separation of variables, integrating factors, and numerical methods.

Enter Your Differential Equation

Select solution method and input your equation

First-Order ODE
Second-Order ODE
System of ODEs
dy/dx
y'
=
sin(
cos(
e^(
Clear
dy/dx = xy
y' = y + x
dy/dx = sin(x)
y' = e^x
dy/dx = (x+y)/(x-y)

Solution Results

PNG
SVG
-
Enter equation and solve

Recent Calculations

What are Differential Equations?

Differential equations are mathematical equations that relate some function with its derivatives. They describe how quantities change over time or space and are fundamental in modeling real-world phenomena.

Ordinary Differential Equations (ODEs) involve derivatives with respect to a single variable, while Partial Differential Equations (PDEs) involve partial derivatives with respect to multiple variables.

For example, the equation:

dy/dx = f(x, y)

Differential equations are widely used in:

  • Physics - Describing motion, heat flow, and electromagnetic fields
  • Engineering - Modeling control systems and structural dynamics
  • Biology - Population dynamics and biochemical reactions
  • Economics - Economic growth models and market dynamics

This professional differential equations calculator helps students, researchers, engineers, and anyone working with mathematical modeling and analysis.

Types of Ordinary Differential Equations

Differential equations are classified based on their order, linearity, and other properties:

First-Order ODEs

Involve only the first derivative of the unknown function

Examples:
dy/dx = x + y
y' = y²
dy/dx = sin(x)

Second-Order ODEs

Involve the second derivative of the unknown function

Examples:
y'' + y = 0
y'' + 2y' + y = 0
y'' = -ω²y

Linear ODEs

The unknown function and its derivatives appear linearly

Examples:
y' + P(x)y = Q(x)
y'' + p(x)y' + q(x)y = r(x)
Linear systems

Nonlinear ODEs

The unknown function or derivatives appear nonlinearly

Examples:
y' = y²
y'' + sin(y) = 0
y' = √(x+y)

Separable ODEs

Can be separated into functions of x and y

Examples:
dy/dx = f(x)g(y)
y' = x/y
Separable equations

Exact ODEs

Can be written as exact differentials

Examples:
M(x,y)dx + N(x,y)dy = 0
where ∂M/∂y = ∂N/∂x
Exact equations

Differential Equations Solution Methods

Our calculator uses various analytical and numerical methods to solve differential equations:

1

Separation of Variables

For equations of the form dy/dx = f(x)g(y). Separate variables and integrate both sides.

2

Integrating Factor

For linear first-order equations. Multiply by an integrating factor to make the equation exact.

3

Exact Equations

For equations that can be written as exact differentials. Find a potential function.

4

Homogeneous Equations

For equations where f(tx,ty) = tⁿf(x,y). Use substitution v = y/x.

5

Numerical Methods

Euler's method, Runge-Kutta methods for equations without analytical solutions.

6

Laplace Transforms

For linear differential equations with constant coefficients. Transform to algebraic equations.

These methods ensure mathematical accuracy while providing educational value through transparent step-by-step solutions.

When to Use a Differential Equations Calculator

Our differential equations calculator is designed for various applications across mathematics, engineering, and science.

Education & Homework

Use when solving differential equations homework problems:

  • First and second order ODEs
  • Systems of differential equations
  • Initial value problems
  • Verification of manual solutions

Engineering Applications

Essential for engineering calculations including:

  • Control system analysis
  • Circuit analysis with capacitors/inductors
  • Mechanical vibration analysis
  • Heat transfer and fluid dynamics

Physics & Research

Critical for scientific applications such as:

  • Classical mechanics: motion equations
  • Quantum mechanics: Schrödinger equation
  • Electromagnetism: Maxwell's equations
  • Thermodynamics: heat equations

Biology & Medicine

Useful for biological and medical modeling:

  • Population dynamics models
  • Pharmacokinetics: drug concentration
  • Epidemiology: disease spread models
  • Biochemical reaction kinetics

Differential Equations Practice Problems

Practice solving differential equations with these common problems students search for:

Problem 1: Solve the separable equation dy/dx = x/y with y(0) = 1.

Solution:

Separate variables: y dy = x dx
Integrate: ∫ y dy = ∫ x dx ⇒ ½y² = ½x² + C
Apply initial condition: ½(1)² = ½(0)² + C ⇒ C = ½
Solution: y² = x² + 1 ⇒ y = √(x² + 1)
Problem 2: Solve the linear equation y' + 2y = e^x with y(0) = 0.

Solution:

Integrating factor: μ(x) = e^(∫2dx) = e^(2x)
Multiply: e^(2x)y' + 2e^(2x)y = e^(3x)
Left side is derivative of (e^(2x)y): d/dx[e^(2x)y] = e^(3x)
Integrate: e^(2x)y = ⅓e^(3x) + C ⇒ y = ⅓e^x + Ce^(-2x)
Apply initial condition: 0 = ⅓ + C ⇒ C = -⅓
Solution: y = ⅓(e^x - e^(-2x))
Problem 3: Solve y'' + 4y = 0 with y(0) = 1, y'(0) = 0.

Solution:

Characteristic equation: r² + 4 = 0 ⇒ r = ±2i
General solution: y = C₁ cos(2x) + C₂ sin(2x)
Apply y(0) = 1: C₁ = 1
y' = -2 sin(2x) + 2C₂ cos(2x)
Apply y'(0) = 0: 2C₂ = 0 ⇒ C₂ = 0
Solution: y = cos(2x)
Problem 4: Solve the system dx/dt = y, dy/dt = -x with x(0)=1, y(0)=0.

Solution:

Differentiate first equation: d²x/dt² = dy/dt = -x
So x'' + x = 0 ⇒ x = cos(t)
Then y = dx/dt = -sin(t)
Solution: (x,y) = (cos(t), -sin(t))

Common Mistakes When Solving Differential Equations

Students frequently make these mistakes when working with differential equations:

Mistake 1: Incorrect separation of variables

Make sure to properly separate all x terms from y terms before integrating.

Mistake 2: Forgetting the constant of integration

Always include the constant C when integrating, and determine its value using initial conditions.

Mistake 3: Incorrect application of initial conditions

Apply initial conditions to the general solution, not during intermediate steps.

Mistake 4: Misidentifying equation type

Correctly identify whether an equation is separable, linear, exact, etc., before choosing a solution method.

Linear vs Nonlinear Differential Equations

Linear Differential Equations: The unknown function and its derivatives appear linearly (to the first power).

Nonlinear Differential Equations: The unknown function or its derivatives appear nonlinearly (powers, products, transcendental functions).

Linear: y'' + p(x)y' + q(x)y = r(x)
Nonlinear: y'' + sin(y) = 0 or y' = y²

Linear equations are generally easier to solve and have superposition properties. Nonlinear equations often require specialized techniques or numerical methods.

Differential Equations Formula Sheet

Important formulas and methods for solving differential equations:

Separation of Variables:
dy/dx = f(x)g(y) ⇒ ∫ dy/g(y) = ∫ f(x) dx
Integrating Factor (Linear 1st order):
y' + P(x)y = Q(x)
μ(x) = e^(∫P(x)dx)
Solution: y = (∫μQdx + C)/μ
Characteristic Equation (Linear 2nd order):
ay'' + by' + cy = 0
ar² + br + c = 0
Euler's Method (Numerical):
y_{n+1} = y_n + h*f(x_n, y_n)
where h is step size

These formulas form the foundation of differential equation solutions in calculus.

Common Differential Equations and Their Solutions

Explore solutions to frequently encountered differential equations:

Exponential Growth/Decay

dy/dt = ky
Solution: y = y₀e^(kt)
Applications: Population growth, radioactive decay

Simple Harmonic Motion

y'' + ω²y = 0
Solution: y = A cos(ωt) + B sin(ωt)
Applications: Springs, pendulums, circuits

Logistic Equation

dy/dt = ky(1 - y/M)
Solution: y = M/(1 + Ae^(-kt))
Applications: Population with carrying capacity

Bernoulli Equation

y' + P(x)y = Q(x)yⁿ
Use substitution v = y^(1-n)
Applications: Various nonlinear phenomena

RC Circuit

RC dV/dt + V = V₀
Solution: V = V₀(1 - e^(-t/RC))
Applications: Electronics, capacitor charging

Newton's Law of Cooling

dT/dt = -k(T - T_env)
Solution: T = T_env + (T₀ - T_env)e^(-kt)
Applications: Heat transfer, temperature change

Real-Life Applications of Differential Equations

Differential equations are fundamental mathematical tools used across science, engineering, and economics.

Physics

Physicists use differential equations for:

  • Newton's laws of motion (F = ma)
  • Maxwell's equations for electromagnetism
  • Schrödinger equation in quantum mechanics
  • Heat equation and wave equation

Engineering

Engineers rely on differential equations for:

  • Control system design and analysis
  • Circuit analysis with RLC components
  • Structural dynamics and vibrations
  • Fluid dynamics and heat transfer

Biology & Medicine

Biologists and medical researchers use differential equations to:

  • Model population dynamics
  • Study disease spread (epidemiology)
  • Analyze pharmacokinetics (drug concentration)
  • Model biochemical reactions

Economics & Finance

Economists apply differential equations to:

  • Model economic growth
  • Analyze market dynamics
  • Study interest rate models
  • Optimize investment strategies

How to Solve Differential Equations Step-by-Step

Understanding the mathematical process behind differential equation solutions helps you interpret results more effectively.

1

Identify Equation Type

Determine if the equation is separable, linear, exact, homogeneous, or requires another method.

Example: dy/dx = x/y
This is separable: y dy = x dx
2

Apply Appropriate Method

Use the correct solution technique based on the equation type.

For linear equations:
Find integrating factor μ(x)
Multiply both sides
Integrate both sides
3

Solve and Simplify

Obtain the general solution and simplify if possible.

General solution contains
arbitrary constants
Simplify using algebra
4

Apply Initial Conditions

Use given initial values to determine specific constants.

Substitute x and y values
Solve for constants
Obtain particular solution
5

Verify Solution

Check that the solution satisfies the original equation.

Differentiate solution
Substitute into original DE
Verify equality holds
6

Interpret Results

Understand the physical or mathematical meaning of the solution.

Analyze behavior
Graph solution
Interpret in context

Our Differential Equations Calculator automates these steps instantly, handling various equation types with precision. Save time while ensuring mathematical accuracy for all your calculus needs.

Frequently Asked Questions

Common questions about differential equations, ODE & PDE solving, and our step-by-step calculator.

How do I solve a differential equation?
Differential equations are solved using methods based on their type. Common techniques include separation of variables for separable equations, integrating factors for linear equations, and substitution methods for nonlinear equations. Our calculator automatically detects the equation type and applies the correct method while showing step-by-step solutions.
What is a differential equation in simple terms?
A differential equation is a mathematical equation that relates a function to its derivatives. It describes how a quantity changes over time or space and is widely used in physics, engineering, biology, and economics.
What's the difference between ODEs and PDEs?
Ordinary Differential Equations (ODEs) involve derivatives with respect to a single variable, while Partial Differential Equations (PDEs) involve derivatives with respect to multiple variables. ODEs are commonly used for time-based problems, while PDEs model multi-dimensional systems like heat flow and wave motion.
Can this calculator handle systems of differential equations?
Yes, the calculator supports systems of first-order differential equations. These systems can be solved using numerical methods such as Euler’s method and Runge-Kutta methods, which provide accurate approximations for complex systems.
Does the calculator show step-by-step solutions?
Yes, the calculator provides detailed step-by-step solutions. It explains each transformation, substitution, and applied rule, helping you understand the solving process instead of just giving the final answer.
What types of differential equations can the calculator solve?
The calculator can solve first-order and second-order ODEs, including separable equations, linear equations, exact equations, homogeneous equations, and systems of equations. It also supports numerical solutions for complex problems.
What is the order of a differential equation?
The order of a differential equation is determined by the highest derivative present in the equation. For example, if the highest derivative is second-order, then the equation is called a second-order differential equation.
What is the degree of a differential equation?
The degree of a differential equation is the power of the highest-order derivative after removing radicals and fractions. It helps classify the equation and determine suitable solution methods.
How accurate are the numerical solutions?
The calculator uses advanced numerical methods like Runge-Kutta with adaptive step sizes to ensure high accuracy. These methods significantly reduce approximation errors and are widely used in scientific computing.
What is Euler’s method?
Euler’s method is a numerical technique used to approximate solutions of differential equations. It works by taking small steps along the curve using the slope (derivative) to estimate the next value.
What is the Runge-Kutta method?
The Runge-Kutta method is a more advanced numerical method that improves accuracy by considering multiple slopes within each step. It is commonly used for solving differential equations when exact solutions are difficult or impossible to find.
Do I need calculus knowledge to use this calculator?
No, you don’t need advanced calculus knowledge. The calculator is designed to handle all computations automatically while providing step-by-step explanations for learning purposes.
Is this differential equations calculator free to use?
Yes, this calculator is completely free to use online. You can solve unlimited differential equations instantly without registration or subscription.