SOLVER7 Study. Nothing Else.
2024 Board Paper Q29

Find the particular solution of the differential equation given by \(x^2\dfrac{dy}{dx}-xy=x^2\ cos^2\left(\dfrac{y}{2x}\right),\) given that when \( x = 1, \ y =\dfrac{\pi}{2}.\)

CBSE Class 12 Maths · Differential Equations

Solution

👶 Simple Explanation

Simple Explanation

Imagine a recipe where all the ingredients scale together perfectly. This equation is like that — everything depends on the ratio of two quantities, not on them separately. We make a clever swap to simplify the problem, like converting a tricky recipe into a simpler one. After solving, we use a known value to find the exact answer. The final relationship between the two quantities turns out to be neat and clean.

Answer: \[2\tan\left(\frac{y}{2x}\right) = \ln|x| + 2\]

📖 Particular Solution of a Homogeneous Differential Equation

Detailed Explanation

A first-order differential equation is called homogeneous if it can be written as \(\dfrac{dy}{dx} = F\left(\dfrac{y}{x}\right)\), that is, the right-hand side depends only on the ratio \(\dfrac{y}{x}\). Such equations are solved by the substitution \(y = vx\), which converts them into a variables-separable equation in \(v\) and \(x\). Here, after dividing the given equation by \(x^2\), every term on the right depends only on \(\dfrac{y}{x}\), so it is homogeneous. Once we get the general solution, we use the given condition \(x = 1, \ y = \dfrac{\pi}{2}\) to evaluate the constant \(C\) and obtain the particular solution.

Formula Used

Substitution: \( y = vx \Rightarrow \dfrac{dy}{dx} = v + x\dfrac{dv}{dx} \). Useful integral: \( \int \sec^2 u \, du = \tan u + C \).

Solution

  1. Step 1: Start with the given equation and simplify. Divide throughout by \(x^2\): \[x^2\frac{dy}{dx} - xy = x^2 \cos^2\left(\frac{y}{2x}\right)\] gives \[\frac{dy}{dx} - \frac{y}{x} = \cos^2\left(\frac{y}{2x}\right).\] So \[\frac{dy}{dx} = \frac{y}{x} + \cos^2\left(\frac{y}{2x}\right).\] The right side depends only on \(\frac{y}{x}\), so the equation is homogeneous.
  2. Step 2: Use the substitution for homogeneous equations. Put \[y = vx \quad \Rightarrow \quad \frac{dy}{dx} = v + x\frac{dv}{dx}.\] Note that \(\frac{y}{2x} = \frac{v}{2}\), so \(\cos^2\left(\frac{y}{2x}\right) = \cos^2\left(\frac{v}{2}\right).\)
  3. Step 3: Substitute into the equation. \[v + x\frac{dv}{dx} = v + \cos^2\left(\frac{v}{2}\right).\] The \(v\) terms cancel: \[x\frac{dv}{dx} = \cos^2\left(\frac{v}{2}\right).\]
  4. Step 4: Separate the variables. Divide both sides by \(\cos^2\left(\frac{v}{2}\right)\) and by \(x\): \[\frac{dv}{\cos^2\left(\frac{v}{2}\right)} = \frac{dx}{x}.\] This can be written as \[\sec^2\left(\frac{v}{2}\right)\, dv = \frac{dx}{x}.\]
  5. Step 5: Integrate both sides. For the left side, let \(u = \frac{v}{2}\) so \(dv = 2\,du\): \[\int \sec^2\left(\frac{v}{2}\right) dv = 2\tan\left(\frac{v}{2}\right).\] Therefore \[2\tan\left(\frac{v}{2}\right) = \ln|x| + C.\]
  6. Step 6: Return to the original variable. Since \(v = \frac{y}{x}\), we have \(\frac{v}{2} = \frac{y}{2x}\), so the general solution is \[2\tan\left(\frac{y}{2x}\right) = \ln|x| + C.\]
  7. Step 7: Apply the initial condition \(x = 1, \ y = \frac{\pi}{2}\). Then \(\frac{y}{2x} = \frac{\pi/2}{2} = \frac{\pi}{4}\), and \(\tan\frac{\pi}{4} = 1\), \(\ln 1 = 0\): \[2(1) = 0 + C \quad \Rightarrow \quad C = 2.\]
  8. Step 8: Write the particular solution by substituting \(C = 2\): \[2\tan\left(\frac{y}{2x}\right) = \ln|x| + 2.\]

