Ordinary Differential Equations: Order, Degree & Solutions

#Calculus
TL;DR
Ordinary Differential Equations are equations that relate a function of a single variable to its derivatives, such as dydx=ky\frac{dy}{dx} = ky. The order is the highest derivative that appears, and the degree is the power of that highest derivative when the equation is polynomial in its derivatives. A general solution carries as many arbitrary constants as the order; a particular solution fixes those constants using initial or boundary conditions.
BT
Bhanzu TeamLast updated on September 30, 202611 min read

What Is An Ordinary Differential Equation?

An Ordinary Differential Equation, often shortened to ODE, is an equation that relates an unknown function of one independent variable to one or more of its derivatives. The word "ordinary" is the key: there is a single independent variable (usually xx or tt), so every derivative is an ordinary derivative like dydx\frac{dy}{dx}, never a partial derivative.

The simplest example states a rate directly:

dydx=ky\frac{dy}{dx} = ky

This reads "the rate of change of yy is proportional to yy itself." Solving it means finding every function y(x)y(x) that makes the equation true, not finding a single number. That is the whole difference between an algebraic equation, which you solve for a value, and a differential equation, which you solve for a function.

Geometrically, an ODE is a rule about slope. At every point (x,y)(x, y) in the plane it tells you the slope dydx\frac{dy}{dx} that a solution curve must have as it passes through. A solution is then a curve whose tangent matches that prescribed slope everywhere, which is exactly what a direction field draws. For the wider map of the subject, see the calculus overview.

What Is The Difference Between An ODE And A PDE?

The contrast that defines the word "ordinary" is the contrast with a partial differential equation.

  • Ordinary Differential Equations involve a function of one variable, so they use ordinary derivatives. Example: dydx=x2+y\frac{dy}{dx} = x^2 + y, where yy depends only on xx.

  • Partial differential equations (PDEs) involve a function of two or more variables, so they use partial derivatives. Example: ∂u∂x+∂u∂y=0\frac{\partial u}{\partial x} + \frac{\partial u}{\partial y} = 0, where uu depends on both xx and yy.

Everything in this article is an ODE: one independent variable, ordinary derivatives, solution curves in a single plane. PDEs are a separate subject built for surfaces, heat flow, and waves.

What Are The Order And Degree Of An Ordinary Differential Equation?

Two labels classify every ODE, and mixing them up is the most common error on the topic.

The order is the order of the highest derivative that appears. The degree is the power to which that highest-order derivative is raised, and it is defined only when the equation is polynomial in all of its derivatives (no derivative inside a root, a fraction, or a function like sin⁡\sin).

(d2ydx2)3+dydx+y=0\left(\frac{d^2y}{dx^2}\right)^3 + \frac{dy}{dx} + y = 0

Here the highest derivative is d2ydx2\frac{d^2y}{dx^2}, so the order is 22. That highest derivative is raised to the power 33, so the degree is 33. The first-order term dydx\frac{dy}{dx} does not change either label; only the highest derivative decides both.

When a derivative sits under a root, rationalise before reading the degree. Take

d2ydx2=1+(dydx)2.\frac{d^2y}{dx^2} = \sqrt{1 + \left(\frac{dy}{dx}\right)^2}.

Square both sides to clear the root: (d2ydx2)2=1+(dydx)2\left(\frac{d^2y}{dx^2}\right)^2 = 1 + \left(\frac{dy}{dx}\right)^2. The order is 22 and the degree is 22. If a derivative appears inside a non-polynomial function, such as d2ydx2+sin⁡(dydx)=0\frac{d^2y}{dx^2} + \sin\left(\frac{dy}{dx}\right) = 0, the degree is simply not defined. A dedicated treatment lives at order and degree of a differential equation.

Table: Reading the order and degree from four differential equations.

Differential equation

Order

Degree

dydx=ky\frac{dy}{dx} = ky

1

1

(d2ydx2)3+dydx+y=0\left(\frac{d^2y}{dx^2}\right)^3 + \frac{dy}{dx} + y = 0

2

3

(d2ydx2)2=1+(dydx)2\left(\frac{d^2y}{dx^2}\right)^2 = 1 + \left(\frac{dy}{dx}\right)^2

2

2

d2ydx2+sin⁡(dydx)=0\frac{d^2y}{dx^2} + \sin\left(\frac{dy}{dx}\right) = 0

2

not defined

What Is A General Solution Versus A Particular Solution?

Solving an ODE produces a family of functions, not one. A general solution contains as many arbitrary constants as the order of the equation. A particular solution pins those constants to specific numbers using extra information, called initial conditions or boundary conditions.

