DIFFERENTIAL EQUATIONS • FIRST-ORDER DIFFERENTIAL EQUATIONS

Homogeneous First-Order Equations

Learn how a clever substitution transforms tricky differential equations into separable ones you can solve step by step.

Historical Context & Motivation

Throughout the history of mathematics, scientists have sought methods to describe how quantities change over time. A differential equation is an equation that relates a function to its derivatives — essentially a rule for how something grows, shrinks, or evolves. By the 1600s and 1700s, mathematicians realized that many physical problems — from the cooling of hot objects to the flow of water — could be modeled with these equations. However, solving them was far from straightforward, and clever techniques had to be invented.

One family of differential equations that appeared repeatedly in geometry and physics involved ratios of the variables x and y. These equations had a special structural symmetry: if you doubled both x and y, the equation stayed the same. Mathematicians called these homogeneous first-order equations, and they developed an elegant substitution trick to crack them open.

1676
Leibniz Introduces dy/dx Notation
Gottfried Wilhelm Leibniz develops the notation dy/dx for derivatives, giving mathematicians a powerful language for writing differential equations clearly and manipulating them algebraically.
1691
Separation of Variables Technique
Leibniz solves certain differential equations by separating x-terms from y-terms on opposite sides. This becomes one of the first general-purpose solving methods, and it is the foundation upon which homogeneous equations are eventually solved.
1694
Johann Bernoulli's Substitution Methods
Johann Bernoulli pioneers the idea of using variable substitutions to simplify differential equations. His approach of replacing y with a product like v × x directly inspires the method used for homogeneous equations.
1748
Euler Systematizes Differential Equations
Leonhard Euler classifies first-order equations into types — separable, exact, homogeneous, and others — and publishes systematic solution techniques, creating the framework students still learn today.

The central question this lesson addresses is: when a first-order differential equation doesn't separate neatly, how can we recognize special structure and exploit it to find a solution? The answer lies in understanding what "homogeneous" means and mastering a substitution that transforms the equation into one we already know how to solve.

Core Principles & Definitions

Before diving into the method, you need to understand a few key ideas. A first-order ordinary differential equation (ODE) involves a function y of one variable x and its first derivative dy/dx — no higher derivatives appear. We often write it as dy/dx = f(x, y), where f is some expression involving x and y.

1

Homogeneous Function

A function f(x, y) is homogeneous of degree n if replacing x with tx and y with ty gives tn × f(x, y). For our purposes, we need degree 0: the t's cancel completely.
2

Homogeneous First-Order ODE

An equation dy/dx = f(x, y) is homogeneous when f(x, y) can be rewritten entirely as a function of the ratio y/x. In other words, f(x, y) = g(y/x) for some function g.
3

The Substitution v = y/x

Setting v = y/x (so y = vx) transforms the equation. Using the product rule, dy/dx = v + x(dv/dx). This substitution converts the homogeneous equation into a separable one in v and x.
4

Separable Equation

A separable equation can be written so all v-terms are on one side and all x-terms are on the other. You then integrate both sides independently to find the solution.
KEY TAKEAWAY
Think of a homogeneous equation like a recipe that only uses ratios — two cups flour per cup sugar, regardless of batch size. If you double all ingredients, the proportions stay the same. Similarly, in a homogeneous ODE, the relationship between dy/dx, x, and y depends only on the ratio y/x, not on x and y individually. The substitution v = y/x captures that ratio and simplifies everything.

Visual Explanation

The diagram below shows the overall strategy for solving a homogeneous first-order ODE. You start with an equation that looks tangled in x and y, recognize it as homogeneous, apply the substitution v = y/x, solve the resulting separable equation, and then substitute back to get your answer in terms of x and y.

The flowchart traces the seven-step strategy: start with the original equation (Step 1), verify homogeneity (Step 2), rewrite in terms of y/x (Step 3), substitute v = y/x (Step 4), separate variables (Step 5), integrate (Step 6), and back-substitute to express the solution in x and y (Step 7).

Notice how the process funnels a seemingly complicated problem through a single substitution (v = y/x) into familiar territory. Once you reach Step 5, you are back to solving a separable equation, which means putting all v-terms on one side and all x-terms on the other, then integrating. The final step of replacing v with y/x brings the answer back into the original variables.

Mathematical Framework

Let's build the algebra carefully. We start with a first-order ODE written in the form dy/dx = f(x, y). The equation is homogeneous if replacing x with tx and y with ty leaves f unchanged for every value of t. Equivalently, f must depend only on the ratio y/x, so we can write f(x, y) = g(y/x).

HOMOGENEITY TEST
f(tx, ty) = f(x, y) for all t ≠ 0
If this holds, f is homogeneous of degree 0 and the equation dy/dx = f(x, y) is a homogeneous ODE. Equivalently, f(x, y) can be expressed purely as a function of y/x.

Now we perform the substitution. Let v = y/x, so that y = vx. To find dy/dx, apply the product rule to y = vx.