Final Answer

\[2\tan\left(\frac{y}{2x}\right) = \ln|x| + 2\]

Common Mistake

A common mistake is forgetting the factor of 2 when integrating \(\sec^2\left(\frac{v}{2}\right)\). Since the angle is \(\frac{v}{2}\), the integral is \(2\tan\left(\frac{v}{2}\right)\), not \(\tan\left(\frac{v}{2}\right)\). Missing this factor leads to a wrong value of the constant \(C\).

🪜 Step-by-step Solution

Step-by-step Solution

  1. Step 1: Divide the given equation \( x^2\frac{dy}{dx} - xy = x^2\cos^2\!\left(\frac{y}{2x}\right) \) throughout by \( x^2 \) to get \[ \frac{dy}{dx} - \frac{y}{x} = \cos^2\!\left(\frac{y}{2x}\right), \] which rearranges to \[ \frac{dy}{dx} = \frac{y}{x} + \cos^2\!\left(\frac{y}{2x}\right). \] Reason: Dividing by \( x^2 \) reveals that the entire 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} \). Also note that \( \frac{y}{2x} = \frac{vx}{2x} = \frac{v}{2} \), so \( \cos^2\!\left(\frac{y}{2x}\right) = \cos^2\!\left(\frac{v}{2}\right) \). Reason: Replacing \( y \) with \( vx \) converts the homogeneous equation into one involving only \( v \) and \( x \), which can then be separated.
  3. Step 3: Substitute into the equation from Step 1: \[ v + x\frac{dv}{dx} = v + \cos^2\!\left(\frac{v}{2}\right). \] The \( v \) terms on both sides cancel, leaving \[ x\frac{dv}{dx} = \cos^2\!\left(\frac{v}{2}\right). \] Reason: Cancellation of \( v \) isolates the derivative term, making variable separation straightforward.
  4. Step 4: Separate variables by writing \[ \frac{dv}{\cos^2\!\left(\frac{v}{2}\right)} = \frac{dx}{x}, \] which is the same as \[ \sec^2\!\left(\frac{v}{2}\right) \, dv = \frac{dx}{x}. \] Reason: Placing all \( v \)-terms on the left and all \( x \)-terms on the right allows direct integration of both sides independently.
  5. Step 5: Integrate both sides. For the left side, use \( \int \sec^2\!\left(\frac{v}{2}\right) dv = 2\tan\!\left(\frac{v}{2}\right) + C_1 \) (the factor of 2 arises from the chain rule). For the right side, \( \int \frac{dx}{x} = \ln|x| + C_2 \). Combining constants gives the general solution \[ 2\tan\!\left(\frac{v}{2}\right) = \ln|x| + C. \] Reason: Integration is the core operation that produces the general solution containing the arbitrary constant \( C \).
  6. Step 6: Replace \( v \) with \( \frac{y}{x} \) (since \( v = \frac{y}{x} \)) to express the solution in original variables: \[ 2\tan\!\left(\frac{y}{2x}\right) = \ln|x| + C. \] Reason: The substitution \( y = vx \) was introduced temporarily; reverting back gives the solution in terms of the original variables \( x \) and \( y \).
  7. Step 7: Apply the initial condition \( x = 1 \), \( y = \frac{\pi}{2} \) to find \( C \). Substituting gives \[ 2\tan\!\left(\frac{\pi/2}{2 \cdot 1}\right) = \ln|1| + C, \] so \[ 2\tan\!\left(\frac{\pi}{4}\right) = 0 + C. \] Since \( \tan\!\left(\frac{\pi}{4}\right) = 1 \), we get \( C = 2 \). Reason: The particular solution satisfying the given boundary condition is obtained by evaluating \( C \) from the known point on the solution curve.
  8. Step 8: Substitute \( C = 2 \) back into the general solution to write the particular solution: \[ 2\tan\!\left(\frac{y}{2x}\right) = \ln|x| + 2. \] Reason: This is the unique solution that passes through the point \( \left(1,\, \frac{\pi}{2}\right) \) and satisfies the given differential equation.

Final Answer

\[2\tan\left(\frac{y}{2x}\right) = \ln|x| + 2\]

Common Mistake

One common mistake: When integrating \( \int \sec^2\!\left(\frac{v}{2}\right) dv \), students forget to apply the chain rule compensation and write \( \tan\!\left(\frac{v}{2}\right) \) instead of the correct \( 2\tan\!\left(\frac{v}{2}\right) \), which leads to an incorrect general solution and a wrong value of \( C \).