Take the first-order equation dydx=x\frac{dy}{dx} = x. Integrating once gives

y=x22+C,y = \frac{x^2}{2} + C,

with one arbitrary constant CC, matching the order 11. That single formula is a whole family of parabolas stacked vertically. Supply one condition, say y(0)=3y(0) = 3, and you select one member: 022+C=3\frac{0^2}{2} + C = 3, so C=3C = 3 and the particular solution is y=x22+3y = \frac{x^2}{2} + 3.

A second-order equation needs two conditions because its general solution carries two constants. The number of arbitrary constants is not decoration; it is the order of the equation counted a second way. An equation whose extra data is given at a single starting point defines an initial value problem.

How Do You Solve An Ordinary Differential Equation? Worked Examples

Each example is fully stepped, and every solution is checked by differentiating it and substituting back into the original equation.

Example 1: Exponential growth and decay (separable, first-order).

Solve dydx=ky\frac{dy}{dx} = ky.

Separate the variables so each side holds one variable, then integrate:

1y,dy=k,dx⇒∫1y,dy=∫k,dx⇒ln⁡∣y∣=kx+C1.\frac{1}{y},dy = k,dx \quad\Rightarrow\quad \int \frac{1}{y},dy = \int k,dx \quad\Rightarrow\quad \ln\lvert y \rvert = kx + C_1.

Exponentiate both sides and absorb the constant into a single C=±eC1C = \pm e^{C_1}:

y=Cekx.y = Ce^{kx}.

Check by substitution: differentiate y=Cekxy = Ce^{kx} to get dydx=kCekx=k(Cekx)=ky\frac{dy}{dx} = kCe^{kx} = k\big(Ce^{kx}\big) = ky, which is the original equation. The solution holds.

Final answer: y=Cekxy = Ce^{kx}, the exponential growth and decay law.

Example 2: A direct integration with an initial condition (particular solution).

Solve dydx=x\frac{dy}{dx} = x with y(0)=3y(0) = 3.

Integrate to get the general solution y=x22+Cy = \frac{x^2}{2} + C. Apply the condition y(0)=3y(0) = 3:

022+C=3⇒C=3.\frac{0^2}{2} + C = 3 \quad\Rightarrow\quad C = 3.

Check by substitution: differentiate y=x22+3y = \frac{x^2}{2} + 3 to get dydx=x\frac{dy}{dx} = x, and confirm y(0)=02+3=3y(0) = \frac{0}{2} + 3 = 3. Both the equation and the condition are satisfied.

Final answer: y=x22+3y = \dfrac{x^2}{2} + 3.

Example 3: A second-order equation (simple harmonic motion).

Solve d2ydx2+y=0\frac{d^2y}{dx^2} + y = 0, then find the particular solution with y(0)=1y(0) = 1 and dydx∣x=0=0\frac{dy}{dx}\big|_{x=0} = 0.

The general solution of this order-2 equation carries two constants:

y=Acos⁡x+Bsin⁡x.y = A\cos x + B\sin x.

Check by substitution: dydx=−Asin⁡x+Bcos⁡x\frac{dy}{dx} = -A\sin x + B\cos x and d2ydx2=−Acos⁡x−Bsin⁡x=−y\frac{d^2y}{dx^2} = -A\cos x - B\sin x = -y, so d2ydx2+y=0\frac{d^2y}{dx^2} + y = 0. The general solution holds. Now apply the two conditions: y(0)=A=1y(0) = A = 1, and dydx∣x=0=B=0\frac{dy}{dx}\big|_{x=0} = B = 0.

Final answer: general solution y=Acos⁡x+Bsin⁡xy = A\cos x + B\sin x; particular solution y=cos⁡xy = \cos x.

What Are The Main Types Of Ordinary Differential Equations?

First-order ODEs sort into a handful of families, and the family decides the solving method. Recognising the type is most of the battle.

Table: The common first-order ODE types and the standard method for each.

Type

Recognisable form

Method

Read more

Separable

dydx=g(x),h(y)\frac{dy}{dx} = g(x),h(y)

Split variables, integrate each side

separable differential equations

Linear

dydx+P(x),y=Q(x)\frac{dy}{dx} + P(x),y = Q(x)

Multiply by an integrating factor

linear differential equations

Homogeneous

dydx=F(yx)\frac{dy}{dx} = F\left(\frac{y}{x}\right)

Substitute y=vxy = vx

homogeneous differential equations

Exact

M,dx+N,dy=0M,dx + N,dy = 0 with ∂M∂y=∂N∂x\frac{\partial M}{\partial y} = \frac{\partial N}{\partial x}

