SOLVER7 Study. Nothing Else.
2026 Board Paper Q28(a)

Solve the differential equation :
\(x\dfrac{dy}{dx}=y-x\ tan\dfrac{y}{x}\)

CBSE Class 12 Maths · Differential Equations

Solution

👶 Simple Explanation

Simple Explanation

Imagine a puzzle where every piece looks the same when you zoom in or zoom out — that is what this equation is like. We notice that swapping \( y \) for \( vx \) turns a tricky puzzle into a simpler one. After the swap, extra pieces cancel out nicely. We then sort the pieces into two separate groups and add them up on each side. The answer tells us a hidden relationship between \( x \) and \( y \) that stays constant throughout.

Answer: The general solution is \[x\sin\frac{y}{x} = C,\] where \(C\) is an arbitrary constant.

📖 Solving a Homogeneous Differential Equation

Detailed Explanation

A first-order differential equation is called homogeneous if it can be written in the form \(\frac{dy}{dx} = F\left(\frac{y}{x}\right)\), that is, the right-hand side depends only on the ratio \(\frac{y}{x}\). Our equation \(x\frac{dy}{dx} = y - x\tan\frac{y}{x}\) fits this pattern after dividing by \(x\). To solve such equations we use the substitution \(y = vx\), where \(v\) is a function of \(x\). This converts the equation into a variables-separable equation in \(v\) and \(x\), which we can then integrate.

Formula Used

Substitution for a homogeneous equation: \(y = vx\) so that \(\frac{dy}{dx} = v + x\frac{dv}{dx}\). Also \(\int \cot v \, dv = \ln|\sin v| + C\).

Solution

  1. Step 1: Write the equation in the standard form by dividing both sides by \(x\): \[\frac{dy}{dx} = \frac{y}{x} - \tan\frac{y}{x}.\] Since the right side depends only on \(\frac{y}{x}\), the equation is homogeneous.
  2. Step 2: Use the substitution \(y = vx\). Differentiating both sides with respect to \(x\) gives \[\frac{dy}{dx} = v + x\frac{dv}{dx}.\]
  3. Step 3: Substitute \(y = vx\) (so \(\frac{y}{x} = v\)) and the expression for \(\frac{dy}{dx}\) into the equation: \[v + x\frac{dv}{dx} = v - \tan v.\]
  4. Step 4: Cancel \(v\) from both sides to get \[x\frac{dv}{dx} = -\tan v.\] This is now a variables-separable equation.
  5. Step 5: Separate the variables \(v\) and \(x\): \[\frac{dv}{\tan v} = -\frac{dx}{x},\] which can be written as \[\cot v \, dv = -\frac{dx}{x}.\]
  6. Step 6: Integrate both sides: \[\int \cot v \, dv = -\int \frac{dx}{x}.\] This gives \[\ln|\sin v| = -\ln|x| + \ln|C|,\] where \(\ln|C|\) is the constant of integration.
  7. Step 7: Combine the logarithms using \(\ln a + \ln b = \ln(ab)\): \[\ln|\sin v| + \ln|x| = \ln|C|,\] so \[\ln|x\sin v| = \ln|C|,\] giving \[x\sin v = C.\]
  8. Step 8: Substitute back \(v = \frac{y}{x}\) to return to the original variables: \[x\sin\frac{y}{x} = C.\]

Final Answer

The general solution is \[x\sin\frac{y}{x} = C,\] where \(C\) is an arbitrary constant.

Common Mistake

A common mistake is to forget to replace \(\frac{dy}{dx}\) with \(v + x\frac{dv}{dx}\) after substituting \(y = vx\); students often write only \(\frac{dy}{dx} = v\), which is wrong and leads to an incorrect answer.

🪜 Step-by-step Solution