✍️ Exam-ready Answer

Exam-ready Answer

  1. Step 1: Divide by \(x^2\): \[\frac{dy}{dx} = \frac{y}{x} + \cos^2\!\left(\frac{y}{2x}\right)\] Substitute \(y = vx\), so \(\frac{dy}{dx} = v + x\frac{dv}{dx}\) and \(\frac{y}{2x} = \frac{v}{2}\).
  2. Step 2: After substitution: \[v + x\frac{dv}{dx} = v + \cos^2\!\left(\frac{v}{2}\right)\] Simplify and separate variables: \[\sec^2\!\left(\frac{v}{2}\right) dv = \frac{dx}{x}\]
  3. Step 3: Integrate both sides: \[2\tan\!\left(\frac{v}{2}\right) = \ln|x| + C\] Back-substitute \(v = \frac{y}{x}\): \[2\tan\!\left(\frac{y}{2x}\right) = \ln|x| + C\] Apply \(x = 1,\ y = \frac{\pi}{2}\): \(2\tan\!\left(\frac{\pi}{4}\right) = \ln 1 + C \Rightarrow C = 2\).

Answer: \[2\tan\left(\frac{y}{2x}\right) = \ln|x| + 2\]

➕ More Examples

More Examples

Example 1

Question: Find the particular solution of the differential equation \[ x^2 \frac{dy}{dx} - xy = x^2 \sin^2\!\left(\frac{y}{2x}\right), \] given that when \( x = 1 \), \( y = \pi \).

Solution: Step 1: Rewrite the equation. Dividing both sides by \( x^2 \): \[ \frac{dy}{dx} - \frac{y}{x} = \sin^2\!\left(\frac{y}{2x}\right). \] Step 2: Use the homogeneous substitution \( y = vx \), so \( \frac{dy}{dx} = v + x\frac{dv}{dx} \). Substituting: \[ v + x\frac{dv}{dx} - v = \sin^2\!\left(\frac{v}{2}\right). \] This simplifies to \[ x\frac{dv}{dx} = \sin^2\!\left(\frac{v}{2}\right). \] Step 3: Separate variables: \[ \frac{dv}{\sin^2\!\left(\dfrac{v}{2}\right)} = \frac{dx}{x}. \] Note that \( \frac{1}{\sin^2(v/2)} = \csc^2\!\left(\frac{v}{2}\right) \). Integrating both sides: \[ \int \csc^2\!\left(\frac{v}{2}\right) dv = \int \frac{dx}{x}. \] Step 4: Evaluate the left integral. Let \( u = \frac{v}{2} \), so \( dv = 2\,du \): \[ 2\int \csc^2(u)\,du = -2\cot(u) + C = -2\cot\!\left(\frac{v}{2}\right) + C. \] Therefore: \[ -2\cot\!\left(\frac{v}{2}\right) = \ln|x| + C. \] Step 5: Replace \( v = \frac{y}{x} \): \[ -2\cot\!\left(\frac{y}{2x}\right) = \ln|x| + C. \] Step 6: Apply the initial condition \( x = 1, y = \pi \): \[ -2\cot\!\left(\frac{\pi}{2}\right) = \ln(1) + C. \] Since \( \cot\!\left(\frac{\pi}{2}\right) = 0 \) and \( \ln(1) = 0 \), we get \( C = 0 \). Step 7: The particular solution is \[ -2\cot\!\left(\frac{y}{2x}\right) = \ln|x|. \] This can also be written as \[ 2\cot\!\left(\frac{y}{2x}\right) + \ln|x| = 0. \]

Answer: \[ 2\cot\!\left(\frac{y}{2x}\right) + \ln|x| = 0 \]

Example 2

Question: Find the particular solution of the differential equation \[ x^2\frac{dy}{dx} = xy + x^2\tan\!\left(\frac{y}{x}\right), \] given that when \( x = 1 \), \( y = 0 \).

