First Year Engineering is coming soon

We're still writing and reviewing the notes for every subject, and we'll open it when every subject is ready. Meanwhile you can practise aptitude, ask Aria about any subject, or see the branches that are ready.

Variable separable and homogeneous differential equations

Methods to solve first‑order differential equations by separating variables and by reducing homogeneous equations using y = v·x (or x = v·y) to a separable form.

Drafted with Aria, reviewed by the AiCanCode.org team · Updated . How we write and check our notes. Spotted an error? Use Give Feedback at the bottom of the page.

Why it matters

Engineers model many first-order processes—like capacitor charging, chemical mixing, cooling, and population balance—by differential equations. The earliest and most common models reduce to variable separable or homogeneous forms, which give closed-form solutions needed for design, parameter estimation, and quick checks before using numerical solvers.

Key ideas

  • Order of a differential equation: The highest derivative present. In this topic we study first-order ODEs only.
  • Solution of an ODE: A function y(x) that, when substituted into the ODE on an interval, satisfies the equation. A family of solutions usually contains an arbitrary constant C (the constant of integration).
  • Initial value problem (IVP): An ODE together with a condition like y(x0) = y0 specifying the solution uniquely (under standard assumptions such as continuity and Lipschitz conditions). In this topic, we use IVPs to determine the constant.

Definition 1 (Variable separable differential equation)

  • A first-order ODE is called variable separable if it can be written as dy/dx = g(x)·h(y), or equivalently as dy/h(y) = g(x)·dx, allowing the variables x and y to be placed on different sides and integrated.
  • Assumptions for method: g and h are continuous on intervals of interest, and h(y) ≠ 0 on the part of the solution curve considered (except possibly at equilibrium where h(y) = 0 gives constant solutions).

Method (Separation of variables) — exact steps universities expect:

  1. Write the ODE in the form dy/dx = g(x)·h(y).
  2. Rearrange to separate: dy/h(y) = g(x)·dx.
  3. Integrate both sides: ∫ [1/h(y)] dy = ∫ g(x) dx + C.
  4. Simplify to an explicit or implicit relation in x and y.
  5. If an IVP is given, substitute the initial condition to find C.
  6. State any constant (equilibrium) solutions that satisfy h(y) = 0 separately, because division by h(y) in Step 2 excludes them.

Notes commonly examined:

  • If h(y) = 0 for some y = k, then y(x) = k is a constant solution (equilibrium). Always list these before or after separation to avoid losing them.
  • Domain and absolute values: Integration often yields logarithms; use ln|·| and specify the domain if an explicit branch is chosen.

Definition 2 (Homogeneous first-order differential equation)

  • A first-order ODE dy/dx = F(x, y) is called homogeneous of degree 0 if F(λx, λy) = F(x, y) for all λ > 0. Equivalently, in differential form M(x, y) dx + N(x, y) dy = 0 is homogeneous if M and N are homogeneous functions of the same degree (i.e., M(λx, λy) = λ^n M(x, y), N(λx, λy) = λ^n N(x, y) for some integer or real n).
  • Characteristic property: For homogeneous degree 0 equations, the right-hand side can be expressed as a function of the ratio y/x alone: dy/dx = φ(y/x).

Method (Reduction of a homogeneous ODE to a separable ODE) — exact steps universities expect:

  1. Confirm homogeneity: Show F(λx, λy) = F(x, y), or show M and N share the same degree.
  2. Substitute y = v·x (or if more convenient, x = v·y). Then dy/dx = v + x·dv/dx by the product rule.
  3. Replace y and dy/dx in the ODE to get an equation in v and x of the form v + x·dv/dx = φ(v).
  4. Rearrange to separate variables: dv / [φ(v) − v] = dx / x.
  5. Integrate: ∫ dv / [φ(v) − v] = ∫ dx / x + C.
  6. Back-substitute v = y/x to obtain the solution in terms of x and y. Use the initial condition if given to find C.

Typical derivation to show why the substitution works (a standard exam derivation):

  • If dy/dx = F(x, y) is homogeneous (degree 0), set y = v·x. Then dy/dx = v + x·dv/dx.
  • Homogeneity implies F(x, y) = F(x, v·x) = F(1, v) which is a function φ(v) only. So v + x·dv/dx = φ(v).
  • Thus x·dv/dx = φ(v) − v, giving a separable equation dv/[φ(v) − v] = dx/x. This completes the reduction.