SUBSTITUTION AND PRODUCT RULE
y = vx ⟹ dy/dx = v + x · (dv/dx)
Here v = y/x is the new dependent variable, and x remains the independent variable. The derivative dy/dx splits into two pieces via the product rule.

Substituting into the original equation dy/dx = g(y/x) = g(v), we get:

TRANSFORMED EQUATION
v + x · (dv/dx) = g(v) ⟹ x · (dv/dx) = g(v) − v
This can be rearranged into separated form: dv / [g(v) − v] = dx / x. Both sides are now ready to be integrated.
SEPARATED FORM & INTEGRATION
∫ dv / [g(v) − v] = ∫ dx / x = ln|x| + C
After integrating, replace v with y/x everywhere to express the solution in the original variables x and y. The constant C can be determined if an initial condition is provided.
Watch Out
The separation step assumes g(v) − v ≠ 0. If g(v) − v = 0 for some constant value v₀, then v = v₀ (i.e., y = v₀x) is itself a solution — a straight line through the origin. Always check for these equilibrium solutions before separating variables.

Recognizing Homogeneous Equations

The trickiest part of solving homogeneous equations is recognizing them in the first place. They don't always look alike at first glance. The key test is to check whether every term in f(x, y) has the same total degree in x and y, so that everything cancels when you factor out the appropriate power. Let's look at several forms these equations can take and see how to spot the pattern.

Side-by-side comparison of equations that are homogeneous (left, green borders) versus those that are not (right, red borders). The decisive test: can you rewrite the right-hand side entirely as a function of y/x?

A useful shortcut for polynomial-type expressions: if the right-hand side is a fraction P(x, y)/Q(x, y) where P and Q are polynomials, check that every term in both P and Q has the same total degree. For example, in (x² + xy)/(y²), each term — x², xy, and y² — has degree 2. Dividing numerator and denominator by x² gives (1 + y/x)/(y/x)², which is purely in terms of y/x. For expressions involving trig, exponential, or logarithmic functions, look for arguments that are ratios like y/x.

💡 Quick Test
Replace every x with t and every y with t in f(x, y). If all the t's cancel out completely, the equation is homogeneous. For instance, f(x, y) = (x − y)/(x + y) becomes (t − t)/(t + t) — factor t from top and bottom, they cancel, confirming homogeneity.

Worked Example

Let's solve the equation dy/dx = (x² + y²) / (2xy) from start to finish, with the initial condition y(1) = 2.

Solving dy/dx = (x² + y²) / (2xy) with y(1) = 2
1
Step 1 — Verify HomogeneityCheck degrees: numerator terms x² and y² are both degree 2; denominator 2xy is also degree 2. Since all terms share the same total degree, the equation is homogeneous. We can verify: replace x → tx, y → ty, and (t²x² + t²y²)/(2·tx·ty) = t²(x² + y²)/(2t²xy) = (x² + y²)/(2xy). The t's cancel.
Confirmed homogeneous ✓
2
Step 2 — Rewrite as a Function of y/xDivide every term in the numerator and denominator by x²: (x²/x² + y²/x²) / (2xy/x²) = (1 + (y/x)²) / (2(y/x)). So dy/dx = (1 + v²) / (2v), where v = y/x.
dy/dx = g(v) = (1 + v²) / (2v)
3
Step 3 — Substitute v = y/xSince y = vx, the product rule gives dy/dx = v + x(dv/dx). Substituting into our equation: v + x(dv/dx) = (1 + v²) / (2v).
v + x(dv/dx) = (1 + v²) / (2v)
4
Step 4 — Isolate x(dv/dx) and SeparateSubtract v from both sides: x(dv/dx) = (1 + v²)/(2v) − v = (1 + v² − 2v²)/(2v) = (1 − v²)/(2v). Now separate: 2v dv / (1 − v²) = dx / x.
2v dv / (1 − v²) = dx / x
5
Step 5 — Integrate Both SidesFor the left side, let u = 1 − v², so du = −2v dv, meaning 2v dv = −du. The integral becomes ∫ −du/u = −ln|u| = −ln|1 − v²|. The right side is ∫ dx/x = ln|x|. Combining: −ln|1 − v²| = ln|x| + C₁.
−ln|1 − v²| = ln|x| + C₁
6
Step 6 — Simplify and Back-SubstituteMultiply both sides by −1: ln|1 − v²| = −ln|x| + C₂ (where C₂ = −C₁). Exponentiate: |1 − v²| = A/|x| (where A = e^C₂). Since v = y/x, substitute: 1 − y²/x² = A/x, which gives (x² − y²)/x² = A/x. Multiplying both sides by x²: x² − y² = Ax.
x² − y² = Ax
7
Step 7 — Apply the Initial Condition y(1) = 2Plug in x = 1 and y = 2: 1 − 4 = A(1), so A = −3. The particular solution is x² − y² = −3x, or equivalently, x² + 3x − y² = 0.
x² + 3x − y² = 0
Check Your Answer
You can verify by implicitly differentiating x² + 3x − y² = 0 to get 2x + 3 − 2y(dy/dx) = 0, so dy/dx = (2x + 3)/(2y). Then confirm this equals (x² + y²)/(2xy) when x² + 3x = y², which it does.

