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

Solve the following differential equation :
\(x\dfrac{dy}{dx}=y-x\ sin^2\left(\dfrac{y}{x}\right),\) given that \(y(1) =\dfrac{\pi}{6}.\)

CBSE Class 12 Maths · Differential Equations

Solution

👶 Simple Explanation

Simple Explanation

Imagine a differential equation is like a puzzle where both the pieces and the board are made of the same shape. When the equation only cares about the ratio of two things, like how tall you are compared to your shadow, we call it homogeneous. We swap out one variable for a simpler helper, which untangles the puzzle into two separate easy parts. Each part gets solved on its own side, like sorting red and blue marbles into different jars. A special starting clue tells us exactly which solution fits best.

Answer: The particular solution is \[\cot\left(\frac{y}{x}\right) = \ln|x| + \sqrt{3}.\]

📖 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}\). For such equations we use the substitution \(y = vx\), where \(v\) is a new function of \(x\). This converts the equation into one whose variables \(v\) and \(x\) can be separated. After separating, we integrate both sides, replace \(v\) by \(\frac{y}{x}\), and finally use the given condition \(y(1) = \frac{\pi}{6}\) to fix the constant of integration.

Formula Used

Substitution for a homogeneous equation: \(y = vx\) so that \(\frac{dy}{dx} = v + x\frac{dv}{dx}\). Useful integral: \(\int \csc^2 v \, dv = -\cot v + C\).

Solution

  1. Step 1: Rewrite the given equation in the standard form. Starting from \(x\frac{dy}{dx} = y - x\sin^2\left(\frac{y}{x}\right)\), divide throughout by \(x\): \[\frac{dy}{dx} = \frac{y}{x} - \sin^2\left(\frac{y}{x}\right).\] The right side depends only on \(\frac{y}{x}\), so the equation is homogeneous.
  2. Step 2: Use the substitution \(y = vx\). Then \[\frac{dy}{dx} = v + x\frac{dv}{dx}.\] Substitute this into the equation to get \[v + x\frac{dv}{dx} = v - \sin^2 v.\]
  3. Step 3: Cancel \(v\) from both sides, which simplifies the equation: \[x\frac{dv}{dx} = -\sin^2 v.\] This is now a variables-separable equation.
  4. Step 4: Separate the variables by dividing by \(\sin^2 v\) and by \(x\): \[\frac{dv}{\sin^2 v} = -\frac{dx}{x}.\] Rewrite \(\frac{1}{\sin^2 v}\) as \(\csc^2 v\): \[\csc^2 v \, dv = -\frac{dx}{x}.\]
  5. Step 5: Integrate both sides. Using \(\int \csc^2 v \, dv = -\cot v\) and \(\int \frac{dx}{x} = \ln|x|\): \[-\cot v = -\ln|x| + C.\] Multiply through by \(-1\): \[\cot v = \ln|x| + C_1,\] where \(C_1 = -C\) is a constant.
  6. Step 6: Replace \(v\) by \(\frac{y}{x}\) to return to the original variables: \[\cot\left(\frac{y}{x}\right) = \ln|x| + C_1.\]
  7. Step 7: Apply the initial condition \(y(1) = \frac{\pi}{6}\). Put \(x = 1\) and \(y = \frac{\pi}{6}\), so \(\frac{y}{x} = \frac{\pi}{6}\): \[\cot\left(\frac{\pi}{6}\right) = \ln 1 + C_1.\] Since \(\cot\frac{\pi}{6} = \sqrt{3}\) and \(\ln 1 = 0\), we get \(C_1 = \sqrt{3}\).
  8. Step 8: Substitute the value of \(C_1\) back to obtain the particular solution: \[\cot\left(\frac{y}{x}\right) = \ln|x| + \sqrt{3}.\]

Final Answer

The particular solution is \[\cot\left(\frac{y}{x}\right) = \ln|x| + \sqrt{3}.\]

Common Mistake

A common mistake is forgetting that after substituting \(y = vx\), the derivative becomes \(\frac{dy}{dx} = v + x\frac{dv}{dx}\) (using the product rule), and instead writing only \(x\frac{dv}{dx}\). Missing the extra \(v\) term leads to a wrong equation and an incorrect solution.

🪜 Step-by-step Solution

