SOLVER7 Study. Nothing Else.
2026 Board Paper Q29(b)

Find the particular solution of the differential equation \(xy\dfrac{dy}{dx}=(x + 2) (y + 2),\) given that \(y(1)=-1.\)

CBSE Class 12 Maths · Differential Equations

Solution

👶 Simple Explanation

Simple Explanation

Imagine you have a messy room and you want to sort toys on one side and books on the other. This equation is like that — we move all the y-pieces to one side and all the x-pieces to the other side. Once everything is sorted, we add them up using a special maths tool called integration. After adding up both sides, we use a clue — the fact that y equals -1 when x equals 1 — to find the one missing number. That gives us the exact answer.

Answer: The particular solution is \[ y-2\ln|y+2|=x+2\ln|x|-2 \]

📖 Particular Solution of a Variables-Separable Differential Equation

Detailed Explanation

A differential equation is variables separable if we can rearrange it so that all terms in \( y \) (including \( dy \)) are on one side and all terms in \( x \) (including \( dx \)) are on the other side. Here the equation \( xy\dfrac{dy}{dx}=(x+2)(y+2) \) can be reorganised by dividing both sides by \( x(y+2) \). After separating, we integrate each side. Some fractions may need to be split (like \( \dfrac{y}{y+2} \)) so they can be integrated using standard forms. The general solution contains an arbitrary constant \( C \). To get the particular solution we substitute the given initial condition \( y(1)=-1 \) to determine \( C \).

Formula Used

Variables separable form: \( g(y)\,dy = f(x)\,dx \Rightarrow \int g(y)\,dy = \int f(x)\,dx \). Useful integrals: \( \int \dfrac{1}{x}\,dx = \ln|x| \), and \( \int 1\,dx = x \).

Solution

  1. Step 1: Start with the given equation and separate the variables. \[ xy\frac{dy}{dx}=(x+2)(y+2) \] Divide both sides by \( x(y+2) \) to collect \( y \)-terms with \( dy \) and \( x \)-terms with \( dx \). \[ \frac{y}{y+2}\,dy=\frac{x+2}{x}\,dx \]
  2. Step 2: Rewrite each fraction so it can be integrated easily. On the left, \( \dfrac{y}{y+2}=1-\dfrac{2}{y+2} \). On the right, \( \dfrac{x+2}{x}=1+\dfrac{2}{x} \). So the equation becomes \[ \left(1-\frac{2}{y+2}\right)dy=\left(1+\frac{2}{x}\right)dx \]
  3. Step 3: Integrate both sides. \[ \int\left(1-\frac{2}{y+2}\right)dy=\int\left(1+\frac{2}{x}\right)dx \] This gives \[ y-2\ln|y+2|=x+2\ln|x|+C \]
  4. Step 4: This is the general solution. Now apply the initial condition \( y(1)=-1 \), that is, substitute \( x=1 \) and \( y=-1 \). \[ -1-2\ln|-1+2|=1+2\ln|1|+C \] Since \( \ln 1=0 \), both logarithm terms vanish. \[ -1-0=1+0+C \]
  5. Step 5: Solve for the constant \( C \). \[ -1=1+C \Rightarrow C=-2 \]
  6. Step 6: Substitute \( C=-2 \) back into the general solution to obtain the particular solution. \[ y-2\ln|y+2|=x+2\ln|x|-2 \]

Final Answer

The particular solution is \[ y-2\ln|y+2|=x+2\ln|x|-2 \]

Common Mistake

A very common error is trying to integrate \( \dfrac{y}{y+2} \) or \( \dfrac{x+2}{x} \) directly as \( \ln \) forms without first splitting them into \( 1-\dfrac{2}{y+2} \) and \( 1+\dfrac{2}{x} \). Forgetting this splitting step leads to a wrong integral.

🪜 Step-by-step Solution

