Differential Equations: Order, Degree and First-Order Methods

A differential equation connects an unknown function with its derivatives, such as dy/dx = 2x or d²y/dx² + y = 0. Solving it means finding the function. Entry tests ask for the order and degree of an equation, the equation of a family of curves, and solutions of three standard first-order types: variables separable, homogeneous and linear. Growth and decay problems are the main application.

Asked in: ECAT, NUST NET, JEE Main, FSc and Class 11-12 boards

Order and degree

The order of a differential equation is the order of the highest derivative in it. The degree is the power of that highest derivative after the equation has been made free of radicals and fractions in the derivatives.

The degree is defined only when the equation is a polynomial in its derivatives. An equation such as sin(dy/dx) + y = 0 or one containing e raised to dy/dx has an order but no defined degree.

General solution and forming an equation

The general solution of an equation of order n contains n independent arbitrary constants. A particular solution is obtained by fixing the constants with given conditions such as y(0) = 1.

To form the differential equation of a family of curves, differentiate as many times as there are constants, then eliminate the constants. For example y = A cos x + B sin x has two constants; differentiating twice gives y″ = −y.

Variables separable

If dy/dx can be written as f(x) × g(y), move every y to one side and every x to the other, then integrate both sides. Add one constant of integration only.

Do not forget the logarithm cases: ∫ dy/y = ln|y| and ∫ dx/x = ln|x|. A logarithmic constant ln C often gives a neater final answer.

Homogeneous equations

dy/dx = F(x, y) is homogeneous when F can be written as a function of y/x alone; equivalently, the numerator and denominator are polynomials whose terms all have the same degree.

Substitute y = vx, so dy/dx = v + x dv/dx. The equation becomes separable in v and x. Solve it, then put back v = y/x.

Linear equations and the integrating factor

A first-order linear equation has the form dy/dx + P(x)y = Q(x), where y and dy/dx appear only to the first power and are not multiplied together. Divide by the coefficient of dy/dx first if it is not 1.

Multiply through by the integrating factor IF = e raised to ∫P dx. The left side becomes the derivative of y × IF, so y × IF = ∫ Q × IF dx + C. Useful facts: e raised to ln x is x, and e raised to −ln x is 1/x.

Growth and decay

When a quantity changes at a rate proportional to its size, dN/dt = kN. Separating variables gives N = N₀eᵏᵗ, where N₀ is the value at t = 0. k is positive for growth (bacteria, money with continuous interest) and negative for decay (radioactive nuclei, cooling differences).

If the quantity doubles in time T, then eᵏᵀ = 2, so k = (ln 2)/T. The time to reach any multiple m is (ln m)/k.

Solved examples

  1. Find the order and degree of (d²y/dx²)³ + (dy/dx)⁴ − y = 0.
    1. The highest derivative present is d²y/dx², so the order is 2.
    2. The equation is already a polynomial in the derivatives, and d²y/dx² appears to the power 3.
    3. So the degree is 3. The power 4 belongs to dy/dx, which is not the highest derivative.
    Answer: Order 2, degree 3
  2. Form the differential equation of the family y = Ae²ˣ, where A is an arbitrary constant.
    1. There is one constant, so differentiate once: dy/dx = 2Ae²ˣ.
    2. Since Ae²ˣ = y, this is dy/dx = 2y.
    3. The equation is dy/dx − 2y = 0, of order 1.
    Answer: dy/dx = 2y
  3. Solve dy/dx = x(1 + y²), given that y = 1 when x = 0.
    1. Separate: dy/(1 + y²) = x dx.
    2. Integrate: tan⁻¹ y = x²/2 + C.
    3. At x = 0, y = 1: tan⁻¹ 1 = π/4 = C.
    4. So tan⁻¹ y = x²/2 + π/4, that is y = tan(x²/2 + π/4).
    Answer: y = tan(x²/2 + π/4)
  4. Solve the homogeneous equation dy/dx = (x + y)/x for x greater than 0.
    1. Put y = vx, so dy/dx = v + x dv/dx. The right side is 1 + y/x = 1 + v.
    2. v + x dv/dx = 1 + v gives x dv/dx = 1, so dv = dx/x.
    3. Integrate: v = ln x + C.
    4. Put back v = y/x: y = x ln x + Cx.
    Answer: y = x ln x + Cx
  5. Solve dy/dx + y/x = x² for x greater than 0.
    1. This is linear with P = 1/x and Q = x².
    2. IF = e raised to ∫(1/x) dx = e raised to ln x = x.
    3. Multiply through: d(xy)/dx = x³, so xy = x⁴/4 + C.
    4. Hence y = x³/4 + C/x.
    Answer: y = x³/4 + C/x
  6. A colony of bacteria grows at a rate proportional to its size. It has 500 bacteria at the start and 1000 after 2 hours. How many will there be after 6 hours?
    1. N = 500eᵏᵗ. At t = 2, 1000 = 500e²ᵏ, so e²ᵏ = 2.
    2. At t = 6, N = 500e⁶ᵏ = 500(e²ᵏ)³ = 500 × 2³.
    3. N = 500 × 8 = 4000.
    Answer: 4000 bacteria