Solution: Step 1: Rewrite by dividing both sides by \( x^2 \): \[ \frac{dy}{dx} = \frac{y}{x} + \tan\!\left(\frac{y}{x}\right). \] Step 2: Use the substitution \( y = vx \), so \( \frac{dy}{dx} = v + x\frac{dv}{dx} \). Substituting: \[ v + x\frac{dv}{dx} = v + \tan(v). \] This simplifies to \[ x\frac{dv}{dx} = \tan(v). \] Step 3: Separate variables: \[ \frac{dv}{\tan(v)} = \frac{dx}{x}, \] which is equivalent to \[ \cot(v)\,dv = \frac{dx}{x}. \] Step 4: Integrate both sides: \[ \int \cot(v)\,dv = \int \frac{dx}{x}. \] \[ \ln|\sin(v)| = \ln|x| + C. \] Step 5: Replace \( v = \frac{y}{x} \): \[ \ln\!\left|\sin\!\left(\frac{y}{x}\right)\right| = \ln|x| + C. \] Step 6: Apply the initial condition \( x = 1, y = 0 \). Note \( \sin(0) = 0 \), so \( \ln|\sin(0)| \) is undefined. We revisit by writing the general solution in exponential form before applying the condition. Exponentiating: \[ \left|\sin\!\left(\frac{y}{x}\right)\right| = e^C \cdot |x|, \] so \[ \sin\!\left(\frac{y}{x}\right) = Ax \] where \( A \) is a constant. Applying \( x = 1, y = 0 \): \[ \sin(0) = A \cdot 1 \Rightarrow A = 0. \] Step 7: The particular solution is \[ \sin\!\left(\frac{y}{x}\right) = 0, \] which means \( \frac{y}{x} = n\pi \) for integer \( n \). The solution branch passing through \( (1, 0) \) with \( n = 0 \) gives \[ y = 0. \] Checking: if \( y = 0 \), then \( \frac{dy}{dx} = 0 \) and the right side equals \( 0 + \tan(0) = 0 \). The solution is consistent. The particular solution is \[ y = 0. \]

Answer: \[ y = 0 \]

🎯 Try a Similar Question

Try a Similar Question

Question: Find the particular solution of the differential equation \[ x^2 \frac{dy}{dx} - xy = x^2 \sec^2\!\left(\frac{y}{x}\right), \] given that when \( x = 1 \), \( y = 0 \).

Solution

  1. Step 1: Rewrite the equation: Divide both sides of the equation by \( x^2 \) (assuming \( x \ne 0 \)): \[ \frac{dy}{dx} - \frac{y}{x} = \sec^2\!\left(\frac{y}{x}\right). \]
  2. Step 2: Substitute \( v = \dfrac{y}{x} \): Let \( v = \dfrac{y}{x} \), so \( y = vx \). Differentiating with respect to \( x \): \[ \frac{dy}{dx} = v + x\frac{dv}{dx}. \] Substituting into the equation: \[ v + x\frac{dv}{dx} - v = \sec^2(v). \] This simplifies to: \[ x\frac{dv}{dx} = \sec^2(v). \]
  3. Step 3: Separate the variables: Separate \( v \) and \( x \): \[ \frac{dv}{\sec^2(v)} = \frac{dx}{x}. \] This is the same as: \[ \cos^2(v) \, dv = \frac{dx}{x}. \] Using the identity \( \cos^2(v) = \dfrac{1 + \cos(2v)}{2} \): \[ \frac{1 + \cos(2v)}{2} \, dv = \frac{dx}{x}. \]
  4. Step 4: Integrate both sides: Integrating both sides: \[ \int \frac{1 + \cos(2v)}{2} \, dv = \int \frac{dx}{x}. \] Left side: \[ \frac{v}{2} + \frac{\sin(2v)}{4} = \ln|x| + C. \]
  5. Step 5: Back-substitute \( v = \dfrac{y}{x} \): Replace \( v \) with \( \dfrac{y}{x} \): \[ \frac{y}{2x} + \frac{\sin\!\left(\dfrac{2y}{x}\right)}{4} = \ln|x| + C. \]
  6. Step 6: Apply the initial condition \( x = 1, y = 0 \): Substituting \( x = 1 \) and \( y = 0 \): \[ \frac{0}{2} + \frac{\sin(0)}{4} = \ln|1| + C. \] Since \( \ln 1 = 0 \) and \( \sin 0 = 0 \), we get \( C = 0 \).
  7. Step 7: Write the particular solution: The particular solution is: \[ \frac{y}{2x} + \frac{\sin\!\left(\dfrac{2y}{x}\right)}{4} = \ln|x|. \] Multiplying through by 4: \[ \frac{2y}{x} + \sin\!\left(\frac{2y}{x}\right) = 4\ln|x|. \]

Answer: \[ \frac{2y}{x} + \sin\!\left(\frac{2y}{x}\right) = 4\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