• Practice
  • About 18 min
  • 5 practice questions

Differential equations: order, degree and classification

Recognise a differential equation, find its order and degree (or say the degree is not defined), and classify it as ordinary or partial, linear or nonlinear, homogeneous or non-homogeneous.

If something looks wrong, please tell us.

By the end of this lesson you can

  • Say what a differential equation is and why rates of change lead to one.
  • Find the order and, where it exists, the degree of a differential equation.
  • Tell an ordinary differential equation (ODE) from a partial differential equation (PDE).
  • Decide whether an ODE is linear or nonlinear, and whether a linear ODE is homogeneous.

Science is full of statements about rates. The speed of a car is the rate of change of its position, a population grows at a rate that depends on its size, and a hot cup of tea cools at a rate that depends on how much hotter it is than the room. A rate of change is a derivative, so when such a law is written in symbols we get an equation that contains derivatives of an unknown function. For example, "the rate of change of y with respect to x is proportional to y" becomes dy/dx = ky, and "the rate is inversely proportional to y" becomes dy/dx = k/y, where k is a constant.

What a differential equation is

A differential equation is an equation that contains at least one derivative of an unknown function. The derivative may be an ordinary derivative such as dy/dx or a partial derivative such as ∂u/∂x. Here y = f(x), where y is the dependent variable and x the independent variable. Equations such as dy/dx = 0, dy/dx = cos x, d²y/dx² + 3 dy/dx − y = eˣ and x(dy/dx) + y = log x are all differential equations. We write y′, y″, y‴ for the first, second and third derivatives.

Order of a differential equation

The order is the order of the highest derivative that appears. If the highest derivative present is the kth derivative, the order is k, so the order is always a positive integer. In d³y/dx³ − 4(d²y/dx²)⁵ + y = 0 the highest derivative is the third, so the order is 3, however large the powers of lower derivatives are.

Degree of a differential equation

If the equation can be written as a polynomial in the derivatives, the degree is the power (a positive integer) of the highest-order derivative in that polynomial form. Before reading off the degree, check two things:

  1. No derivative may carry a fractional power. Remove square roots or cube roots by squaring or cubing both sides first.
  2. No derivative may sit inside a transcendental function such as sin, cos, eˣ or log. If it does and cannot be removed, the equation is not a polynomial in its derivatives and its degree is not defined.

The coefficients may be any functions of x and y (for example x² or sin x multiplying y″); only the derivatives themselves must appear polynomially. Note also that a derivative raised to a power inside, say, cos(y′) does not count as a power: cos(y′) is not a polynomial term at all.

Worked example 1: order and degree

  • (i) d²y/dx² + 4(dy/dx)³ − y = cos x. Highest derivative: d²y/dx², power 1. Order 2, degree 1. The cube on dy/dx does not matter, because dy/dx is not the highest derivative.
  • (ii) (d³y/dx³)² + (dy/dx)⁵ + y = 0. Highest derivative: d³y/dx³, power 2. Order 3, degree 2.
  • (iii) √(1 + (dy/dx)²) = 2 d²y/dx². The square root is a fractional power, so square both sides: 1 + (dy/dx)² = 4(d²y/dx²)². Now the highest derivative d²y/dx² has power 2. Order 2, degree 2.
  • (iv) [1 + (dy/dx)²]^(3/2) = 5 d²y/dx². Squaring: [1 + (dy/dx)²]³ = 25(d²y/dx²)². Order 2, degree 2.
  • (v) d²y/dx² + e^(dy/dx) = x. The term e^(dy/dx) is not a polynomial in dy/dx and cannot be cleared. Order 2, degree not defined.
  • (vi) dy + (x²y − sin x) dx = 0. Divide by dx: dy/dx + x²y − sin x = 0. Order 1, degree 1.

Order = the highest derivative present. Degree = the power of that highest derivative after the equation is made free of radicals and written as a polynomial in all its derivatives; if that is impossible, the degree is not defined.

— Order and degree

Ordinary and partial differential equations

An equation containing only ordinary derivatives with respect to a single independent variable is an ordinary differential equation (ODE), for example dy/dx + 2y = e⁻ˣ or d²x/dt² = −9x. An equation containing partial derivatives of a function of two or more independent variables is a partial differential equation (PDE), for example ∂²u/∂x² + ∂²u/∂y² = 0. This chapter studies ODEs only.

Linear and nonlinear ODEs