Exam shortcuts

Common mistakes

Practice MCQs

  1. The order of d³y/dx³ + 2(d²y/dx²)² + y = 0 is:
    A) 6
    B) 3
    C) 2
    D) 1
    Answer: B) 3 — The highest derivative is d³y/dx³, so the order is 3. The 2 is the power of the second derivative, which affects neither order nor degree here.
  2. The degree of (d²y/dx²)² + (dy/dx)³ = x is:
    A) 2
    B) 3
    C) 5
    D) 1
    Answer: A) 2 — The highest derivative is d²y/dx², and it appears squared, so the degree is 2. The power 3 belongs to dy/dx, which is lower in order.
  3. The order and degree of √(1 + (dy/dx)²) = d²y/dx² are:
    A) Order 2, degree 1
    B) Order 2, degree 2
    C) Order 1, degree 2
    D) Order 2, degree 1/2
    Answer: B) Order 2, degree 2 — Square both sides to remove the root: 1 + (dy/dx)² = (d²y/dx²)². The highest derivative is the second one, now squared, so the order is 2 and the degree is 2. A degree is always a positive whole number, so 1/2 is impossible.
  4. The differential equation of the family y = A cos x + B sin x is:
    A) d²y/dx² − y = 0
    B) d²y/dx² + dy/dx = 0
    C) dy/dx + y = 0
    D) d²y/dx² + y = 0
    Answer: D) d²y/dx² + y = 0 — Two constants mean a second-order equation. y′ = −A sin x + B cos x and y″ = −A cos x − B sin x = −y, so y″ + y = 0. The equation y″ − y = 0 belongs to the family Aeˣ + Be⁻ˣ.
  5. The general solution of dy/dx = eˣ⁺ʸ is:
    A) e⁻ˣ + eʸ = C
    B) eˣ + e⁻ʸ = C
    C) eˣ + eʸ = C
    D) eˣ − e⁻ʸ = C
    Answer: B) eˣ + e⁻ʸ = C — eˣ⁺ʸ = eˣ × eʸ, so e⁻ʸ dy = eˣ dx. Integrating gives −e⁻ʸ = eˣ + c, that is eˣ + e⁻ʸ = C. Forgetting the minus sign from ∫e⁻ʸ dy gives eˣ − e⁻ʸ = C.
  6. The solution of dy/dx = y/x that passes through (1, 2) is:
    A) y = 2/x
    B) y = x + 1
    C) y = 2x
    D) y = x² + 1
    Answer: C) y = 2x — dy/y = dx/x gives ln|y| = ln|x| + ln C, so y = Cx. Through (1, 2), C = 2 and y = 2x. The curves y = x + 1 and y = x² + 1 also pass through (1, 2) but do not satisfy the equation; y = 2/x solves dy/dx = −y/x.
  7. The general solution of dy/dx = (1 + y²)/(1 + x²) is:
    A) tan⁻¹ y = tan⁻¹ x + C
    B) tan⁻¹ y + tan⁻¹ x = C
    C) ln(1 + y²) = ln(1 + x²) + C
    D) y = x + C
    Answer: A) tan⁻¹ y = tan⁻¹ x + C — Separate: dy/(1 + y²) = dx/(1 + x²), and both sides integrate to inverse tangents, giving tan⁻¹ y = tan⁻¹ x + C. The logarithm version would need 2y and 2x in the numerators, and the sum version has the wrong sign.
  8. The integrating factor of dy/dx + (2/x)y = x, for x greater than 0, is:
    A) 2x
    B) 2 ln x
    C) e²ˣ
    D) x²
    Answer: D) x² — IF = e raised to ∫(2/x) dx = e raised to 2 ln x = x². 2 ln x is only the exponent ∫P dx, and e²ˣ comes from integrating 2 instead of 2/x.
  9. The integrating factor of dy/dx − y tan x = cos x, for 0 less than x less than π/2, is:
    A) cos x
    B) tan x
    C) sec x
    D) sin x
    Answer: A) cos x — Here P = −tan x and ∫(−tan x) dx = ln cos x, so IF = cos x. Using P = +tan x gives sec x, which is the factor for dy/dx + y tan x.
  10. The solution of dy/dx + y = 1 with y(0) = 0 is:
    A) y = 1 − eˣ
    B) y = 1 − e⁻ˣ
    C) y = 1 + e⁻ˣ
    D) y = eˣ − 1
    Answer: B) y = 1 − e⁻ˣ — IF = eˣ, so d(yeˣ)/dx = eˣ and yeˣ = eˣ + C, giving y = 1 + Ce⁻ˣ. y(0) = 0 forces C = −1, so y = 1 − e⁻ˣ. 1 + e⁻ˣ has the wrong constant (its value at 0 is 2), and eˣ − 1 starts at 0 but does not satisfy the equation.
  11. To solve dy/dx = (x² + y²)/(2xy), the most suitable substitution is:
    A) y = vx²
    B) v = x² + y²
    C) y = vx
    D) y = v + x
    Answer: C) y = vx — Every term in the numerator and the denominator has degree 2, so the equation is homogeneous and y = vx turns the right side into (1 + v²)/(2v), a function of v alone. The other substitutions leave x in the equation.
  12. The general solution of dy/dx = y/x + tan(y/x) is:
    A) sin(y/x) = x + C
    B) cos(y/x) = Cx
    C) sin(y/x) = Cx
    D) tan(y/x) = Cx
    Answer: C) sin(y/x) = Cx — Put y = vx: v + x dv/dx = v + tan v, so cot v dv = dx/x. Integrating, ln|sin v| = ln|x| + ln C, so sin(y/x) = Cx. The form sin(y/x) = x + C forgets that the right side integrates to a logarithm.
  13. The general solution of dy/dx + y/x = 2, for x greater than 0, is:
    A) y = 2x + C/x
    B) y = x + Cx
    C) y = x² + C/x
    D) y = x + C/x
    Answer: D) y = x + C/x — IF = x, so d(xy)/dx = 2x and xy = x² + C, giving y = x + C/x. Forgetting to multiply the right side by the IF gives xy = 2x + C, and forgetting to divide x² by x gives y = x² + C/x.
  14. A population grows at a rate proportional to its size and doubles in 5 years. The time it takes to become three times its starting size is:
    A) 5 ln 2 ÷ ln 3 years
    B) 7.5 years
    C) 5 ln 3 ÷ ln 2 years
    D) 10 years
    Answer: C) 5 ln 3 ÷ ln 2 years — N = N₀eᵏᵗ with e⁵ᵏ = 2, so k = (ln 2)/5. Tripling needs eᵏᵗ = 3, so t = (ln 3)/k = 5 ln 3 ÷ ln 2 ≈ 7.92 years. Linear growth would give 10 years and 5 × 3/2 gives 7.5 years, but both ignore the exponential law; the inverted ratio gives about 3.15 years.
  15. The solution of x dy/dx − y = x², x greater than 0, with y(1) = 3 is:
    A) y = x² + 2x
    B) y = x² + 2
    C) y = x² + 3x
    D) y = 3x²
    Answer: A) y = x² + 2x — Divide by x: dy/dx − y/x = x. IF = 1/x, so d(y/x)/dx = 1 and y/x = x + C, giving y = x² + Cx. y(1) = 1 + C = 3, so C = 2 and y = x² + 2x. Both 3x² and x² + 2 pass through (1, 3) but fail the equation, and x² + 3x gives y(1) = 4.

Questions

Why is the degree sometimes not defined?

The degree is the power of the highest derivative when the equation is a polynomial in its derivatives. If a derivative sits inside sin, log or an exponential, no amount of squaring makes it a polynomial, so no degree exists.

How do I recognise a linear differential equation?

After dividing by the coefficient of dy/dx, it should look like dy/dx + P(x)y = Q(x). y and dy/dx must appear only to the first power, never multiplied together and never inside functions such as sin y or y².

Where does the integrating factor come from?

Multiplying dy/dx + Py = Q by IF = e raised to ∫P dx makes the left side equal to the derivative of y × IF, by the product rule. Then a single integration finishes the problem.

How many constants should my answer have?

The general solution of a first-order equation has exactly one arbitrary constant. If a condition such as y(0) = 1 is given, use it to find that constant and give the particular solution.