Step-by-step Solution

  1. Step 1: Divide both sides of \( x\frac{dy}{dx} = y - x\sin^2\!\left(\frac{y}{x}\right) \) by \( x \) to isolate \( \frac{dy}{dx} \): \[ \frac{dy}{dx} = \frac{y}{x} - \sin^2\!\left(\frac{y}{x}\right). \] Reason: Writing 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 \), so that \( \frac{dy}{dx} = v + x\frac{dv}{dx} \). Substitute into the equation: \[ v + x\frac{dv}{dx} = v - \sin^2 v. \] Reason: Replacing \( y \) with \( vx \) converts the single equation in two unknowns into one involving only \( v \) and \( x \), which is easier to handle.
  3. Step 3: Subtract \( v \) from both sides to simplify: \[ x\frac{dv}{dx} = -\sin^2 v. \] Reason: The \( v \) terms cancel on each side, leaving a much simpler relationship between \( v \) and \( x \) that is now in separable form.
  4. Step 4: Separate the variables by dividing both sides by \( \sin^2 v \) and by \( x \): \[ \frac{dv}{\sin^2 v} = -\frac{dx}{x}. \] Rewriting using the cosecant, this becomes \[ \csc^2 v \, dv = -\frac{dx}{x}. \] Reason: Separating \( v \)-terms to one side and \( x \)-terms to the other allows us to integrate each side independently.
  5. Step 5: Integrate both sides: \[ \int \csc^2 v \, dv = -\int \frac{dx}{x}, \] which gives \[ -\cot v = -\ln|x| + C, \] or equivalently \[ \cot v = \ln|x| - C. \] Writing the arbitrary constant as \( -C = K \) (absorbing the sign), we get \[ \cot v = \ln|x| + K. \] Reason: Standard integration formulas are applied; the constant of integration will be fixed using the initial condition.
  6. Step 6: Replace \( v \) by \( \frac{y}{x} \) to return to the original variables: \[ \cot\!\left(\frac{y}{x}\right) = \ln|x| + K. \] Reason: The substitution \( v = \frac{y}{x} \) must be undone so the solution is expressed in terms of the original variables \( x \) and \( y \).
  7. Step 7: Apply the initial condition \( y = \frac{\pi}{6} \) when \( x = 1 \). Substituting into \( \cot\!\left(\frac{y}{x}\right) = \ln|x| + K \): \[ \cot\!\left(\frac{\pi/6}{1}\right) = \ln|1| + K. \] Since \( \cot\!\left(\frac{\pi}{6}\right) = \sqrt{3} \) and \( \ln 1 = 0 \), we get \( K = \sqrt{3} \). Reason: The initial condition pins down the unique value of the constant, turning the general solution into the required particular solution.

Final Answer

The particular solution is \[\cot\left(\frac{y}{x}\right) = \ln|x| + \sqrt{3}.\]

Common Mistake

One common mistake: Students forget to substitute back \( v = \frac{y}{x} \) after integrating, leaving the answer in terms of \( v \) instead of the original variables \( x \) and \( y \), which makes the solution incomplete.

✍️ Exam-ready Answer

Exam-ready Answer

  1. Step 1: Divide by \( x \): \[\frac{dy}{dx} = \frac{y}{x} - \sin^2\!\left(\frac{y}{x}\right).\] Substitute \( y = vx \), so \( \frac{dy}{dx} = v + x\frac{dv}{dx} \), giving \[v + x\frac{dv}{dx} = v - \sin^2 v.\]
  2. Step 2: Cancel \( v \) and separate variables: \[\frac{dv}{\sin^2 v} = -\frac{dx}{x},\] i.e., \[\csc^2 v \, dv = -\frac{dx}{x}.\]
  3. Step 3: Integrate both sides: \[-\cot v = -\ln|x| + C,\] so \[\cot\!\left(\frac{y}{x}\right) = \ln|x| + C.\]
  4. Step 4: Apply \( y(1) = \frac{\pi}{6} \): \( v = \frac{\pi/6}{1} = \frac{\pi}{6} \), so \( \cot\!\left(\frac{\pi}{6}\right) = \ln 1 + C \), giving \( C = \sqrt{3} \).

Answer: The particular solution is \[\cot\left(\frac{y}{x}\right) = \ln|x| + \sqrt{3}.\]

➕ More Examples

More Examples

Example 1

Question: Solve the differential equation \( x\frac{dy}{dx} = y - x\cos^{2}\!\left(\frac{y}{x}\right) \), given that \( y(1) = \frac{\pi}{4} \).

Solution: Step 1: Rewrite the equation. The given equation is \[ x\frac{dy}{dx} = y - x\cos^{2}\!\left(\frac{y}{x}\right). \] Dividing both sides by \( x \): \[ \frac{dy}{dx} = \frac{y}{x} - \cos^{2}\!\left(\frac{y}{x}\right). \] This is a homogeneous equation since the right-hand side depends only on \( \frac{y}{x} \). Step 2: Substitute \( y = vx \), so \( \frac{dy}{dx} = v + x\frac{dv}{dx} \). The equation becomes \[ v + x\frac{dv}{dx} = v - \cos^{2}(v). \] Simplifying: \[ x\frac{dv}{dx} = -\cos^{2}(v). \] Step 3: Separate variables. \[ \frac{dv}{\cos^{2}(v)} = -\frac{dx}{x}. \] This can be written as \[ \sec^{2}(v)\, dv = -\frac{dx}{x}. \] Step 4: Integrate both sides. \[ \int \sec^{2}(v)\, dv = -\int \frac{dx}{x}. \] \[ \tan(v) = -\ln|x| + C. \] Step 5: Back-substitute \( v = \frac{y}{x} \). \[ \tan\!\left(\frac{y}{x}\right) = -\ln|x| + C. \] Step 6: Apply the initial condition \( y(1) = \frac{\pi}{4} \), i.e., when \( x = 1 \), \( y = \frac{\pi}{4} \). \[ \tan\!\left(\frac{\pi/4}{1}\right) = -\ln(1) + C. \] \[ \tan\!\left(\frac{\pi}{4}\right) = 0 + C. \] \[ 1 = C. \] Step 7: Write the particular solution. \[ \tan\!\left(\frac{y}{x}\right) = 1 - \ln|x|. \]

