SOLVER7 Study. Nothing Else.
Chapter 9 Examples Q11

Show that the differential equation \(x\ cos \left(\dfrac{y}{x}\right)\dfrac{dy}{dx}=y\ cos\left(\dfrac{y}{x}\right)+x\) is homogeneous and solve it.

CBSE Class 12 Maths · Differential Equations

Solution

👶 Simple Explanation

Simple Explanation

Imagine a recipe that works the same way no matter how big or small your batch is. Some differential equations are like that — if you scale every ingredient (both x and y) by the same amount, the equation looks identical. We call these homogeneous equations. A clever trick is to swap the ingredient ratio \( \frac{y}{x} \) with a single new letter, making a complicated mix suddenly very easy to separate and solve. After solving, we swap back to get the final answer.

Answer: The equation is homogeneous, and its general solution is \[ \sin\left(\frac{y}{x}\right) = \ln|x| + C, \] where \( C \) is an arbitrary constant.

📖 Homogeneous Differential Equation: Full Explanation and Solution

Detailed Explanation

A first-order differential equation of the form \( \frac{dy}{dx} = F(x, y) \) is called homogeneous if \( F(x, y) \) can be written entirely as a function of \( \frac{y}{x} \). In other words, replacing \( x \) by \( \lambda x \) and \( y \) by \( \lambda y \) should leave \( F(x, y) \) unchanged. To solve such equations, we use the substitution \( y = vx \), which converts the equation into a variables-separable form in \( v \) and \( x \). This works because after substitution, everything depending on \( \frac{y}{x} \) becomes a function of \( v \) only, allowing us to separate the variables and integrate.

Formula Used

Substitution for homogeneous equations: \( y = vx \) so that \( \frac{dy}{dx} = v + x\frac{dv}{dx} \). Useful integral: \( \int \sec v \, dv = \ln|\sec v + \tan v| + C \).

Solution

  1. Step 1: Write the equation in the form \( \frac{dy}{dx} = F(x, y) \). Dividing both sides of the given equation by \( x\cos\left(\frac{y}{x}\right) \), we get \[ \frac{dy}{dx} = \frac{y\cos\left(\frac{y}{x}\right) + x}{x\cos\left(\frac{y}{x}\right)}. \]
  2. Step 2: Check homogeneity. Replace \( x \) by \( \lambda x \) and \( y \) by \( \lambda y \): \[ F(\lambda x, \lambda y) = \frac{\lambda y\cos\left(\frac{\lambda y}{\lambda x}\right) + \lambda x}{\lambda x\cos\left(\frac{\lambda y}{\lambda x}\right)}. \] Since \( \frac{\lambda y}{\lambda x} = \frac{y}{x} \), the \( \lambda \) factors cancel and we get \( F(\lambda x, \lambda y) = F(x, y) \). Hence the equation is homogeneous.
  3. Step 3: Use the substitution \( y = vx \). Then \[ \frac{dy}{dx} = v + x\frac{dv}{dx}. \] Also \( \frac{y}{x} = v \), so the equation becomes \[ v + x\frac{dv}{dx} = \frac{vx\cos v + x}{x\cos v}. \]
  4. Step 4: Simplify the right-hand side. Cancel \( x \) in the numerator and denominator: \[ v + x\frac{dv}{dx} = \frac{v\cos v + 1}{\cos v} = v + \frac{1}{\cos v}. \] Subtract \( v \) from both sides: \[ x\frac{dv}{dx} = \frac{1}{\cos v} = \sec v. \]
  5. Step 5: Separate the variables. Divide both sides so that all \( v \) terms are on one side and all \( x \) terms on the other: \[ \cos v \, dv = \frac{dx}{x}. \]
  6. Step 6: Integrate both sides. \[ \int \cos v \, dv = \int \frac{dx}{x}. \] This gives \[ \sin v = \ln|x| + C. \]
  7. Step 7: Substitute back \( v = \frac{y}{x} \) to return to the original variables: \[ \sin\left(\frac{y}{x}\right) = \ln|x| + C. \]