Find a potential function

exact differential equations

For the linear family, the multiplier that makes the left side a single derivative is built by the integrating factor method. Higher-order ODEs add their own families (constant-coefficient, Cauchy-Euler), but the same order-and-degree language classifies them all.

Why Do Ordinary Differential Equations Work The Way They Do?

An ODE looks abstract until you read it as a sentence about change. Then the structure makes sense.

  • The equation is a rule for slope. At each point, dydx\frac{dy}{dx} is told to you as a formula in xx and yy. Solving means threading a curve through the plane so that its tangent obeys that rule at every point, which is why the picture of a solution is a curve in a slope field.

  • The arbitrary constants are the starting choices. Integration undoes a derivative but loses the constant, so each order of differentiation you reverse gives back one free constant. A first-order equation forgets one number; a second-order equation forgets two. Conditions restore them.

  • Proportional change forces an exponential. When a rate is proportional to the current amount, as in dydx=ky\frac{dy}{dx} = ky, the only functions that keep pace with their own derivative are exponentials. That single fact is why growth, decay, cooling, and discharge all wear the same CekxCe^{kx} shape.

Read this way, an ODE is not a puzzle with a trick. It is a compact description of a process, and the solution is the process written out in full.

Who Shaped The Theory Of Ordinary Differential Equations?

Differential equations were born the moment calculus was, because the first thing calculus could do was describe motion as a rule about rates.

Two anchoring dates:

  • Gottfried Wilhelm Leibniz (1646–1716, Germany) coined the term "differential equation" and, with Newton, gave the derivative notation the field still runs on.

  • Leonhard Euler (1707–1783, Switzerland) systematised the solution methods for linear and separable equations, converting scattered tricks into a general theory.

Where Are Ordinary Differential Equations Used In The Real World?

An ODE is the natural language of any quantity whose rate of change depends on its current state, which is most of science.

  • Population and biology: unchecked growth follows dPdt=kP\frac{dP}{dt} = kP, and more realistic models add a ceiling, giving the logistic equation used for populations and the spread of disease.

  • Physics and motion: Newton's second law F=maF = ma is a second-order ODE in position, and it governs pendulums, springs, and orbits alike through d2ydx2\frac{d^2y}{dx^2} terms.

  • Cooling and heating: Newton's law of cooling, dTdt=−k,(T−Troom)\frac{dT}{dt} = -k,(T - T_{\text{room}}), sets how fast coffee or a forensic body reaches room temperature.

  • Electrical circuits: the current in a resistor-inductor or resistor-capacitor circuit satisfies a first-order linear ODE, solved with the integrating factor.

  • Finance: continuously compounded interest obeys dAdt=rA\frac{dA}{dt} = rA, the same exponential rule as radioactive decay running in reverse.

One equation type, dydx\frac{dy}{dx} set equal to a rule, models growth, motion, temperature, current, and money. That reach is why differential equations sit at the centre of applied mathematics.

What Are The Most Common Mistakes With Ordinary Differential Equations?

These three errors account for most lost marks on the topic, and each matches a question real students ask on Quora, Reddit, and course examiner reports.

Confusing order with degree.

Where it slips in:

A student sees (d2ydx2)3\left(\frac{d^2y}{dx^2}\right)^3 and calls the equation "third order," reading the exponent as the order.

Don't do this:

Do not let the power on a derivative set the order. Order and degree measure two different things.

The correct way:

Read the order from which derivative is highest (here d2ydx2\frac{d^2y}{dx^2}, so order 22), and read the degree from the power on that highest derivative (here 33, so degree 33), and only after the equation is polynomial in its derivatives.

Dropping the arbitrary constants.

Where it slips in:

A student integrates dydx=x\frac{dy}{dx} = x and writes y=x22y = \frac{x^2}{2}, or gives a second-order general solution with only one constant.

Don't do this:

Do not lose the constant of integration, and do not hand back fewer constants than the order.

The correct way:

Attach one arbitrary constant per order in the general solution: y=x22+Cy = \frac{x^2}{2} + C for a first-order equation, y=Acos⁡x+Bsin⁡xy = A\cos x + B\sin x for a second-order one. Fix the constants only when conditions are given.

Never checking the solution by substitution.

Where it slips in:

A student produces a formula for yy and moves on, trusting the algebra without testing it.

Don't do this:

Do not leave a solution unverified. A sign slip or a missing factor is invisible until you substitute.

The correct way:

