Homogeneous, Exact and Linear Equations

Homogeneous Differential Equations

A first-order differential equation of the form dy dx = f ( x , y ) is called homogeneous if the function f ( x , y ) can be expressed as a function of the ratio y x . This means that f ( kx , ky ) = f ( x , y ) for any non-zero constant k . Alternatively, a differential equation can be written in the form M ( x , y ) dx + N ( x , y ) dy = 0 where M ( x , y ) and N ( x , y ) are homogeneous functions of the same degree. A function F ( x , y ) is homogeneous of degree n if F ( kx , ky ) = k n F ( x , y ) .

Solving Homogeneous Equations

To solve a homogeneous differential equation, we use the substitution y = vx . Differentiating this with respect to x , we get:

dy dx = v + x dv dx

Substitute y = vx and the expression for dy dx into the original differential equation. This will transform the equation into a separable equation in terms of v and x .

The steps are:

  1. Identify if the equation is homogeneous. Check if f ( x , y ) depends only on y x , or if M ( x , y ) and N ( x , y ) are homogeneous functions of the same degree.
  2. Make the substitution y = vx , which implies dy dx = v + x dv dx .
  3. Substitute these into the differential equation to get an equation in terms of v and x .
  4. Separate the variables v and x .
  5. Integrate both sides.
  6. Substitute back v = y x to get the general solution in terms of x and y .
Shortcut for Homogeneous Equations:

If the equation is of the form dy dx = f ( y x ) , after substituting y = vx , the equation often simplifies to the form x dv dx = g ( v ) . This is a separable equation: dv g ( v ) = dx x .

Example 1:

Solve the differential equation ( x 2 + y 2 ) dx - 2 xy dy = 0 .

This can be written as dy dx = x 2 + y 2 2 xy = 1 + ( y x ) 2 2 ( y x ) . This is a homogeneous equation.

Let y = vx , so dy dx = v + x dv dx .

Substituting these into the equation: v + x dv dx = 1 + v 2 2 v

x dv dx = 1 + v 2 2 v - v = 1 + v 2 - 2 v 2 2 v = 1 - v 2 2 v

Separating variables: 2 v 1 - v 2 dv = dx x

Integrate both sides: 2 v 1 - v 2 dv = dx x

Let u = 1 - v 2 , du = - 2 v dv . - du u = dx x

- ln | u | = ln | x | + C

- ln | 1 - v 2 | = ln | x | + C

ln | 1 - v 2 | - 1 = ln | x | + C

ln | 1 1 - v 2 | = ln | x | + C

1 1 - v 2 = A x , where A = ± e C is an arbitrary constant.

Substitute back v = y x : 1 1 - y 2 x 2 = A x

x 2 x 2 - y 2 = A x

x 2 = A x ( x 2 - y 2 )

x = A ( x 2 - y 2 )

This is the general solution.

Exact Differential Equations

A first-order differential equation of the form M ( x , y ) dx + N ( x , y ) dy = 0 is called an exact differential equation if there exists a function F ( x , y ) such that its total differential dF is equal to the left side of the equation. That is, dF = F x dx + F y dy = M ( x , y ) dx + N ( x , y ) dy . This implies that M = F x and N = F y .

Condition for Exactness

A differential equation M ( x , y ) dx + N ( x , y ) dy = 0 is exact if and only if: M y = N x This condition arises from Clairaut's Theorem (or Schwarz's Theorem) on the equality of mixed partial derivatives: 2 F y x = 2 F x y .

Solving Exact Equations

If the condition for exactness is met, the general solution is given by F ( x , y ) = C , where C is an arbitrary constant. We can find F ( x , y ) using the following steps:

  1. Check if the equation is exact by verifying M y = N x .
  2. Integrate M with respect to x , treating y as a constant. This gives a function F ( x , y ) = M ( x , y ) dx + g ( y ) , where g ( y ) is an arbitrary function of y (analogous to the constant of integration).
  3. Differentiate this expression for F ( x , y ) with respect to y : F y = ( M ( x , y ) dx ) + g' ( y )
  4. Equate this to N : F y = N ( x , y )
  5. Solve for g' ( y ) . You should find that the terms involving x cancel out, leaving an expression solely in terms of y .
  6. Integrate g' ( y ) with respect to y to find g ( y ) .
  7. Substitute g ( y ) back into the expression for F ( x , y ) .
  8. The general solution is F ( x , y ) = C .

Alternatively, one can integrate N with respect to y first, yielding F ( x , y ) = N ( x , y ) dy + h ( x ) , and then proceed similarly.

Shortcut for Exact Equations:

If M y = N x , the solution is often written as: M ( x , y ) dx + ( terms in N free of x ) dy = C This shortcut directly integrates M with respect to x and then integrates only those terms in N that do not contain x .

Example 2:

Solve the differential equation ( 2 x 2 y - 3 ) dx + ( 2 x 3 + 4 y ) dy = 0 .

Here, M ( x , y ) = 2 x 2 y - 3 and N ( x , y ) = 2 x 3 + 4 y .

Check for exactness: M y = ( 2 x 2 y - 3 ) = 2 x 2

