Back to the MA366 course wiki

Homogeneous (first order) Equations


Firstly, you should know that the word "homogeneous" can refer to different things. Here, you'll find one definition, but later in the course wiki, you'll find a section on "homogeneous differential equations with constant coefficients"; on that page, homogeneous refers to the fact that the independent variable does not appear by itself in the differential equation. The terminology is confusing, but I'm still bound to adhere to it.

Given a differential equation of the form

$ \frac{dy}{dx}=f(x,y) $

If f can be written solely as a function of the ratio y/x, then your equation is said to be homogeneous. Take, for example, the differential equation:

$ \frac{dy}{dx}=\frac{y-4x}{x-y}\qquad \qquad (*) $

To change f into a function of just y/x, we do a little trick: use the substitution

$ v=\frac{y}{x} $

Ideally, then, we want f (the right side of the equation) to be a function of v. If the equation is homogeneous, then we can accomplish this by noting that

$ y=vx $

and substituting vx for y in (*). We obtain:

$ \begin{align} \frac{dy}{dx}&=\frac{vx-4x}{x-vx}\\ &=\frac{x(v-4)}{x(1-v)}\\ \frac{dy}{dx}&=\frac{v-4}{1-v}\qquad \qquad (**) \end{align} $

This would be a nice equation if it weren't for the dy/dx on the left side of the equation. In order to do any kind of integration, we need to change that dy/dx into a dv/dx. How do we do this? Well, we take the relation we used a moment ago, that y=vx, and differentiate with respect to x. Here's what happens:

$ \begin{align} y&=vx\\ \frac{d}{dx}(y)&=\frac{d}{dx}(vx)\\ \frac{dy}{dx}&=\frac{dv}{dx}x+v \end{align} $

Notice here we used the multiplication rule for derivatives. We now have a new identity for dy/dx. To use it, we just go back to (**) and replace dy/dx with this new expression.

$ \frac{dv}{dx}x+v=\frac{v-4}{1-v} $

Until now, you've probably been wondering what the point of all this substitution and rearrangement is. Here is the payoff: this new differential equation involving v and x is separable, and we know how to solve separable equations. Get all of the v's and dv's on one side of the equation, and all the x's and dx's on the other.

$ \begin{align} \frac{dv}{dx}x+v&=\frac{v-4}{1-v}\\ \frac{dv}{dx}x&=\frac{v-4}{1-v}-v\\ \frac{dv}{dx}x&=\frac{v-4}{1-v}-\frac{v(1-v)}{1-v}\\ \frac{dv}{dx}x&=\frac{v-4}{1-v}-\frac{v-v^2}{1-v}\\ \frac{dv}{dx}x&=\frac{v^2-4}{1-v}\\ \frac{1-v}{v^2-4}dv&=\frac{1}{x}dx \end{align} $

So after some algebra, we have this nice equation ready for integration. You know what to do: integrate the left side with respect to v and the right side with respect to x.

$ \begin{align} \int \frac{1-v}{v^2-4}dv&=\int \frac{1}{x}dx \end{align} $

Now, it turns out that we get:

$ \frac{-1}{4}ln(v-2)-\frac{3}{4}ln(v+2)=lnx+C $

I used Mathematica for the integration; if you recall Calculus II well enough to do it on your own, then more power to you (I think you'd use partial fractions). But if you're like the rest of us, then you should ask your professor whether she expects you to be able to perform such integration analytically--some will be indifferent, and will allow you to use software or an integral table, but others might be less merciful. In any case, this is not a class on techniques of integration, so I am just going to do some hand waving here and skip over the issue.

The last step in solving this equation would be to change all of the v's back into y/x. Doing this gives us:

$ \frac{-1}{4}ln(\frac{y}{x}-2)-\frac{3}{4}ln(\frac{y}{x}+2)=lnx+C $

And this is the solution.

How do I know whether an equation is vulnerable to this approach?

There is an easy way to determine whether this approach will work or not. If your equation is of the form

$ \frac{dy}{dx}=f(x,y) $

and f(kx,ky)=f(x,y), then this approach will work. In other words, replace x with kx and y with ky in your differential equation. If the k's "cancel out", then your equation is homogeneous. In the example we did a moment ago, this would give us:

$ \begin{align} f(kx,ky)&=\frac{ky-4kx}{kx-ky}\\ &=\frac{k(y-4x)}{k(x-y)}\\ &=\frac{y-4x}{x-y}\\ &=f(x,y) \end{align} $

Since we have seen that f(kx,ky)=f(x,y), then we know the approach works.

Summary for solving homogeneous equations

1) First, if you suspect that the equation is homogeneous, see whether it's true that f(kx,ky)=f(x,y). If it is true, then proceed with the technique shown on this page.

2) Use the following identities to convert f (the meat and potatoes of the differential equation) into a function of just the ratio y/x:

$ \begin{align} y&=vx\\ \frac{dy}{dx}&=\frac{dv}{dx}x+v \end{align} $

3) Observe that the resulting equation is separable. Get the v's and dv's on one side, and the x's and dx's on the other. Integrate both sides of the equation.

4) Replace the v's back with y/x, simplify if necessary or desired.

Note

You must have noticed that we did a lot of substitution and algebraic tinkering in solving this problem. We created a new function v and calculated dv/dx, and used those identities to transform the original differential equation into something we knew how to solve. I strongly recommend that you become comfortable with this sort of thing; you will use it often. If you are weak on calculating the derivative of the new function v with respect to x, make sure you get clear on it. Ask another student or your professor. Do NOT just memorize the identities we derived on this page--it will only harm you later on.

Back to the MA366 course wiki

Alumni Liaison

Questions/answers with a recent ECE grad

Ryne Rayburn