Step-by-step Solution

  1. Step 1: Write down the given equation and plan the separation: The given differential equation is \[xy\frac{dy}{dx} = (x+2)(y+2)\] Reason: Identifying the equation form first helps us decide the method — here both sides are products, so dividing strategically will separate the variables.
  2. Step 2: Separate the variables: Divide both sides by \( x(y+2) \) to move all \( y \)-terms to the left and all \( x \)-terms to the right: \[\frac{y}{y+2}\,dy = \frac{x+2}{x}\,dx\] Reason: Dividing by \( x(y+2) \) isolates \( y \) and \( dy \) on one side and \( x \) and \( dx \) on the other, which is the essence of the variables separable technique.
  3. Step 3: Decompose each fraction using algebraic manipulation: Rewrite the left-hand fraction: \[\frac{y}{y+2} = 1 - \frac{2}{y+2}\] Rewrite the right-hand fraction: \[\frac{x+2}{x} = 1 + \frac{2}{x}\] So the separated equation becomes \[\left(1 - \frac{2}{y+2}\right)dy = \left(1 + \frac{2}{x}\right)dx\] Reason: Standard integral formulas apply only to simple fractions of the form \( \frac{1}{\text{linear}} \), so splitting each fraction into simpler parts makes integration straightforward.
  4. Step 4: Integrate both sides: Integrating the left side: \[\int\left(1 - \frac{2}{y+2}\right)dy = y - 2\ln|y+2|\] Integrating the right side: \[\int\left(1 + \frac{2}{x}\right)dx = x + 2\ln|x|\] Combining, the general solution is \[y - 2\ln|y+2| = x + 2\ln|x| + C\] Reason: Integrating both sides simultaneously is valid because each side is now purely a function of one variable.
  5. Step 5: Apply the initial condition \( y(1) = -1 \) to find \( C \): Substitute \( x = 1 \) and \( y = -1 \) into the general solution: \[(-1) - 2\ln|-1+2| = (1) + 2\ln|1| + C\] Simplifying, since \( \ln|1| = 0 \) and \( \ln|1| = 0 \): \[-1 - 2\ln 1 = 1 + 0 + C\] \[-1 - 0 = 1 + C\] \[C = -2\] Reason: The initial condition pins down the unique particular solution from the family of general solutions by determining the constant \( C \).
  6. Step 6: Write the particular solution: Substitute \( C = -2 \) back into the general solution: \[y - 2\ln|y+2| = x + 2\ln|x| - 2\] Reason: Replacing \( C \) with its computed value gives the unique curve that satisfies both the differential equation and the given initial condition.

Final Answer

The particular solution is \[ y-2\ln|y+2|=x+2\ln|x|-2 \]

Common Mistake

One common mistake: Students often forget to decompose \( \frac{y}{y+2} \) and \( \frac{x+2}{x} \) into simpler parts before integrating, and instead attempt to integrate these compound fractions directly — this leads to incorrect results. Always split such fractions first using the identity \( \frac{a+b}{b} = \frac{a}{b} + 1 \) or polynomial long division before integrating.

✍️ Exam-ready Answer

Exam-ready Answer

  1. Step 1: Separate variables by dividing both sides by \( x(y+2) \): \[ \frac{y}{y+2}\,dy = \frac{x+2}{x}\,dx \]
  2. Step 2: Rewrite each fraction: \( \dfrac{y}{y+2} = 1 - \dfrac{2}{y+2} \) and \( \dfrac{x+2}{x} = 1 + \dfrac{2}{x} \), then integrate both sides: \[ y - 2\ln|y+2| = x + 2\ln|x| + C \]
  3. Step 3: Apply initial condition \( y(1) = -1 \): \[ -1 - 2\ln|{-1+2}| = 1 + 2\ln|1| + C \] giving \( -1 - 0 = 1 + 0 + C \), so \( C = -2 \).

Answer: The particular solution is \[ y-2\ln|y+2|=x+2\ln|x|-2 \]

➕ More Examples

More Examples

Example 1

Question: Find the particular solution of the differential equation \[ x(y+3)\frac{dy}{dx} = (x+1)y \] given that \( y(2) = 3 \).

Solution: Step 1: Separate the variables. Rearrange to bring all y-terms to the left and all x-terms to the right. \[ x(y+3)\,dy = (x+1)y\,dx \] Divide both sides by \( xy \): \[ \frac{y+3}{y}\,dy = \frac{x+1}{x}\,dx \] This simplifies to: \[ \left(1 + \frac{3}{y}\right)dy = \left(1 + \frac{1}{x}\right)dx \] Step 2: Integrate both sides. \[ \int\left(1 + \frac{3}{y}\right)dy = \int\left(1 + \frac{1}{x}\right)dx \] \[ y + 3\ln|y| = x + \ln|x| + C \] Step 3: Apply the initial condition \( y(2) = 3 \), i.e., \( x = 2,\, y = 3 \). \[ 3 + 3\ln 3 = 2 + \ln 2 + C \] \[ C = 1 + 3\ln 3 - \ln 2 \] Step 4: Substitute C back to get the particular solution. \[ y + 3\ln|y| = x + \ln|x| + 1 + 3\ln 3 - \ln 2 \] This can be rewritten as: \[ y - x - 1 = \ln|x| - 3\ln|y| + 3\ln 3 - \ln 2 \] Or equivalently: \[ y + 3\ln|y| = x + \ln|x| + 1 + \ln\left(\frac{27}{2}\right) \]