Equilibrium lines and singular solutions for homogeneous ODEs:

  • After substitution, values of v that make φ(v) − v = 0 correspond to straight-line solutions through the origin: y = v·x. These must be checked in the original equation and included if valid.

Connection to other topics (for context only):

  • If M(x, y) dx + N(x, y) dy = 0 is homogeneous of the same degree, the substitution y = v·x typically works. If it is not homogeneous but exact (see “Exact differential equations and integrating factors”), solve by potential function. If linear in y (see “Linear and Bernoulli’s differential equations”), use the integrating factor method for linear equations, not the homogeneous substitution.

Good practice (what to draw if asked for a diagram):

  • Draw a slope field sketch: axes labeled x (horizontal) and y (vertical). Plot a few line elements for selected points using the slope given by dy/dx. For a homogeneous equation, show that slope depends only on y/x by drawing identical slopes along rays through the origin. Label one or two integral curves and any straight-line solutions y = v·x.

Formulas

y is dependent variable (same units as the modeled quantity), x is independent variable (often time t in s), g is a function of x, h is a function of y; applies when variables can be separated.

  • dy/h(y) = g(x)·dx Rearranged separable form; valid where h(y) ≠ 0.
  • ∫ [1/h(y)] dy = ∫ g(x) dx + C Integration step; C is a constant of integration (it may carry units so that both sides have consistent dimensions; if exponentiated, e^C is dimensionless). Units: both integrals must have same units as y-side function equals x-side function up to constant; check dimensional consistency.
  • dy/dx = φ(y/x) Homogeneous first-order ODE (degree 0); φ depends on the ratio y/x only.
  • y = v·x, dy/dx = v + x·dv/dx Substitution for homogeneous equations; v is dimensionless ratio y/x.
  • dv/[φ(v) − v] = dx/x Separable form after substitution in a homogeneous equation; valid where φ(v) − v ≠ 0.
  • M(x, y) dx + N(x, y) dy = 0 with M, N homogeneous of same degree Differential form of a homogeneous equation; use substitution y = v·x.
  • ln|x| = ∫ dv/[φ(v) − v] + C Integrated form for homogeneous equations (one typical arrangement).

Worked examples

Example 1 (Separable, with IVP and units) Given a mixing tank where concentration y(t) (kg/m³) changes with time t (s) by dy/dt = k·(A − y), with k = 0.20 s⁻¹ and A = 10 kg/m³. If y(0) = 2 kg/m³, find y(t).

Step 1: Identify separable form.

  • dy/dt = 0.20·(10 − y) is separable with g(t) = 0.20 and h(y) = (10 − y).

Step 2: Separate variables.

  • dy/(10 − y) = 0.20·dt.

Step 3: Integrate both sides.

  • Formula before numbers: ∫ dy/(10 − y) = ∫ 0.20 dt.
  • Left integral: Let u = 10 − y, du = −dy ⇒ ∫ dy/(10 − y) = −ln|10 − y|.
  • Right integral: ∫ 0.20 dt = 0.20·t + C.
  • Therefore: −ln|10 − y| = 0.20·t + C.

Step 4: Solve for y explicitly and apply initial condition.

  • Multiply by −1: ln|10 − y| = −0.20·t + C1 with C1 = −C.
  • Exponentiate: |10 − y| = e^{C1}·e^{−0.20 t}. Let K = e^{C1} > 0 (with the same units as 10 − y).
  • Without loss of generality (given y < 10 initially), drop absolute value with positive branch: 10 − y = K·e^{−0.20 t}.
  • Apply y(0) = 2: 10 − 2 = K·e^0 ⇒ K = 8 (kg/m³).
  • Hence: y(t) = 10 − 8·e^{−0.20 t} kg/m³.

Step 5: State final answer clearly.

  • Final: y increases toward A = 10 kg/m³ with time constant 1/k = 5 s.
  • Answer: y(t) = 10 − 8·e^{−0.20 t} kg/m³. Final value in bold: y(t) = 10 − 8·e^{−0.20 t} kg·m⁻³.

Check: Units — left side dy has kg/m³, denominator (10 − y) kg/m³ so dimensionless; right side 0.20 dt is dimensionless since 0.20 s⁻¹ × s. Consistent.

