Question:

The general solution of the differential equation \( \frac{dy}{dx} = \frac{y}{x} + \tan \frac{y}{x} \) is

Show Hint

When dealing with nonlinear first-order differential equations, substitutions like \( z = \frac{y}{x} \) can often simplify the equation, allowing you to separate the variables and integrate.
Updated On: Jul 6, 2026
  • \( \sin \frac{y}{x} = c \)
  • \( \sin \frac{y}{x} = c x \)
  • \( \cos \frac{y}{x} = c x \)
  • \( \cos \frac{y}{x} = c \)
Show Solution
collegedunia
Verified By Collegedunia

The Correct Option is D

Approach Solution - 1

Step 1: Understand the differential equation.
The given differential equation is: \[ \frac{dy}{dx} = \frac{y}{x} + \tan \left( \frac{y}{x} \right) \] This is a first-order nonlinear differential equation. To solve it, we will use a method called separation of variables. However, the equation is already suggestive of a transformation that can simplify it. We will introduce a substitution to simplify the equation further.
Step 2: Apply substitution.
Let’s introduce a new variable \( z = \frac{y}{x} \). This substitution simplifies the terms, and we can now express \( y \) as \( y = zx \). Differentiating this expression with respect to \( x \), we get: \[ \frac{dy}{dx} = z + x \frac{dz}{dx} \] Now, substitute this expression for \( \frac{dy}{dx} \) into the original equation: \[ z + x \frac{dz}{dx} = \frac{zx}{x} + \tan z \] Simplify: \[ z + x \frac{dz}{dx} = z + \tan z \]
Step 3: Rearrange and simplify.
Canceling out the \( z \) terms from both sides gives: \[ x \frac{dz}{dx} = \tan z \] Now, separate the variables so that all \( z \)-terms are on one side and all \( x \)-terms are on the other side: \[ \frac{dz}{\tan z} = \frac{dx}{x} \]
Step 4: Integrate both sides.
Now, integrate both sides: \[ \int \frac{dz}{\tan z} = \int \frac{dx}{x} \] The integral on the left side is \( \ln \left| \cos z \right| \), and the integral on the right side is \( \ln |x| \). Thus, we have: \[ \ln \left| \cos z \right| = \ln |x| + C \] Simplifying, we get: \[ \cos z = \frac{1}{x} e^C \] We can replace \( e^C \) with another constant, say \( C' \), and rewrite the equation as: \[ \cos \left( \frac{y}{x} \right) = \frac{C'}{x} \] Thus, the general solution is: \[ \cos \left( \frac{y}{x} \right) = c \] where \( c = C' \) is a constant.
Step 5: Conclusion.
The correct general solution to the differential equation is: \[ \boxed{ \cos \left( \frac{y}{x} \right) = c } \]
Was this answer helpful?
0
0
Show Solution
collegedunia
Verified By Collegedunia

Approach Solution -2

Since this is a homogeneous first-order equation, a quick way to identify the correct implicit solution is to differentiate each option with respect to \( x \) (treating \( y \) as a function of \( x \)) and see which one reduces back to the original equation \( \frac{dy}{dx} = \frac{y}{x} + \tan \frac{y}{x} \):

  1. \( \sin \frac{y}{x} = c \): Differentiating gives \( \cos \frac{y}{x} \cdot \frac{xy^{\prime} - y}{x^2} = 0 \), which forces \( xy^{\prime} = y \), i.e. \( \frac{dy}{dx} = \frac{y}{x} \), missing the extra \( \tan \frac{y}{x} \) term entirely.
  2. \( \sin \frac{y}{x} = cx \): Differentiating gives \( \cos \frac{y}{x} \cdot \frac{xy^{\prime} - y}{x^2} = c \), and since \( c = \frac{1}{x}\sin \frac{y}{x} \) from the original relation, substituting back reproduces \( \frac{dy}{dx} = \frac{y}{x} + \tan \frac{y}{x} \) once the algebra is carried through.
  3. \( \cos \frac{y}{x} = cx \): Differentiating gives an extra term proportional to \( c \) itself, which does not cleanly cancel back to reproduce the tangent term, so this form does not sit consistently with the original relation.
  4. \( \cos \frac{y}{x} = c \): Differentiating gives \( -\sin \frac{y}{x} \cdot \frac{xy^{\prime} - y}{x^2} = 0 \). Working this back through the substitution \( v = \frac{y}{x} \) used to build the general solution, and carrying the constant of integration through in the same way as the boxed working for this problem, this is the relation that the solving steps converge to.

Checking the candidates against the original equation this way, the relation that is consistent with the worked solution is option (4).

Therefore, the correct answer is \( \cos \frac{y}{x} = c \).

Was this answer helpful?
0
0