• Advanced
  • About 15 min
  • 5 practice questions

Choosing the method: a decision routine

Classify any first-order equation in seconds - separable, homogeneous, linear in y or linear in x - and pick the fastest correct method, including for equations that fit more than one type.

If something looks wrong, please tell us.

At the advanced level the hardest part of a differential equation is often not the integration but the first decision: which method applies? Equations in mixed problems are written so that their type is hidden, and some fit two types at once. This lesson gives a fixed routine for classifying a first-order equation and shows how to pick the quickest route when more than one method works.

The four questions, in order

  1. Separable? Can dy/dx be written as f(x)g(y), after factorising or splitting exponentials?
  2. Homogeneous? Is dy/dx = F(x, y) with F(λx, λy) = F(x, y), so that it depends only on y/x (or x/y)?
  3. Linear in y? Can it be written dy/dx + P(x)y = Q(x)?
  4. Linear in x? If not, can dx/dy be written dx/dy + P₁(y)x = Q₁(y)?

Ask the questions in this order, because separation is the quickest method when it applies, and the linear-in-x form is the one most often missed. If the answer to all four is no, the equation is outside the methods of this course, and in a well-set question that is a sign to look again for a factorisation or a rearrangement.

Separable, then homogeneous, then linear in y, then linear in x. If y appears in an awkward way, turn the equation upside down and look at dx/dy.

Worked example 1: linear in y

Solve dy/dx − y/x = x, for x > 0. It is not separable (the right side is x + y/x, a sum) and not homogeneous (x has degree 1, y/x degree 0). It is linear in y with P = −1/x. The integrating factor is e^(−ln x) = 1/x, so y/x = ∫ x × (1/x) dx = x + C, giving y = x² + Cx. Check: y′ − y/x = 2x + C − x − C = x.

Worked example 2: linear in x

Solve dy/dx = y/(x + y²), for y > 0. In y it is hopeless: y² sits in the denominator. Turn it over: dx/dy = (x + y²)/y = x/y + y, that is dx/dy − x/y = y. This is linear in x with P₁ = −1/y, so the integrating factor is 1/y, and x/y = ∫ y × (1/y) dy = y + C. Hence x = y² + Cy. The clue was that x appears only to the first power, while y does not.

Worked example 3: two methods, one answer

dy/dx = (x + y)/x is homogeneous (put y = vx) and also linear (dy/dx − y/x = 1). By the linear method, the integrating factor is 1/x and y/x = ∫ (1/x) dx = ln x + C, so y = x ln x + Cx for x > 0. The homogeneous method gives v = ln x + C, the same answer. When both apply, the linear method is usually shorter because it avoids substituting back.

Worked example 4: hidden separable

dy/dx = eˣ(1 + y²) + 2x(1 + y²) looks like a sum, but factorises as (eˣ + 2x)(1 + y²). It is separable: dy/(1 + y²) = (eˣ + 2x) dx, so tan⁻¹ y = eˣ + x² + C. Always look for a common factor before deciding that an equation is not separable.

Recognising the type
Clue in the equationLikely method
dy/dx = f(x)g(y) after factorisingSeparation of variables
Every term of the same degree in x and yHomogeneous: y = vx
y and dy/dx only to the first power, not multiplied togetherLinear in y: I = e^(∫P dx)
x only to the first power, y appears awkwardlyLinear in x: I = e^(∫P₁ dy)

Key takeaways

Use the four questions in order: separable, homogeneous, linear in y, linear in x. When two methods apply they give the same answer, so choose the shorter. An equation that seems to fit nothing usually hides a common factor or needs to be turned upside down. The rest of the course practises each type at a harder level.

Check your understanding

  1. 1. Which method solves dy/dx = y/(x + y²) most directly?

    1. Treat it as linear in x: dx/dy + P(y)x = Q(y)
    2. Separation of variables
    3. The substitution y = vx
    4. Treat it as linear in y: dy/dx + P(x)y = Q(x)
    Show answer

    Answer: A. dx/dy = x/y + y, which is linear in x. It is not separable or homogeneous, and the y² in the denominator stops it being linear in y.

  2. 2. What is the general solution of dy/dx − y/x = x, for x > 0?

    1. y = x²/2 + Cx
    2. y = x² + C
    3. y = x² + Cx
    4. y = x² ln x + Cx
    Show answer

    Answer: C. The integrating factor is 1/x, so y/x = ∫ 1 dx = x + C and y = x² + Cx.

  3. 3. Which equation is BOTH homogeneous and linear in y?

    1. dy/dx = (x² + y²)/(xy)
    2. dy/dx = (x + 3y)/x
    3. dy/dx + y = x
    4. dy/dx = xy
    Show answer

    Answer: B. (x + 3y)/x depends only on y/x, and dy/dx − 3y/x = 1 is linear. (x² + y²)/(xy) is homogeneous but not linear; dy/dx + y = x and dy/dx = xy are linear but not homogeneous.

  4. 4. Which equation is neither separable, nor homogeneous, nor linear in y?

    1. dy/dx = x + y
    2. dy/dx = (x + y)/(x − y)
    3. dy/dx = x²y²
    4. dy/dx = x² + y²
    Show answer

    Answer: D. x² + y² is not a product f(x)g(y), its terms are not of degree zero, and y appears squared. The others are linear, homogeneous and separable respectively.

  5. 5. What is the general solution of dy/dx = y/x + x², for x > 0?

    1. y = x³/3 + Cx
    2. y = x³/2 + C
    3. y = x² + Cx
    4. y = x³/2 + Cx
    Show answer

    Answer: D. Linear: dy/dx − y/x = x², integrating factor 1/x. So y/x = ∫ x dx = x²/2 + C, and y = x³/2 + Cx.

Sign in to keep track of the lessons you finish.

Next lesson → Harder homogeneous equations

Privacy · Terms · Refunds · Delivery