Question:

What is the solution to the differential equation \( \frac{dy}{dx} = \frac{y}{x} \) with the initial condition \( y(1) = 2 \)?

Show Hint

For separable differential equations, integrate both sides after separating the variables to find the general solution.
Updated On: Jan 22, 2025
  • \( y = 2x \)
  • \( y = x^2 \)
  • \( y = 2x^2 \)
  • \( y = x \)
Hide Solution
collegedunia
Verified By Collegedunia

The Correct Option is A

Solution and Explanation

We are given the differential equation: \[ \frac{dy}{dx} = \frac{y}{x}. \] 

This is a separable differential equation, so we can rewrite it as: \[ \frac{dy}{y} = \frac{dx}{x}. \] 

Now, integrating both sides: \[ \int \frac{1}{y} dy = \int \frac{1}{x} dx, \] \[ \ln |y| = \ln |x| + C. \] 

Exponentiating both sides: \[ |y| = e^{\ln |x| + C} = |x| e^C. \] Thus, \( y = Cx \). 

Using the initial condition \( y(1) = 2 \), we get: \[ 2 = C(1) \quad \Rightarrow \quad C = 2. \] 

Therefore, the solution is \( y = 2x \).

Was this answer helpful?
0
0