Skip to content
🚨 This site is a work in progress. Exciting updates are coming soon!

3.8 Q-7

Question Statement

Solve the differential equation:

x,dy+y(xβˆ’1),dx=0x , dy + y(x - 1) , dx = 0

Background and Explanation

This is a first-order linear differential equation. To solve it, we will use the method of separation of variables. The goal is to separate the terms involving yy on one side and the terms involving xx on the other side. Once we have separated the variables, we can integrate both sides of the equation to find the general solution.


Solution

  1. Rewrite the equation:

    Start by isolating terms involving dydy on one side and dxdx on the other:

x,dy+y(xβˆ’1),dx=0 x , dy + y(x - 1) , dx = 0

Rearrange it as:

x,dy=βˆ’y(xβˆ’1),dx x , dy = -y(x - 1) , dx
  1. Separate the variables:

    Now, we want to get all terms involving yy on one side and terms involving xx on the other side. Divide both sides by yy and xx:

1y,dy=βˆ’(1βˆ’1x),dx \frac{1}{y} , dy = -\left( 1 - \frac{1}{x} \right) , dx

The equation is now separated with yy terms on the left and xx terms on the right.

  1. Integrate both sides:

    We can now integrate both sides. Start with the left-hand side, which is the integral of 1y,dy\frac{1}{y} , dy:

∫1y,dy=ln⁑∣y∣ \int \frac{1}{y} , dy = \ln |y|

On the right-hand side, we have two terms to integrate:

βˆ«βˆ’1,dx=βˆ’xand∫1x,dx=ln⁑∣x∣ \int -1 , dx = -x \quad \text{and} \quad \int \frac{1}{x} , dx = \ln |x|

Thus, we have:

ln⁑∣y∣=ln⁑∣xβˆ£βˆ’x+ln⁑∣C∣ \ln |y| = \ln |x| - x + \ln |C|

Here, CC is the constant of integration.

  1. Simplify the equation:

    Combine the logarithmic terms on the right-hand side:

ln⁑∣y∣=ln⁑∣Cβ‹…xβˆ£βˆ’x \ln |y| = \ln |C \cdot x| - x

Now exponentiate both sides to remove the logarithms:

yCx=eβˆ’x \frac{y}{Cx} = e^{-x}

Multiply both sides by CxCx to solve for yy:

y=Cxeβˆ’x y = Cx e^{-x}

Key Formulas or Methods Used

  • Separation of Variables: Rearranged the equation to separate terms involving yy and xx.
  • Integration of Common Functions: Integrated 1y\frac{1}{y}, βˆ’1-1, and 1x\frac{1}{x} with respect to their respective variables.
  • Logarithmic Properties: Used properties of logarithms to combine terms.
  • Exponentiation: Exponentiated both sides of the equation to eliminate the natural logarithms.

Summary of Steps

  1. Rearrange the given equation: x,dy=βˆ’y(xβˆ’1),dxx , dy = -y(x - 1) , dx.
  2. Separate the variables: 1y,dy=βˆ’(1βˆ’1x),dx\frac{1}{y} , dy = -\left( 1 - \frac{1}{x} \right) , dx.
  3. Integrate both sides:
    • ∫1y,dy=ln⁑∣y∣\int \frac{1}{y} , dy = \ln |y|
    • βˆ«βˆ’1,dx=βˆ’x\int -1 , dx = -x and ∫1x,dx=ln⁑∣x∣\int \frac{1}{x} , dx = \ln |x|
  4. Combine the results: ln⁑∣y∣=ln⁑∣Cxβˆ£βˆ’x\ln |y| = \ln |Cx| - x.
  5. Exponentiate both sides and solve for yy: y=Cxeβˆ’xy = Cx e^{-x}.