Strengths, Limitations & Comparisons

The substitution method for homogeneous equations is powerful, but it's important to understand when it works and when you'll need a different approach. The table below compares this technique with other first-order methods you might encounter.

Comparison of homogeneous substitution versus direct separation of variables
FeatureHomogeneous (v = y/x)Direct Separation
When it appliesdy/dx depends only on the ratio y/xdy/dx = h(x) · k(y) — already factors into x-only and y-only parts
Key moveSubstitute v = y/x, then separate v and xMove k(y) to the left, h(x) to the right, integrate
StrengthConverts a non-separable equation into a separable oneSimplest possible method — no substitution needed
LimitationOnly works if f(tx, ty) = f(x, y); the resulting integral may be hardFails if x and y are intertwined (e.g., x + y in a denominator)
Typical difficultyModerate — requires recognizing homogeneity and a u-substitution for the integralLow — the hardest part is often just integrating
🧩 WHERE IT FITS
Think of your solving techniques as tools in a toolbox. Separation of variables is the basic screwdriver — it works when the equation already comes apart easily. The v = y/x substitution is a socket wrench — it's designed for a specific type of bolt (homogeneous equations) and makes quick work of problems that the screwdriver can't handle. As you learn more methods (integrating factors, exact equations, Bernoulli equations), your toolbox grows, and the first step is always identifying which tool fits.

Connections to Advanced Topics

Homogeneous first-order equations are a gateway to more advanced techniques in differential equations. The idea of using a substitution to simplify an equation is a theme that repeats throughout the subject. Below is a glimpse of where the ideas you've learned connect to future topics.

How homogeneous equations connect to future topics in differential equations
This LessonAdvanced Extension
v = y/x substitution reduces to separable formBernoulli equations use v = y^(1−n) to reduce to a linear ODE
Homogeneity: f(tx, ty) = f(x, y)Euler's homogeneous function theorem extends this to partial derivatives and is important in thermodynamics and economics
Solutions often form families of curves (e.g., x² − y² = Ax)These curve families are related to orthogonal trajectories, which appear in physics (electric field lines vs. equipotentials)
Equations of the form M(x,y)dx + N(x,y)dy = 0 with M, N homogeneous of the same degreeExact equations and integrating factors generalize the idea of recognizing hidden structure in a differential equation

You may also encounter equations that are nearly homogeneous — for example, dy/dx = (x + y + 1)/(x − y + 3). These fail the homogeneity test because of the constant terms, but a shift of coordinates (replacing x and y with new variables X and Y centered at a particular point) can remove the constants and make the equation homogeneous. This is another instance of using substitution as a universal problem-solving strategy in differential equations.

Practice Problems

PROBLEM 1CONCEPTUAL
Explain in your own words what it means for a first-order ODE to be "homogeneous." Then determine whether dy/dx = (x³ + x²y) / (xy² + y³) is homogeneous, and justify your answer using the degree-check method.
PROBLEM 2BASIC CALCULATION
Solve the differential equation dy/dx = y/x + 1 using the substitution v = y/x. Express your general solution in terms of x and y.
PROBLEM 3INTERMEDIATE
Solve dy/dx = (x + y) / (x − y). Find the general solution and write it in an implicit form involving x and y.
PROBLEM 4APPLIED
A searchlight beam sweeps across a flat field. A moth flies so that at every instant, the direction of its velocity makes equal angles with the line from the origin (the light) to the moth and the horizontal. This leads to the ODE dy/dx = (x + y)/(x − y), with the moth starting at position (1, 0). Find the moth's trajectory.
PROBLEM 5CRITICAL THINKING
Consider dy/dx = (y² − x²) / (2xy). (a) Find the general solution. (b) Show that the solution curves are a family of circles. (c) Determine the family of curves that intersects these circles at right angles (their orthogonal trajectories).

Lesson Summary

A homogeneous first-order ODE has the form dy/dx = f(x, y) where f depends only on the ratio y/x. You can test for this by checking that f(tx, ty) = f(x, y) for all t, or by verifying that all polynomial terms share the same total degree. The solving strategy uses the substitution v = y/x (so y = vx and dy/dx = v + x·dv/dx), which converts the equation into a separable equation in v and x. After separating and integrating, you back-substitute v = y/x to express the solution in the original variables.

Key skills from this lesson include recognizing homogeneous equations by degree-checking or the scaling test, executing the v-substitution cleanly, and handling the resulting integrals. Watch for equilibrium solutions where g(v) − v = 0. This method is a stepping stone to broader substitution techniques — including Bernoulli equations, exact equations, and integrating factors — that you will encounter as you continue studying differential equations.

Varsity Tutors • Differential Equations • Homogeneous First-Order Equations