Answer: \( \tan\!\left(\dfrac{y}{x}\right) = 1 - \ln|x| \)

Example 2

Question: Solve the differential equation \( x\frac{dy}{dx} = y + x\tan\!\left(\frac{y}{x}\right) \), given that \( y(1) = \frac{\pi}{6} \).

Solution: Step 1: Rewrite the equation. The given equation is \[ x\frac{dy}{dx} = y + x\tan\!\left(\frac{y}{x}\right). \] Dividing both sides by \( x \): \[ \frac{dy}{dx} = \frac{y}{x} + \tan\!\left(\frac{y}{x}\right). \] This is homogeneous since the right-hand side depends only on \( \frac{y}{x} \). Step 2: Substitute \( y = vx \), so \( \frac{dy}{dx} = v + x\frac{dv}{dx} \). The equation becomes \[ v + x\frac{dv}{dx} = v + \tan(v). \] Simplifying: \[ x\frac{dv}{dx} = \tan(v). \] Step 3: Separate variables. \[ \frac{dv}{\tan(v)} = \frac{dx}{x}. \] Writing \( \frac{1}{\tan(v)} = \cot(v) \): \[ \cot(v)\, dv = \frac{dx}{x}. \] Step 4: Integrate both sides. \[ \int \cot(v)\, dv = \int \frac{dx}{x}. \] \[ \ln|\sin(v)| = \ln|x| + \ln|C_1|. \] Using logarithm properties: \[ \ln|\sin(v)| = \ln|C_1 x|. \] Therefore \[ \sin(v) = C_1 x. \] Step 5: Back-substitute \( v = \frac{y}{x} \). \[ \sin\!\left(\frac{y}{x}\right) = C_1 x. \] Step 6: Apply the initial condition \( y(1) = \frac{\pi}{6} \), i.e., when \( x = 1 \), \( y = \frac{\pi}{6} \). \[ \sin\!\left(\frac{\pi/6}{1}\right) = C_1 \cdot 1. \] \[ \sin\!\left(\frac{\pi}{6}\right) = C_1. \] \[ C_1 = \frac{1}{2}. \] Step 7: Write the particular solution. \[ \sin\!\left(\frac{y}{x}\right) = \frac{x}{2}. \]

Answer: \( \sin\!\left(\dfrac{y}{x}\right) = \dfrac{x}{2} \)

🎯 Try a Similar Question

Try a Similar Question

Question: Solve the following differential equation: \[ x\frac{dy}{dx} = y - x\cos^2\!\left(\frac{y}{x}\right), \] given that \( y(1) = \frac{\pi}{4} \).

Solution

  1. Step 1: Rewrite the equation: Dividing both sides by \( x \): \[ \frac{dy}{dx} = \frac{y}{x} - \cos^2\!\left(\frac{y}{x}\right). \] This is a homogeneous equation since the right-hand side depends only on \( \frac{y}{x} \).
  2. Step 2: Substitute \( v = \frac{y}{x} \): Let \( v = \frac{y}{x} \), so \( y = vx \). Differentiating: \[ \frac{dy}{dx} = v + x\frac{dv}{dx}. \] Substituting into the equation: \[ v + x\frac{dv}{dx} = v - \cos^2 v. \]
  3. Step 3: Simplify and separate variables: Subtracting \( v \) from both sides: \[ x\frac{dv}{dx} = -\cos^2 v. \] Separating variables: \[ \frac{dv}{\cos^2 v} = -\frac{dx}{x}. \] This can be written as: \[ \sec^2 v \, dv = -\frac{dx}{x}. \]
  4. Step 4: Integrate both sides: Integrating both sides: \[ \int \sec^2 v \, dv = -\int \frac{dx}{x}. \] This gives: \[ \tan v = -\ln|x| + C. \]
  5. Step 5: Substitute back \( v = \frac{y}{x} \): Replacing \( v \) with \( \frac{y}{x} \): \[ \tan\!\left(\frac{y}{x}\right) = -\ln|x| + C. \]
  6. Step 6: Apply the initial condition \( y(1) = \frac{\pi}{4} \): Substituting \( x = 1 \) and \( y = \frac{\pi}{4} \): \[ \tan\!\left(\frac{\pi/4}{1}\right) = -\ln|1| + C. \] Since \( \tan\!\left(\frac{\pi}{4}\right) = 1 \) and \( \ln 1 = 0 \): \[ 1 = 0 + C \implies C = 1. \]
  7. Step 7: Write the particular solution: Substituting \( C = 1 \) back: \[ \tan\!\left(\frac{y}{x}\right) = 1 - \ln|x|. \] This is the required particular solution.

Answer: The particular solution is \[ \tan\!\left(\frac{y}{x}\right) = 1 - \ln|x|. \]

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