N x = ( 2 x 3 + 4 y ) = 6 x 2

Since M y N x , the equation is not exact as given.

Let's re-examine the problem statement. It seems there might be a typo in the original problem. Let's assume the equation was intended to be exact. If we assume N ( x , y ) = x 3 + 4 y , then N x = 3 x 2 , still not equal.

Let's assume the equation was: ( 2 x 2 y - 3 ) dx + ( x 3 + 4 y ) dy = 0 . Here M = 2 x 2 y - 3 , N = x 3 + 4 y . M y = 2 x 2 N x = 3 x 2 Still not exact.

Let's try another common form for exact equations for illustration. Solve ( x 2 + y 2 ) dx + 2 xy dy = 0 . M = x 2 + y 2 , N = 2 xy . M y = 2 y N x = 2 y Since M y = N x , the equation is exact.

Using the shortcut: M dx + ( terms in N free of x ) dy = C

( x 2 + y 2 ) dx + ( no terms free of x in N ) dy = C

( x 3 3 + x y 2 ) + 0 = C

The solution is x 3 3 + x y 2 = C .

Linear Differential Equations

A first-order differential equation is called linear if it can be written in the standard form: dy dx + P ( x ) y = Q ( x ) where P ( x ) and Q ( x ) are functions of x only, or constants.

The term P ( x ) y is linear in y , and the highest derivative is the first derivative.

Solving Linear Equations using an Integrating Factor

The method to solve a linear differential equation involves using an integrating factor. The integrating factor, denoted by I.F. , is given by: I.F. = e P ( x ) dx

Multiplying the standard form of the linear equation by the integrating factor I.F. , the left side becomes the derivative of the product of the integrating factor and y : I.F. dy dx + I.F. P ( x ) y = I.F. Q ( x ) d dx ( y I.F. ) = I.F. Q ( x )

Now, integrate both sides with respect to x : d dx ( y I.F. ) dx = I.F. Q ( x ) dx y I.F. = I.F. Q ( x ) dx + C

Finally, solve for y : y = 1 I.F. ( I.F. Q ( x ) dx + C )

Steps to Solve Linear Differential Equations:
  1. Rewrite the equation in the standard form: dy dx + P ( x ) y = Q ( x ) .
  2. Identify P ( x ) and Q ( x ) .
  3. Calculate the integrating factor: I.F. = e P ( x ) dx . (Note: We don't need the constant of integration here as it would be absorbed by the final constant C ).
  4. Multiply the standard form equation by the integrating factor.
  5. The left side will be d dx ( y I.F. ) .
  6. Integrate both sides with respect to x .
  7. Solve for y .

Example 3:

Solve the differential equation x dy dx + y = x 2 .

First, rewrite the equation in standard form: dy dx + 1 x y = x

Here, P ( x ) = 1 x and Q ( x ) = x .

Calculate the integrating factor: P ( x ) dx = 1 x dx = ln | x | I.F. = e ln | x | = | x | For simplicity, we can take I.F. = x (assuming x > 0 ).

Multiply the standard form by x : x dy dx + x ( 1 x ) y = x x x dy dx + y = x 2

The left side is the derivative of y x : d dx ( y x ) = x 2

Integrate both sides with respect to x : d dx ( y x ) dx = x 2 dx y x = x 3 3 + C

Solve for y : y = x 3 3 x + C x y = x 2 3 + C x

This is the general solution.

Example 4: Bernoulli Equation (Can be reduced to Linear)

A Bernoulli equation has the form: dy dx + P ( x ) y = Q ( x ) y n where n is any real number, and typically n 0 , n 1 .

To solve a Bernoulli equation, we use the substitution v = y 1 - n . This substitution transforms the Bernoulli equation into a linear differential equation in terms of v .

Let's solve x dy dx + y = x y 2 . This is a Bernoulli equation with P ( x ) = 1 x , Q ( x ) = 1 , and n = 2 .

The substitution is v = y 1 - 2 = y - 1 = 1 y . Then dv dx = - 1 y - 2 dy dx = - 1 y 2 dy dx .

Divide the original equation by x : dy dx + 1 x y = y y 2

Multiply by - 1 y 2 : - 1 y 2 dy dx - 1 x 1 y = - 1

Substitute v = 1 y and dv dx = - 1 y 2 dy dx : dv dx - 1 x v = - 1

This is a linear equation. P ( x ) = - 1 x , Q ( x ) = - 1 .

Integrating factor: I.F. = e ( - 1 x ) dx = e - ln | x | = e ln | x | - 1 = 1 | x | . Let's use I.F. = 1 x .

Multiply the linear equation by 1 x : 1 x dv dx - 1 x 2 v = - 1 x

The left side is d dx ( v 1 x ) . d dx ( v x ) = - 1 x

Integrate both sides: d dx ( v x ) dx = - 1 x dx v x = - ln | x | + C

Solve for v : v = - x ln | x | + Cx

Substitute back v = 1 y : 1 y = - x ln | x | + Cx

The general solution for y is: y = 1 Cx - x ln | x |