Step-by-step Solution

  1. Step 1: Rewrite the given equation \( x\frac{dy}{dx} = y - x\tan\frac{y}{x} \) by dividing both sides by \( x \): \[ \frac{dy}{dx} = \frac{y}{x} - \tan\frac{y}{x}. \] Reason: Expressing the equation this way reveals that the right-hand side depends only on the ratio \( \frac{y}{x} \), confirming the equation is homogeneous.
  2. Step 2: Introduce the substitution \( y = vx \), where \( v \) is a function of \( x \). Differentiating with respect to \( x \) gives \[ \frac{dy}{dx} = v + x\frac{dv}{dx}. \] Reason: This is the standard substitution for homogeneous equations; it replaces the single dependent variable \( y \) with \( v \), turning the equation into one that can be separated.
  3. Step 3: Substitute \( \frac{y}{x} = v \) and \( \frac{dy}{dx} = v + x\frac{dv}{dx} \) into the rewritten equation: \[ v + x\frac{dv}{dx} = v - \tan v. \] Reason: Replacing every occurrence of \( \frac{y}{x} \) with \( v \) and using the product-rule derivative eliminates \( y \) entirely from the equation.
  4. Step 4: Cancel \( v \) from both sides to obtain \[ x\frac{dv}{dx} = -\tan v. \] Reason: The \( v \) terms on each side are identical and cancel, leaving a simpler equation that is ready to be separated.
  5. Step 5: Separate the variables by bringing all \( v \)-terms to one side and all \( x \)-terms to the other: \[ \cot v \, dv = -\frac{dx}{x}. \] Reason: Dividing both sides by \( \tan v \) and by \( x \) isolates each variable on its own side, which is the necessary form for direct integration.
  6. Step 6: Integrate both sides: \[ \int \cot v \, dv = -\int \frac{dx}{x}, \] giving \[ \ln|\sin v| = -\ln|x| + \ln|C_1|, \] where \( \ln|C_1| \) is the constant of integration written in logarithmic form for convenience. Reason: Using \( \int \cot v \, dv = \ln|\sin v| \) and \( \int \frac{1}{x} \, dx = \ln|x| \), both sides integrate cleanly into logarithms.
  7. Step 7: Combine the logarithms: \[ \ln|\sin v| + \ln|x| = \ln|C_1|, \] which gives \[ \ln|x\sin v| = \ln|C_1|, \] and therefore \[ x\sin v = C. \] Now substitute back \( v = \frac{y}{x} \) to write the solution in terms of the original variables: \[ x\sin\frac{y}{x} = C. \] Reason: Exponentiating both sides removes the logarithms, and back-substitution expresses the answer in terms of \( x \) and \( y \) as required.

Final Answer

The general solution is \[x\sin\frac{y}{x} = C,\] where \(C\) is an arbitrary constant.

Common Mistake

One common mistake: Students often forget to back-substitute \( v = \frac{y}{x} \) at the end, leaving the answer incorrectly expressed in terms of \( v \) instead of the original variables \( x \) and \( y \).

✍️ Exam-ready Answer

Exam-ready Answer

  1. Step 1: Divide by \(x\): \[\frac{dy}{dx} = \frac{y}{x} - \tan\frac{y}{x}\] Put \(y = vx\): \[v + x\frac{dv}{dx} = v - \tan v\]
  2. Step 2: Simplify and separate variables: \[x\frac{dv}{dx} = -\tan v \implies \cot v \, dv = -\frac{dx}{x}\]
  3. Step 3: Integrate both sides: \[\int \cot v \, dv = -\int \frac{dx}{x} \implies \ln|\sin v| = -\ln|x| + \ln|C|\] so \[\ln|\sin v| + \ln|x| = \ln|C| \implies x\sin v = C\]
  4. Step 4: Back-substitute \(v = \frac{y}{x}\): \[x\sin\frac{y}{x} = C\]

Answer: The general solution is \[x\sin\frac{y}{x} = C,\] where \(C\) is an arbitrary constant.

➕ More Examples

More Examples

Example 1

Question: Solve the differential equation: \( x\,\frac{dy}{dx} = y + x\cot\!\left(\frac{y}{x}\right) \)