Answer: \( y + 3\ln|y| = x + \ln|x| + 1 + \ln\left(\dfrac{27}{2}\right) \)

Example 2

Question: Find the particular solution of the differential equation \[ (x-1)(y+2)\frac{dy}{dx} = xy \] given that \( y(2) = 2 \).

Solution: Step 1: Separate the variables. Rearrange to bring all y-terms to one side and all x-terms to the other. \[ (x-1)(y+2)\,dy = xy\,dx \] Divide both sides by \( y(x-1) \): \[ \frac{y+2}{y}\,dy = \frac{x}{x-1}\,dx \] This simplifies to: \[ \left(1 + \frac{2}{y}\right)dy = \left(1 + \frac{1}{x-1}\right)dx \] Step 2: Integrate both sides. \[ \int\left(1 + \frac{2}{y}\right)dy = \int\left(1 + \frac{1}{x-1}\right)dx \] \[ y + 2\ln|y| = x + \ln|x-1| + C \] Step 3: Apply the initial condition \( y(2) = 2 \), i.e., \( x = 2,\, y = 2 \). \[ 2 + 2\ln 2 = 2 + \ln|2-1| + C \] \[ 2 + 2\ln 2 = 2 + \ln 1 + C \] Since \( \ln 1 = 0 \): \[ C = 2\ln 2 \] Step 4: Substitute C back to get the particular solution. \[ y + 2\ln|y| = x + \ln|x-1| + 2\ln 2 \] This can also be written as: \[ y + 2\ln|y| = x + \ln|x-1| + \ln 4 \] Or equivalently: \[ y + \ln(y^2) = x + \ln\left(4|x-1|\right) \]

Answer: \( y + 2\ln|y| = x + \ln|x-1| + \ln 4 \)

🎯 Try a Similar Question

Try a Similar Question

Question: Find the particular solution of the differential equation \( xy\dfrac{dy}{dx} = (x+3)(y+3) \), given that \( y(1) = -2 \).

Solution

  1. Step 1: Separate the Variables: Rewrite the equation by separating terms involving \( y \) on the left and terms involving \( x \) on the right. Starting from \( xy\,\frac{dy}{dx} = (x+3)(y+3) \), divide both sides by \( (y+3) \) and by \( x \): \[ \frac{y}{y+3}\,dy = \frac{x+3}{x}\,dx \]
  2. Step 2: Simplify Using Partial Fractions / Algebraic Manipulation: Rewrite each side using algebraic identities. For the left side: \[ \frac{y}{y+3} = 1 - \frac{3}{y+3} \] For the right side: \[ \frac{x+3}{x} = 1 + \frac{3}{x} \] So the equation becomes: \[ \left(1 - \frac{3}{y+3}\right)dy = \left(1 + \frac{3}{x}\right)dx \]
  3. Step 3: Integrate Both Sides: Integrate the left side with respect to \( y \) and the right side with respect to \( x \): \[ \int \left(1 - \frac{3}{y+3}\right)dy = \int \left(1 + \frac{3}{x}\right)dx \] Left side: \[ y - 3\ln|y+3| \] Right side: \[ x + 3\ln|x| \] So the general solution is: \[ y - 3\ln|y+3| = x + 3\ln|x| + C \]
  4. Step 4: Apply the Initial Condition: Use the condition \( y(1) = -2 \), i.e., when \( x = 1 \), \( y = -2 \). Substitute into the general solution: \[ -2 - 3\ln|-2+3| = 1 + 3\ln|1| + C \] Since \( \ln 1 = 0 \) and \( \ln|-2+3| = \ln 1 = 0 \): \[ -2 - 0 = 1 + 0 + C \] So \( C = -3 \).
  5. Step 5: Write the Particular Solution: Substitute \( C = -3 \) back into the general solution: \[ y - 3\ln|y+3| = x + 3\ln|x| - 3 \]

Answer: The particular solution is \[ y - 3\ln|y+3| = x + 3\ln|x| - 3 \]

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