A differential equation is an equation that relates an unknown function to one or more of its derivatives. In plain language, it tells you how a quantity changes and asks you to recover the function itself.

That is why differential equations show up in motion, population growth, cooling, circuits, and many other models. If the key information is about a rate of change, a differential equation is often the natural way to write the problem.

What A Differential Equation Means

A simple example is

dydx=3y\frac{dy}{dx} = 3y

This says the rate of change of yy is always three times the current value of yy. If yy is positive, it grows. If yy is negative, it moves farther downward. If y=0y=0, the rate of change is also 00.

The unknown is not a single number. The unknown is the whole function y(x)y(x) that makes the rule true.

Main Types Of Differential Equations

Ordinary vs. Partial

An ordinary differential equation, or ODE, uses derivatives with respect to one variable. For example,

dydx=xy\frac{dy}{dx} = x - y

is an ODE because yy depends only on xx.

A partial differential equation, or PDE, uses partial derivatives because the unknown depends on more than one variable. The heat equation is a standard example:

ut=k2ux2\frac{\partial u}{\partial t} = k \frac{\partial^2 u}{\partial x^2}

If you are just getting started, ODEs are usually the right entry point.

Order

The order of a differential equation is the highest derivative that appears.

  • First-order: dydx+y=0\frac{dy}{dx} + y = 0
  • Second-order: d2ydx2+y=0\frac{d^2 y}{dx^2} + y = 0

The order matters because it usually tells you how many conditions you need to pin down one specific solution.

Linear vs. Nonlinear

An equation is linear if the unknown function and its derivatives appear only to the first power and are not multiplied together. For example,

y+2y=xy' + 2y = x

is linear, but

y=y2y' = y^2

is nonlinear.

This distinction matters because linear equations often have more standard solution methods.

Why Initial And Boundary Conditions Matter

A differential equation often has many solutions, not just one. Extra information tells you which one you want.

An initial condition gives the value of the function, or sometimes its derivatives, at one point. For example, y(0)=2y(0)=2 picks out one specific solution curve.

A boundary condition gives information at one or more endpoints, which is common in physics and engineering problems defined on an interval or region.

Worked Example: Solve dydx=3y\frac{dy}{dx} = 3y With y(0)=2y(0)=2

Solve

dydx=3y,y(0)=2\frac{dy}{dx} = 3y, \qquad y(0)=2

This is a first-order ODE, and it is separable because the yy terms and xx terms can be placed on different sides.

For solutions with y0y \ne 0, divide by yy:

1ydydx=3\frac{1}{y}\frac{dy}{dx} = 3

and write it as

1ydy=3dx\frac{1}{y}\,dy = 3\,dx

Now integrate both sides:

1ydy=3dx\int \frac{1}{y}\,dy = \int 3\,dx

so

lny=3x+C\ln|y| = 3x + C

Exponentiate both sides:

y=e{3x+C}=Ae{3x}|y| = e^\{3x+C\} = Ae^\{3x\}

Absorb the sign into the constant and rewrite:

y=Ce3xy = Ce^{3x}

Now use the initial condition:

2=y(0)=Ce0=C2 = y(0) = Ce^0 = C

So the solution that matches the condition is

y=2e3xy = 2e^{3x}

You can check it directly:

y=6e3x=3(2e3x)=3yy' = 6e^{3x} = 3(2e^{3x}) = 3y

so it satisfies the differential equation and the condition.

One condition matters here: dividing by yy assumes y0y \ne 0. The constant solution y=0y=0 also solves dydx=3y\frac{dy}{dx}=3y, but it does not satisfy y(0)=2y(0)=2, so it is not the solution to this initial-value problem.

Basic Methods And When They Apply

Different forms call for different methods. The method depends on the structure of the equation, not on preference.

  • Separation of variables works when you can rearrange the equation into a form like g(y)dy=f(x)dxg(y)\,dy = f(x)\,dx.
  • Integrating factors are used for first-order linear equations of the form y+p(x)y=q(x)y' + p(x)y = q(x).
  • Characteristic equations are a standard tool for some linear constant-coefficient equations such as y3y+2y=0y'' - 3y' + 2y = 0.
  • Numerical methods are used when an exact formula is hard or impossible to find.

The safe workflow is: classify first, then pick the method that fits.

Common Mistakes In Differential Equations

One common mistake is solving before classifying. If you do not notice whether an equation is separable, linear, or higher-order, it is easy to pick the wrong method.

Another mistake is dropping the condition. Solving the differential equation usually gives a family of functions, but the initial or boundary condition is what chooses the actual answer for the problem.

A third mistake is dividing by an expression without stating the condition. In the worked example, dividing by yy is valid only on intervals where y0y \ne 0, which is why the zero solution has to be considered separately.

Where Differential Equations Are Used

Differential equations are used whenever a model depends on change over time, space, or both.

  • In physics, they describe motion, oscillation, gravity, and heat flow.
  • In biology, they model population change, spread, and reaction rates.
  • In engineering, they appear in circuits, control systems, and signal behavior.
  • In economics, they can describe growth and adjustment over time.

You do not need to solve advanced equations by hand to benefit from the idea. Even basic classification helps you understand what kind of model you are looking at.

Try A Similar Problem

Try your own version with

dydx=2y,y(0)=5\frac{dy}{dx} = -2y, \qquad y(0)=5

Classify it first, solve it by separation, and then check the result by differentiating your answer. If you want to go one step further, compare it with y+2y=xy' + 2y = x and notice why the method changes.

Need help with a problem?

Upload your question and get a verified, step-by-step solution in seconds.

Open GPAI Solver →