Solution: Step 1: Rewrite the equation. Divide both sides by \( x \): \[ \frac{dy}{dx} = \frac{y}{x} + \cot\!\left(\frac{y}{x}\right) \] This is a homogeneous equation since the right-hand side is a function of \( \frac{y}{x} \) alone. Step 2: Substitute \( y = vx \). Let \( v = \frac{y}{x} \), so \( y = vx \) and \( \frac{dy}{dx} = v + x\frac{dv}{dx} \). Substituting: \[ v + x\frac{dv}{dx} = v + \cot v \] Step 3: Simplify. Subtract \( v \) from both sides: \[ x\frac{dv}{dx} = \cot v \] Step 4: Separate variables. \[ \frac{dv}{\cot v} = \frac{dx}{x} \] which is the same as \[ \tan v \, dv = \frac{dx}{x} \] Step 5: Integrate both sides. \[ \int \tan v \, dv = \int \frac{dx}{x} \] \[ -\ln|\cos v| = \ln|x| + C_1 \] Step 6: Simplify using logarithm properties. Multiply both sides by \( -1 \): \[ \ln|\cos v| = -\ln|x| + C_2 \] This gives \[ \ln|\cos v| + \ln|x| = C_2 \] \[ \ln|x\cos v| = C_2 \] Exponentiating: \[ x\cos v = C \quad \text{(where } C \text{ is an arbitrary constant)} \] Step 7: Back-substitute \( v = \frac{y}{x} \). \[ x\cos\!\left(\frac{y}{x}\right) = C \]

Answer: \( x\cos\!\left(\dfrac{y}{x}\right) = C \)

Example 2

Question: Solve the differential equation: \( x\,\frac{dy}{dx} = y - x\sin^2\!\left(\frac{y}{x}\right) \)

Solution: Step 1: Rewrite the equation. Divide both sides by \( x \): \[ \frac{dy}{dx} = \frac{y}{x} - \sin^2\!\left(\frac{y}{x}\right) \] The right-hand side is a function of \( \frac{y}{x} \) only, confirming this is a homogeneous equation. Step 2: Substitute \( y = vx \). Let \( v = \frac{y}{x} \), so \( y = vx \) and \( \frac{dy}{dx} = v + x\frac{dv}{dx} \). Substituting: \[ v + x\frac{dv}{dx} = v - \sin^2 v \] Step 3: Simplify. Subtract \( v \) from both sides: \[ x\frac{dv}{dx} = -\sin^2 v \] Step 4: Separate variables. \[ \frac{dv}{\sin^2 v} = -\frac{dx}{x} \] which is the same as \[ \csc^2 v \, dv = -\frac{dx}{x} \] Step 5: Integrate both sides. \[ \int \csc^2 v \, dv = -\int \frac{dx}{x} \] \[ -\cot v = -\ln|x| + C_1 \] Step 6: Rearrange. Multiply through by \( -1 \): \[ \cot v = \ln|x| - C_1 \] Writing \( C = -C_1 \) as an arbitrary constant: \[ \cot v = \ln|x| + C \] Step 7: Back-substitute \( v = \frac{y}{x} \). \[ \cot\!\left(\frac{y}{x}\right) = \ln|x| + C \]

Answer: \( \cot\!\left(\dfrac{y}{x}\right) = \ln|x| + C \)

🎯 Try a Similar Question

Try a Similar Question

Question: Solve the differential equation: \[ x\frac{dy}{dx} = y + x\cot\frac{y}{x} \]