Example 2 (Pure separable, no units) Solve dy/dx = [x/(1 + x²)]·[1/(1 + y²)].

Step 1: Separate variables.

  • (1 + y²) dy = [x/(1 + x²)] dx.

Step 2: Integrate.

  • Formula before numbers: ∫ (1 + y²) dy = ∫ [x/(1 + x²)] dx.
  • Left: ∫ (1 + y²) dy = y + y³/3.
  • Right: Use substitution u = 1 + x², du = 2x dx ⇒ ∫ x/(1 + x²) dx = (1/2) ln|1 + x²|.

Step 3: Combine and add constant.

  • y + y³/3 = (1/2) ln|1 + x²| + C.

Step 4: State solution.

  • Implicit solution is acceptable: y + y³/3 = (1/2) ln(1 + x²) + C (absolute value optional here since 1 + x² > 0 for all real x).

Example 3 (Homogeneous reduced to separable) Solve dy/dx = (x + y)/(x − y).

Step 1: Verify homogeneity.

  • Replace (x, y) by (λx, λy): (λx + λy)/(λx − λy) = (x + y)/(x − y); degree 0. Hence homogeneous.

Step 2: Substitute y = v·x ⇒ dy/dx = v + x·dv/dx.

Step 3: Reduce to separable in v and x.

  • v + x·dv/dx = (x + v·x)/(x − v·x) = (1 + v)/(1 − v).
  • Rearrange: x·dv/dx = (1 + v)/(1 − v) − v = [(1 + v) − v(1 − v)]/(1 − v) = [1 + v − v + v²]/(1 − v) = (1 + v²)/(1 − v).
  • Separate variables: [(1 − v)/(1 + v²)] dv = dx/x.

Step 4: Integrate.

  • Left: ∫ [(1 − v)/(1 + v²)] dv = ∫ [1/(1 + v²) − v/(1 + v²)] dv = arctan v − (1/2) ln(1 + v²).
  • Right: ∫ dx/x = ln|x| + C.

Step 5: Back-substitute and arrange.

  • arctan v − (1/2) ln(1 + v²) = ln|x| + C with v = y/x.
  • Hence implicit solution: arctan(y/x) − (1/2) ln(1 + (y/x)²) = ln|x| + C.
  • A neat combined form: move terms to one side or exponentiate if desired. One common presentation: arctan(y/x) − (1/2) ln(x² + y²) = C1 because ln(1 + (y/x)²) = ln(x² + y²) − 2 ln|x| and the ln|x| terms cancel.
  • Final implicit solution (simplified): arctan(y/x) − (1/2) ln(x² + y²) = C1.

Step 6: Straight-line solutions (if any).

  • From φ(v) − v = 0 ⇒ (1 + v)/(1 − v) − v = 0 ⇒ 1 + v = v − v² ⇒ v² + 1 = 0 which has no real v. Hence there are no real straight-line solutions through the origin for this equation. State this explicitly.

Example 4 (Homogeneous in differential form M dx + N dy = 0) Solve (x² + xy) dx + (xy + y²) dy = 0.

Step 1: Verify homogeneity degree.

  • M = x² + xy and N = xy + y² are each homogeneous of degree 2 (every term is degree 2). Hence homogeneous.

Step 2: Substitute y = v·x, dy = v dx + x dv.

Step 3: Rewrite and separate.

  • Substitute into M dx + N dy = 0: (x² + x·v·x) dx + (x·v·x + (v·x)²)(v dx + x dv) = 0 ⇒ simplify carefully.
  • First, factor by x² to reduce algebraic errors: x²(1 + v) dx + x²(v + v²)(v dx + x dv) = 0.
  • Expand: x²(1 + v) dx + x²(v + v²) v dx + x³(v + v²) dv = 0.
  • Combine dx terms: x²[(1 + v) + v(v + v²)] dx + x³(v + v²) dv = 0.
  • Simplify inside bracket: v(v + v²) = v² + v³. So dx coefficient is 1 + v + v² + v³.
  • Divide by x³ (x ≠ 0 region): [(1 + v + v² + v³)/x] dx + (v + v²) dv = 0.
  • Rearranged: (v + v²) dv = −[(1 + v + v² + v³)/x] dx.
  • Separate: [(v + v²)/(1 + v + v² + v³)] dv = −dx/x.

