A differential equation relates an unknown function to its derivatives, so before you solve one you have to classify it: the type, order, and linearity decide which method applies. Get the classification right and the rest follows; get it wrong and you will reach for a tool that does not fit.

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 negative it moves farther downward; if y=0y=0 the rate of change is also 00. The unknown is not a number but the whole function y(x)y(x) that makes the rule true.

The Classifications Side By Side

Axis Categories How to tell Example
Variables Ordinary (ODE) vs. partial (PDE) One independent variable vs. several dydx=xy\frac{dy}{dx} = x - y vs. ut=k2ux2\frac{\partial u}{\partial t} = k\frac{\partial^2 u}{\partial x^2}
Order First, second, ... Highest derivative present dydx+y=0\frac{dy}{dx}+y=0 (first) vs. d2ydx2+y=0\frac{d^2 y}{dx^2}+y=0 (second)
Linearity Linear vs. nonlinear Unknown and its derivatives only to first power, not multiplied y+2y=xy'+2y=x (linear) vs. y=y2y'=y^2 (nonlinear)

An ODE uses derivatives with respect to one variable; a PDE uses partial derivatives because the unknown depends on more than one. If you are getting started, ODEs are the right entry point. The order usually tells you how many conditions you need to pin down one solution. Linear equations often have more standard solution methods.

When To Use Which Method

The method depends on the structure, not on preference:

  • Separation of variables works when you can rearrange into g(y)dy=f(x)dxg(y)\,dy = f(x)\,dx.
  • Integrating factors handle first-order linear equations y+p(x)y=q(x)y' + p(x)y = q(x).
  • Characteristic equations are standard 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.

Initial and boundary conditions decide which solution you actually want. An initial condition gives the value at one point, such as y(0)=2y(0)=2, picking one solution curve; a boundary condition gives information at endpoints, common in problems defined on an interval or region.

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

Classify first: 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=31ydy=3dx\frac{1}{y}\frac{dy}{dx} = 3 \qquad\Longrightarrow\qquad \frac{1}{y}\,dy = 3\,dx

Integrate both sides:

1ydy=3dxlny=3x+C\int \frac{1}{y}\,dy = \int 3\,dx \qquad\Longrightarrow\qquad \ln|y| = 3x + C

Exponentiate:

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

Absorb the sign into the constant: y=Ce3xy = Ce^{3x}. Now apply the condition:

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

So the matching solution is y=2e3xy = 2e^{3x}. Check it: y=6e3x=3(2e3x)=3yy' = 6e^{3x} = 3(2e^{3x}) = 3y. 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.

Common Confusion Points

Solving before classifying. Miss whether an equation is separable, linear, or higher-order and it is easy to pick the wrong method.

Dropping the condition. Solving the equation usually gives a family of functions; the initial or boundary condition chooses the actual answer.

Dividing without stating a condition. Dividing by yy in the worked example is valid only where y0y \ne 0, which is why the zero solution has to be considered separately.

Where Differential Equations Are Used

They appear wherever a model depends on change over time, space, or both: motion, oscillation, gravity, and heat flow in physics; population change, spread, and reaction rates in biology; circuits, control systems, and signal behavior in engineering; growth and adjustment in economics. Even basic classification helps you read what kind of model you are looking at.

Classify, Then Solve

Take

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

Classify it first, solve by separation, and check by differentiating your answer. Then compare it with y+2y=xy' + 2y = x and notice why the method changes from separation to an integrating factor.

Frequently Asked Questions

What is the difference between an ordinary and a partial differential equation?
An ordinary differential equation involves derivatives with respect to one variable, while a partial differential equation involves partial derivatives with respect to two or more variables.
Do all differential equations have a neat formula as a solution?
No. Some have closed-form solutions, but many important differential equations are solved approximately with numerical methods.

Need help with a problem?

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

Open GPAI Solver →