Final Answer

The equation is homogeneous, and its general solution is \[ \sin\left(\frac{y}{x}\right) = \ln|x| + C, \] where \( C \) is an arbitrary constant.

Common Mistake

A common mistake is to forget that after substituting \( y = vx \), the derivative becomes \( \frac{dy}{dx} = v + x\frac{dv}{dx} \), not just \( \frac{dv}{dx} \). Another frequent error is omitting the arbitrary constant \( C \) after integrating.

🪜 Step-by-step Solution

Step-by-step Solution

  1. Step 1: Rewrite in the form dy/dx = F(x, y): Starting from the given equation, divide both sides by \( x\cos\!\left(\frac{y}{x}\right) \) to isolate \( \frac{dy}{dx} \): \[ \frac{dy}{dx} = \frac{y\cos\\!\left(\frac{y}{x}\right) + x}{x\cos\\!\left(\frac{y}{x}\right)} \] \nReason: We need the equation in the standard form so we can examine whether the right-hand side depends only on the ratio \( \frac{y}{x} \).
  2. Step 2: Verify the equation is homogeneous: Replace \( x \) with \( \lambda x \) and \( y \) with \( \lambda y \) in \( F(x,y) \): \[ F(\lambda x,\\, \lambda y) = \frac{\lambda y\cos\\!\left(\frac{\lambda y}{\lambda x}\right) + \lambda x}{\lambda x\cos\\!\left(\frac{\lambda y}{\lambda x}\right)} \] \nSince \( \frac{\lambda y}{\lambda x} = \frac{y}{x} \), the factor \( \lambda \) cancels completely, giving \( F(\lambda x, \lambda y) = F(x, y) \). Reason: This confirms the equation is homogeneous, which means the substitution \( y = vx \) will reduce it to a separable form.
  3. Step 3: Apply the substitution y = vx: Let \( y = vx \), so \( \frac{dy}{dx} = v + x\frac{dv}{dx} \). Substitute into the equation: \[ v + x\frac{dv}{dx} = \frac{vx\cos(v) + x}{x\cos(v)} \] \nSimplify the right-hand side: \[ v + x\frac{dv}{dx} = \frac{v\cos(v) + 1}{\cos(v)} \] \nReason: The substitution replaces \( \frac{y}{x} \) everywhere with the single variable \( v \), making the equation easier to separate.
  4. Step 4: Simplify and separate the variables: Subtract \( v \) from both sides: \[ x\frac{dv}{dx} = \frac{v\cos(v) + 1}{\cos(v)} - v \] \nWrite \( v = \frac{v\cos(v)}{\cos(v)} \) and subtract: \[ x\frac{dv}{dx} = \frac{v\cos(v) + 1 - v\cos(v)}{\cos(v)} = \frac{1}{\cos(v)} \] \nNow separate variables by multiplying both sides by \( \cos(v)\\,dv \) and dividing by \( x \): \[ \cos(v)\\, dv = \frac{dx}{x} \] \nReason: Separating the variables puts all terms involving \( v \) on one side and all terms involving \( x \) on the other, so both sides can be integrated independently.
  5. Step 5: Integrate both sides: Integrate the left side with respect to \( v \) and the right side with respect to \( x \): \[ \int \cos(v)\\, dv = \int \frac{1}{x}\\, dx \] \nThis gives: \[ \sin(v) = \ln|x| + C \] \nReason: Standard integration formulas are applied: \( \int \cos(v)\\,dv = \sin(v) \) and \( \int \frac{1}{x}\\,dx = \ln|x| \), with \( C \) as the constant of integration.
  6. Step 6: Back-substitute v = y/x to get the general solution: Replace \( v \) with \( \frac{y}{x} \) in the result: \[ \sin\\!\left(\frac{y}{x}\right) = \ln|x| + C \] \nReason: We must express the answer in terms of the original variables \( x \) and \( y \), since \( v \) was only an intermediate substitution variable.