Differentiate your answer and put it back into the original equation. If y=Cekxy = Ce^{kx} is claimed for dydx=ky\frac{dy}{dx} = ky, confirm dydx=kCekx=ky\frac{dy}{dx} = kCe^{kx} = ky. A solution that fails this test is wrong, however clean it looks.

Practice Problems On Ordinary Differential Equations

Work each one, then check against the answer. Answers are verified.

  1. State the order and degree of (d2ydx2)2+(dydx)3+y=0\left(\frac{d^2y}{dx^2}\right)^2 + \left(\frac{dy}{dx}\right)^3 + y = 0.
    (Answer: order 22, degree 22.)

  2. State the order and degree of d3ydx3+2dydx=ex\frac{d^3y}{dx^3} + 2\frac{dy}{dx} = e^x.
    (Answer: order 33, degree 11.)

  3. Solve dydx=3x2\frac{dy}{dx} = 3x^2.
    (Answer: y=x3+Cy = x^3 + C.)

  4. Solve dydx=2y\frac{dy}{dx} = 2y with y(0)=5y(0) = 5.
    (Answer: general y=Ce2xy = Ce^{2x}, so C=5C = 5 and y=5e2xy = 5e^{2x}.)

  5. Verify that y=e2xy = e^{2x} satisfies dydx=2y\frac{dy}{dx} = 2y.
    (Answer: dydx=2e2x=2y\frac{dy}{dx} = 2e^{2x} = 2y, so it holds.)

  6. State the order and degree of d2ydx2=dydx+x\sqrt{\frac{d^2y}{dx^2}} = \frac{dy}{dx} + x.
    (Answer: square first to get d2ydx2=(dydx+x)2\frac{d^2y}{dx^2} = \left(\frac{dy}{dx} + x\right)^2; order 22, degree 11.)

Where Should You Go Next After Ordinary Differential Equations?

Classifying an ODE is the doorway; solving the named types is where the subject opens up.

  1. Separable differential equations. The first method to master, splitting the variables and integrating each side, and the one behind the CekxCe^{kx} law.

  2. Linear differential equations. The workhorse first-order family, solved with the integrating factor that turns the left side into a single derivative.

  3. Order and degree of a differential equation. Drill the classification that decides which method applies, including the polynomial-in-derivatives caveat on degree.

If your child is meeting Ordinary Differential Equations for the first time, a live Bhanzu trainer teaches them from the slope-field picture up, so the constants and the conditions feel like one idea, in the Bhanzu math program.

Was this article helpful?

Your feedback helps us write better content

Frequently Asked Questions

What are Ordinary Differential Equations in simple terms?
They are equations that connect a function of one variable to its derivatives, describing how a quantity changes in terms of its current value. Solving one means finding the function itself, not a single number.
What is the difference between the order and degree of an ODE?
The order is the highest derivative that appears; the degree is the power of that highest derivative, and it is defined only when the equation is polynomial in its derivatives. In (d2ydx2)3+y=0\left(\frac{d^2y}{dx^2}\right)^3 + y = 0 the order is 22 and the degree is 33.
What is the difference between an ODE and a PDE?
An Ordinary Differential Equation has one independent variable and uses ordinary derivatives like dydx\frac{dy}{dx}. A partial differential equation has two or more independent variables and uses partial derivatives. This article covers only the ordinary case.
What is a general solution versus a particular solution?
A general solution contains as many arbitrary constants as the order of the equation, describing a whole family of curves. A particular solution fixes those constants using initial or boundary conditions, selecting one curve from the family.
How do you check that a function solves a differential equation?
Differentiate the function and substitute it back into the original equation. If both sides match and any conditions are met, the function is a valid solution; if not, it is wrong regardless of how it was obtained.
What are the main types of Ordinary Differential Equations?
The common first-order families are separable, linear, homogeneous, and exact, each with its own solving method. Higher-order equations add constant-coefficient and Cauchy-Euler types, all classified by the same order and degree.
✍️ Written By
BT
Bhanzu Team
Content Creator and Editor
Bhanzu’s editorial team, known as Team Bhanzu, is made up of experienced educators, curriculum experts, content strategists, and fact-checkers dedicated to making math simple and engaging for learners worldwide. Every article and resource is carefully researched, thoughtfully structured, and rigorously reviewed to ensure accuracy, clarity, and real-world relevance. We understand that building strong math foundations can raise questions for students and parents alike. That’s why Team Bhanzu focuses on delivering practical insights, concept-driven explanations, and trustworthy guidance-empowering learners to develop confidence, speed, and a lifelong love for mathematics.
Related Articles
Book a FREE Demo ClassBook Now →