Solution

  1. Step 1: Identify the Type: Rewrite the equation as \( \frac{dy}{dx} = \frac{y}{x} + \cot\frac{y}{x} \). Since the right-hand side depends only on \( \frac{y}{x} \), the equation is homogeneous.
  2. Step 2: Substitute y = vx: Let \( y = vx \), so \( \frac{dy}{dx} = v + x\frac{dv}{dx} \). Substituting into the equation: \[ v + x\frac{dv}{dx} = v + \cot v \]
  3. Step 3: Simplify: The \( v \) terms cancel on both sides, giving: \[ x\frac{dv}{dx} = \cot v \]
  4. Step 4: Separate Variables: Rearranging: \[ \frac{dv}{\cot v} = \frac{dx}{x} \] which can be written as \[ \tan v \, dv = \frac{dx}{x} \]
  5. Step 5: Integrate Both Sides: Integrating both sides: \[ \int \tan v \, dv = \int \frac{dx}{x} \] The left side gives \( \int \tan v \, dv = -\ln|\cos v| + C_1 \), and the right side gives \( \ln|x| + C_2 \). Combining constants: \[ -\ln|\cos v| = \ln|x| + C_1 \]
  6. Step 6: Rearrange the Result: Multiply both sides by \(-1\): \[ \ln|\cos v| = -\ln|x| + \ln|C| \] where \( \ln|C| \) is an arbitrary constant. This gives: \[ \ln|\cos v| = \ln\frac{|C|}{|x|} \] Exponentiating: \[ |\cos v| = \frac{|C|}{|x|} \] Hence: \[ |x\cos v| = |C| \]
  7. Step 7: Back-Substitute v = y/x: Replace \( v \) with \( \frac{y}{x} \) to obtain the general solution: \[ x\cos\frac{y}{x} = C \] where \( C \) is an arbitrary constant.

Answer: The general solution is \[ x\cos\frac{y}{x} = C \] where \( C \) is an arbitrary constant.

Everything you get with Solver7

More questions in Differential Equations

Chapter 9 Examples Q1(i) 65/2/1 2022 / Section A Q1 Chapter 9 Examples Q1(ii) 65/2/2 2023 / Section A Q2 Chapter 9 Examples Q1(iii) 65/2/2 2023 / Section A Q3 Chapter 9 Examples Q2 Chapter 9 Examples Q3 Chapter 9 Examples Q4 Chapter 9 Examples Q5 65/1/1 2023 / Section A Q7 65/2/1 2024 / Section A Q7 65/3/1 2024 / Section A Q7 65/4/1 2022 / Section A Q5 Chapter 9 Examples Q6 65/1/1 2024 / Section A Q8 65/3/1 2023 / Section A Q8 Chapter 9 Examples Q7 65/3/1 2023 / Section A Q9 65/4/2 2024 / Section A Q9 Chapter 9 Examples Q8 65(B) 2026 / Section A Q10 65/4/1 2023 / Section A Q10 Chapter 9 Examples Q9 65(B) 2026 / Section A Q11 65/1/1 2026 / Section A Q11 65/2/1 2022 / Section B Q9 65/4/1 2023 / Section A Q11 Chapter 9 Examples Q10 65/1/1 2026 / Section A Q12 65/4/1 2026 / Section A Q12 Chapter 9 Examples Q11 65/3/1 2026 / Section A Q13 65/4/1 2026 / Section A Q13 65/4/2 2024 / Section A Q13 65/5/1 2026 / Section A Q13 Chapter 9 Examples Q12 65/1/1 2024 / Section A Q14 65/2/1 2024 / Section A Q14 65/5/1 2026 / Section A Q14 Chapter 9 Examples Q13 65/1/1 2023 / Section A Q15 65/2/3 2026 / Section A Q15 Chapter 9 Examples Q14 65/2/3 2026 / Section A Q16 65/4/1 2022 / Section C Q12(a) Chapter 9 Examples Q15 65/4/1 2022 / Section C Q12(b) Chapter 9 Examples Q16 Chapter 9 Examples Q17 65/3/1 2026 / Section A Q19 Chapter 9 Examples Q18 Chapter 9 Miscellaneous Examples Q19 Chapter 9 Miscellaneous Examples Q20 Chapter 9 Miscellaneous Examples Q21 Chapter 9 Miscellaneous Examples Q22 Exercise 9.1 Q1 Exercise 9.1 Q2 Exercise 9.1 Q3 Exercise 9.1 Q4