Final Answer

The equation is homogeneous, and its general solution is \[ \sin\left(\frac{y}{x}\right) = \ln|x| + C, \] where \( C \) is an arbitrary constant.

Common Mistake

One common mistake: forgetting to subtract \( v \) from both sides after substituting \( y = vx \), which leads to an incorrect simplified form and a wrong separable equation.

✍️ Exam-ready Answer

Exam-ready Answer

  1. Step 1: Rewrite: \[ \frac{dy}{dx} = \frac{y\cos\left(\frac{y}{x}\right) + x}{x\cos\left(\frac{y}{x}\right)} \] Equation is homogeneous. Substitute \( y = vx \), giving \( v + x\frac{dv}{dx} = \frac{vx\cos(v) + x}{x\cos(v)} = v + \sec v \)
  2. Step 2: Simplify: \[ x\frac{dv}{dx} = \sec v \] Separate variables: \[ \cos v \, dv = \frac{dx}{x} \]
  3. Step 3: Integrate both sides: \[ \int \cos v \, dv = \int \frac{dx}{x} \] giving \[ \sin v = \ln|x| + C \]
  4. Step 4: Replace \( v = \frac{y}{x} \): \[ \sin\left(\frac{y}{x}\right) = \ln|x| + C \]

Answer: The equation is homogeneous, and its general solution is \[ \sin\left(\frac{y}{x}\right) = \ln|x| + C, \] where \( C \) is an arbitrary constant.

➕ More Examples

More Examples

Example 1

Question: Show that the differential equation \( x \sin\left(\frac{y}{x}\right)\frac{dy}{dx} = y \sin\left(\frac{y}{x}\right) - x \) is homogeneous and solve it.

Solution: Step 1: Rewrite in the form dy/dx = F(x, y). We have \[ \frac{dy}{dx} = \frac{y\sin\left(\frac{y}{x}\right) - x}{x\sin\left(\frac{y}{x}\right)} \] Let \( F(x,y) = \dfrac{y\sin\left(\frac{y}{x}\right) - x}{x\sin\left(\frac{y}{x}\right)} \). Step 2: Check homogeneity by replacing x with tx and y with ty. \[ F(tx, ty) = \frac{ty\sin\left(\frac{ty}{tx}\right) - tx}{tx\sin\left(\frac{ty}{tx}\right)} = \frac{t\left(y\sin\left(\frac{y}{x}\right) - x\right)}{tx\sin\left(\frac{y}{x}\right)} = F(x,y) \] Since \( F(tx, ty) = t^0 F(x,y) = F(x,y) \), the equation is homogeneous of degree 0. Step 3: Substitute \( y = vx \), so \( \frac{dy}{dx} = v + x\frac{dv}{dx} \). \[ v + x\frac{dv}{dx} = \frac{vx\sin(v) - x}{x\sin(v)} = \frac{v\sin(v) - 1}{\sin(v)} \] Step 4: Simplify. \[ x\frac{dv}{dx} = \frac{v\sin(v) - 1}{\sin(v)} - v = \frac{v\sin(v) - 1 - v\sin(v)}{\sin(v)} = \frac{-1}{\sin(v)} \] Step 5: Separate variables. \[ \sin(v)\, dv = \frac{-dx}{x} \] Step 6: Integrate both sides. \[ \int \sin(v)\, dv = -\int \frac{dx}{x} \] \[ -\cos(v) = -\ln|x| + C_1 \] Step 7: Replace \( v = \frac{y}{x} \). \[ -\cos\left(\frac{y}{x}\right) = -\ln|x| + C_1 \] Multiplying through by \(-1\): \[ \cos\left(\frac{y}{x}\right) = \ln|x| - C_1 \] Writing \( -C_1 = C \) (arbitrary constant): \[ \cos\left(\frac{y}{x}\right) = \ln|x| + C \]

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

Example 2