A linear ODE of order n can be written as aₙ(x)y⁽ⁿ⁾ + aₙ₋₁(x)y⁽ⁿ⁻¹⁾ + … + a₁(x)y′ + a₀(x)y = g(x), with aₙ(x) ≠ 0. The coefficients and g(x) may be any functions of x, constant or not, even zero. What makes it linear is that y and its derivatives appear only to the first power, are never multiplied together, and never sit inside another function such as sin y or e^(y′). An ODE that is not linear is nonlinear. A first-order linear ODE always has the shape y′ + p(x)y = f(x).

A linear ODE is homogeneous if g(x) = 0 and non-homogeneous otherwise. Two facts are worth remembering. First, y = 0 always satisfies a homogeneous linear equation; it is called the trivial solution. Second, if y₁ and y₂ both solve a homogeneous linear equation, so does c₁y₁ + c₂y₂ for any constants c₁ and c₂, because each derivative of the combination is the same combination of derivatives.

Classifying differential equations

  • Partial (PDE) Partial derivatives; two or more independent variables.
    • ∂u/∂t = ∂²u/∂x²
  • Ordinary (ODE) Ordinary derivatives; one independent variable.
    • Linear: y, y′, y″ … only to power 1, no products, not inside sin, e, log
    • Nonlinear: everything else, e.g. y y′ = x, y′ = cos y
  • Linear ODE aₙ(x)y⁽ⁿ⁾ + … + a₀(x)y = g(x)
    • Homogeneous if g(x) = 0
    • Non-homogeneous if g(x) ≠ 0
In this chapter the word homogeneous has a second meaning as well (lesson 4); here it is about g(x) = 0.

Worked example 2: classify each ODE

Only y and its derivatives decide linearity, never the functions of x.
EquationOrderLinear?Reason
y″ + x²y′ − 3y = eˣ2Linear, non-homogeneousy, y′, y″ to power 1; g(x) = eˣ ≠ 0
y″ = x²y2Linear, homogeneousRewrite y″ − x²y = 0; the x² is only a coefficient
y y′ + x = 01NonlinearProduct of y and y′
y′ = cos y1Nonlineary sits inside cos
(y′)² + y = x1Nonlineary′ is squared

Key takeaways: a differential equation contains a derivative of an unknown function. The order is the highest derivative; the degree is its power once the equation is a polynomial in the derivatives, and it is not defined when a derivative is trapped inside sin, e, log and so on. ODEs have one independent variable. A linear ODE has y and its derivatives only to the first power, unmultiplied and outside other functions; it is homogeneous when the right side g(x) is zero.

Check your understanding

  1. 1. What are the order and degree of (d²y/dx²)³ + 4(dy/dx)⁵ − y = x?

    1. Order 2, degree 3
    2. Order 3, degree 2
    3. Order 2, degree 5
    4. Order 5, degree 2
    Show answer

    Answer: A. The highest derivative is d²y/dx², so the order is 2. Its power is 3, so the degree is 3. The fifth power belongs to dy/dx, which is not the highest derivative, so it does not decide the degree.

  2. 2. What is the degree of d²y/dx² = √(1 + (dy/dx)³)?

    1. 1
    2. 2
    3. 3
    4. Not defined
    Show answer

    Answer: B. Clear the square root by squaring: (d²y/dx²)² = 1 + (dy/dx)³. The highest derivative d²y/dx² now has power 2, so the degree is 2 (and the order is 2).

  3. 3. For which equation is the degree not defined?

    1. y″ + y sin x = 0
    2. (y′)² + log x = y
    3. y″ + e^(y′) = x
    4. x²y″ + y′ = √x
    Show answer

    Answer: C. In y″ + e^(y′) = x a derivative sits inside the exponential function, so the equation cannot be written as a polynomial in its derivatives and the degree is not defined. In the others sin x, log x and √x are functions of x only, which are allowed.

  4. 4. Which of these is a linear ordinary differential equation?

    1. y y′ + x = 0
    2. y″ + x²y = sin x
    3. y′ = cos y
    4. (y′)² = x + y
    Show answer

    Answer: B. In y″ + x²y = sin x, y and y″ appear only to the first power and are not multiplied together; x² and sin x are functions of x, which is allowed. The others contain a product y y′, a function cos y, or a square (y′)², so they are nonlinear.

  5. 5. How is y″ + 4y = 0 best described?

    1. Linear, non-homogeneous, order 2
    2. Nonlinear, order 2
    3. Linear, homogeneous, order 1
    4. Linear, homogeneous, order 2
    Show answer

    Answer: D. The highest derivative is y″, so the order is 2. y and y″ appear to the first power with no products, so it is linear, and the right side g(x) is 0, so it is homogeneous.

Privacy · Terms · Refunds · Delivery