Step 4: Simplify fraction before integrating.

  • Factor: 1 + v + v² + v³ = (1 + v)(1 + v²) and v + v² = v(1 + v).
  • Hence left side simplifies to v(1 + v)/[(1 + v)(1 + v²)] = v/(1 + v²).
  • So ∫ [v/(1 + v²)] dv = −∫ dx/x + C.

Step 5: Integrate and back-substitute.

  • Left: Let w = 1 + v² ⇒ dw = 2v dv ⇒ ∫ v/(1 + v²) dv = (1/2) ln(1 + v²).
  • Right: −∫ dx/x = −ln|x|.
  • Combine: (1/2) ln(1 + v²) = −ln|x| + C.
  • Multiply by 2: ln(1 + v²) = −2 ln|x| + C1.
  • Exponentiate: 1 + v² = C2·x⁻².
  • Replace v = y/x: 1 + (y/x)² = C2·x⁻² ⇒ x² + y² = C2.
  • Final implicit solution: x² + y² = C (a family of circles in the plane). These are valid away from the origin; check the original equation at the origin separately. Additionally, the straight-line solution x + y = 0 (i.e., y = −x) also satisfies the original equation; it was excluded when canceling the factor (1 + v) during simplification.

Common mistakes

  • Dropping absolute values: Writing ln(1 + x²) is fine because it is positive, but writing ln(x) without |x| loses negative-x solutions. Use ln|x| unless domain restrictions are stated.
  • Mixing methods: Trying linear integrating factors on a homogeneous equation, or vice versa. First test the form (separable? homogeneous? exact? linear?).
  • Incorrect derivative under substitution: For y = v·x, remember dy/dx = v + x·dv/dx (product rule). Omitting the v term is a frequent error.
  • Algebraic simplification errors: Not factoring common terms like (1 + v) or (1 + v²) can make integrals look impossible.
  • Ignoring domain of definition: Solutions may be valid only for x > 0 or x < 0 when ln|x| appears. State the interval of validity.
  • Unit inconsistency in applied problems: Ensure rate constants have correct units (e.g., s⁻¹) so that arguments of exponentials are dimensionless.

For your exam

  • Define variable separable equation and list the method steps. Include the condition h(y) ≠ 0 and mention equilibrium solutions.
  • Define homogeneous first-order equation. State the test F(λx, λy) = F(x, y) and the equivalent ratio form dy/dx = φ(y/x).
  • Derivations:
    • Derive that the substitution y = v·x reduces a homogeneous equation to a separable equation in v and x (show dy/dx = v + x·dv/dx and separate).
    • From M dx + N dy = 0 with M, N same degree, derive simplification to an equation in v and x by factoring x^n.
  • Numericals/solutions:
    • Solve given separable ODEs; show separation, integration, constant inclusion, and apply initial condition if given.
    • Solve homogeneous ODEs; verify homogeneity, substitute y = v·x, separate, integrate, and back-substitute.
  • Diagrams:
    • Sketch a slope field or a few solution curves emphasizing ratio dependence y/x for homogeneous equations; label axes and any straight-line solutions if they exist.

Full-mark answer tips:

  • Start with identification: write “This ODE is separable/homogeneous because …”.
  • Show each algebraic step (separation, substitution, integration) clearly and write formula before substituting numbers.
  • Include + C once per independent integration and determine it from the initial condition when provided.
  • State domain/absolute value considerations briefly.
  • Box or bold the final answer and, in applied questions, include SI units.

Quick check

  1. Identify whether dy/dx = (x² − 1)·(y + 3) is separable, homogeneous, both, or neither.
  2. For a homogeneous ODE dy/dx = φ(y/x), after substitution y = v·x, what differential equation in v and x do you obtain before separation?
  3. Solve dy/dx = y/x for x > 0 with y(1) = 5.

Answers: 1) Separable (dy/(y + 3) = (x² − 1) dx), not homogeneous. 2) v + x·dv/dx = φ(v). 3) dy/y = dx/x ⇒ ln y = ln x + C ⇒ y = C·x. From y(1) = 5, C = 5; so y = 5x.

Finished this topic? Mark it so your progress, study plan and readiness keep up.

Stuck on something here?