Question: Show that the differential equation \( \left(x e^{y/x} + y\right)dx = x\, dy \) is homogeneous and solve it.

Solution: Step 1: Rewrite as dy/dx = F(x, y). \[ x\, dy = \left(x e^{y/x} + y\right)dx \] \[ \frac{dy}{dx} = \frac{x e^{y/x} + y}{x} = e^{y/x} + \frac{y}{x} \] Let \( F(x,y) = e^{y/x} + \dfrac{y}{x} \). Step 2: Check homogeneity. \[ F(tx, ty) = e^{ty/(tx)} + \frac{ty}{tx} = e^{y/x} + \frac{y}{x} = F(x,y) \] Since \( F(tx,ty) = t^0 F(x,y) \), the equation is homogeneous of degree 0. Step 3: Substitute \( y = vx \), so \( \frac{dy}{dx} = v + x\frac{dv}{dx} \). \[ v + x\frac{dv}{dx} = e^{v} + v \] Step 4: Simplify. \[ x\frac{dv}{dx} = e^{v} \] Step 5: Separate variables. \[ e^{-v}\, dv = \frac{dx}{x} \] Step 6: Integrate both sides. \[ \int e^{-v}\, dv = \int \frac{dx}{x} \] \[ -e^{-v} = \ln|x| + C \] Step 7: Replace \( v = \frac{y}{x} \). \[ -e^{-y/x} = \ln|x| + C \] This can also be written as: \[ e^{-y/x} + \ln|x| + C = 0 \] or equivalently: \[ -e^{-y/x} = \ln|x| + C \]

Answer: \( -e^{-y/x} = \ln|x| + C \)

🎯 Try a Similar Question

Try a Similar Question

Question: Show that the differential equation \( x \sin\!\left(\frac{y}{x}\right)\frac{dy}{dx} = y \sin\!\left(\frac{y}{x}\right) - x \) is homogeneous and solve it.

Solution

  1. Step 1 – Rewrite in the form dy/dx = F(x, y): Dividing both sides by \( x \sin\!\left(\frac{y}{x}\right) \) (assuming it is non-zero): \[ \frac{dy}{dx} = \frac{y \sin\!\left(\frac{y}{x}\right) - x}{x \sin\!\left(\frac{y}{x}\right)} = \frac{y}{x} - \frac{1}{\sin\!\left(\frac{y}{x}\right)} \] The right-hand side depends only on the ratio \( \frac{y}{x} \), so the equation is homogeneous.
  2. Step 2 – Substitute y = vx: Let \( v = \frac{y}{x} \), i.e. \( y = vx \). Then \( \frac{dy}{dx} = v + x\frac{dv}{dx} \). Substituting: \[ v + x\frac{dv}{dx} = v - \frac{1}{\sin v} \]
  3. Step 3 – Simplify to separable form: Subtracting \( v \) from both sides: \[ x\frac{dv}{dx} = -\frac{1}{\sin v} \] Separating variables (multiply both sides by \( \sin v \) and divide by \( x \)): \[ \sin v \, dv = -\frac{dx}{x} \]
  4. Step 4 – Integrate both sides: Integrating the left side: \[ \int \sin v \, dv = -\cos v + C_1 \] Integrating the right side: \[ -\int \frac{dx}{x} = -\ln|x| + C_2 \] Combining constants \( C = C_2 - C_1 \): \[ -\cos v = -\ln|x| + C \]
  5. Step 5 – Back-substitute v = y/x: Replacing \( v \) with \( \frac{y}{x} \): \[ -\cos\!\left(\frac{y}{x}\right) = -\ln|x| + C \] Multiplying through by \( -1 \) and rewriting (absorbing the sign into the arbitrary constant \( C \)): \[ \cos\!\left(\frac{y}{x}\right) = \ln|x| + C \] This is the general solution.

Answer: The equation is homogeneous, and its general solution is \[ \cos\!\left(\frac{y}{x}\right) = \ln|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 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 65/3/1 2023 / Section C Q26(a)