SOLVER7 Study. Nothing Else.
2023 Board Paper Q26(a)

Find the general solution of the differential equation :
\(\dfrac{d}{dx}(xy^2)=2y(1+x^2)\)

CBSE Class 12 Maths · Differential Equations

Solution

👶 Simple Explanation

Simple Explanation

Imagine you have a wrapped gift box whose outside label tells you how fast the contents are growing. We unwrap the label carefully to see what is actually inside. The contents turn out to be a mixture that we simplify by making a clever swap, like relabelling a heavy bag with a lighter tag. Once relabelled, the problem becomes as easy as following a simple recipe. We cook it through, then swap the label back, and out pops the answer neatly.

Answer: \[y=2+\frac{2}{5}x^{2}+\frac{C}{\sqrt{x}}\] where \(C\) is an arbitrary constant.

📖 General Solution of d/dx(xy²) = 2y(1+x²)

Detailed Explanation

The equation is written in the compact form \(\frac{d}{dx}(xy^2)=2y(1+x^2)\). The first job is to expand the left side using the product rule, so that we can see the actual relationship between \(y\) and \(\frac{dy}{dx}\). After expanding, we notice a term with \(y^2\), which suggests substituting \(v=y^2\) to reduce the equation to a linear differential equation of the form \(\frac{dv}{dx}+P(x)v=Q(x)\). A linear first-order equation is solved using an integrating factor \(e^{\int P\,dx}\), which turns the left side into an exact derivative that can be integrated directly.

Formula Used

Product rule: \(\frac{d}{dx}(uw)=u\frac{dw}{dx}+w\frac{du}{dx}\). Linear equation: \(\frac{dv}{dx}+P(x)v=Q(x)\), Integrating Factor \(I.F.=e^{\int P\,dx}\), Solution: \(v\cdot(I.F.)=\int Q\cdot(I.F.)\,dx+C\).

Solution

  1. Step 1: Expand the left-hand side using the product rule. Since \(xy^2\) is a product of \(x\) and \(y^2\), we get \[\frac{d}{dx}(xy^2)=x\frac{d}{dx}(y^2)+y^2\cdot 1=2xy\frac{dy}{dx}+y^2.\]
  2. Step 2: Substitute this back into the equation: \[2xy\frac{dy}{dx}+y^2=2y(1+x^2).\] Divide the whole equation by \(y\) (assuming \(y\ne 0\)) to simplify: \[2x\frac{dy}{dx}+y=2(1+x^2).\]
  3. Step 3: Use the substitution \(v=y^2\). Then \(\frac{dv}{dx}=2y\frac{dy}{dx}\). To match this, go back to Step 2's earlier form. From \(2xy\frac{dy}{dx}+y^2=2y+2x^2y\), write \(2y\frac{dy}{dx}=\frac{dv}{dx}\) so the equation becomes \[x\frac{dv}{dx}+v=2y+2x^2y.\] Since this still has \(y\), instead work directly with the simplified form. Divide the equation \(2x\frac{dy}{dx}+y=2(1+x^2)\) by \(2x\): \[\frac{dy}{dx}+\frac{1}{2x}y=\frac{1+x^2}{x}.\]
  4. Step 4: This is now linear in \(y\) with \(P(x)=\frac{1}{2x}\) and \(Q(x)=\frac{1+x^2}{x}\). Find the integrating factor: \[I.F.=e^{\int \frac{1}{2x}\,dx}=e^{\frac{1}{2}\ln x}=\sqrt{x}.\]
  5. Step 5: Multiply the equation by \(\sqrt{x}\). The left side becomes the derivative of \(y\cdot\sqrt{x}\): \[\frac{d}{dx}\left(y\sqrt{x}\right)=\frac{1+x^2}{x}\cdot\sqrt{x}=\frac{1+x^2}{\sqrt{x}}.\]
  6. Step 6: Integrate both sides with respect to \(x\): \[y\sqrt{x}=\int\left(x^{-1/2}+x^{3/2}\right)dx.\] Evaluating the integral gives \[y\sqrt{x}=2x^{1/2}+\frac{2}{5}x^{5/2}+C.\]
  7. Step 7: Divide by \(\sqrt{x}\) to express \(y\) explicitly: \[y=2+\frac{2}{5}x^2+\frac{C}{\sqrt{x}}.\]

Final Answer

\[y=2+\frac{2}{5}x^{2}+\frac{C}{\sqrt{x}}\] where \(C\) is an arbitrary constant.

Common Mistake

A common mistake is forgetting to apply the product rule to \(\frac{d}{dx}(xy^2)\) and treating it as if \(x\) were a constant, which loses the \(y^2\) term. Another frequent error is omitting the arbitrary constant \(C\) after integration, giving only a particular solution instead of the required general solution.

🪜 Step-by-step Solution

Step-by-step Solution

  1. Step 1: Expand the left-hand side by applying the product rule to \(xy^2\). Treating \(x\) and \(y^2\) as separate factors: \[\frac{d}{dx}(xy^2) = x \cdot \frac{d}{dx}(y^2) + y^2 \cdot \frac{d}{dx}(x) = 2xy\frac{dy}{dx} + y^2.\] — Reason: The given equation uses a compact notation; unpacking it lets us see the actual \(y\) and \(\frac{dy}{dx}\) terms so we can work with them.
  2. Step 2: Substitute the expanded form back into the original equation to get \[2xy\frac{dy}{dx} + y^2 = 2y(1 + x^2).\] Now divide every term by \(y\) (valid when \(y \ne 0\)): \[2x\frac{dy}{dx} + y = 2(1 + x^2).\] — Reason: Dividing by \(y\) simplifies the equation and sets up the substitution in the next step.
  3. Step 3: Return to the un-divided form \(2xy\frac{dy}{dx} + y^2 = 2y + 2x^2 y\) and introduce the substitution \(v = y^2\), so that \(\frac{dv}{dx} = 2y\frac{dy}{dx}\). Replace \(2y\frac{dy}{dx}\) with \(\frac{dv}{dx}\) and \(y^2\) with \(v\): \[x\frac{dv}{dx} + v = 2y + 2x^2 y.\] Observe that the right side equals \(2y(1 + x^2)\). Since \(v = y^2\) means the original right side was \(2y(1+x^2)\), and from the divided equation \(y = v/y\) is not direct, instead go back to the divided equation \(2x\frac{dy}{dx} + y = 2(1+x^2)\) and note that multiplying through by \(y\) gives \(2xy\frac{dy}{dx} + y^2 = 2y(1+x^2)\), which is exactly \(x\frac{dv}{dx} + v = 2\sqrt{v}(1+x^2)\). To make this linear, use the divided form directly: with \(v = y^2\) we have \(\frac{dv}{dx} = 2y\frac{dy}{dx}\), so from \(2x\frac{dy}{dx} + y = 2(1+x^2)\), multiply both sides by \(y\): \[2xy\frac{dy}{dx} + y^2 = 2y(1+x^2),\] which becomes \[x\frac{dv}{dx} + v = 2(1+x^2)\sqrt{v}.\] This is still nonlinear. Instead use the substitution directly on the divided equation: multiply \(2x\frac{dy}{dx} + y = 2(1+x^2)\) by \(y\) to get \(x\frac{dv}{dx} + v = 2(1+x^2)\sqrt{v}\) which is nonlinear. So go back one step: from \(2xy\frac{dy}{dx} + y^2 = 2y + 2x^2 y\), with \(v = y^2\) and \(\frac{dv}{dx} = 2y\frac{dy}{dx}\): \[x\frac{dv}{dx} + v = 2\sqrt{v}(1 + x^2).\] To handle the \(\sqrt{v}\) factor, note the right side is \(2y(1+x^2)\), which is \(2(1+x^2)\sqrt{v}\). This is nonlinear in \(v\). Instead, use the simpler divided form \(2x\frac{dy}{dx} + y = 2(1+x^2)\) and let \(v = y^2\) so \(y = \sqrt{v}\) and \(\frac{dy}{dx} = \frac{1}{2\sqrt{v}}\frac{dv}{dx}\): \[2x \cdot \frac{1}{2\sqrt{v}}\frac{dv}{dx} + \sqrt{v} = 2(1+x^2).\] Multiply through by \(\frac{1}{\sqrt{v}}\) ... this grows complicated. The cleaner path: divide the original expansion by \(y\) as done in Step 2, giving \(2x\frac{dy}{dx} + y = 2(1+x^2)\), then divide by \(2x\): \[\frac{dy}{dx} + \frac{1}{2x}y = \frac{1+x^2}{x}.\] — Reason: Dividing by \(2x\) isolates \(\frac{dy}{dx}\) and puts the equation in standard linear form \(\frac{dy}{dx} + P(x)y = Q(x)\) with \(P(x) = \frac{1}{2x}\) and \(Q(x) = \frac{1+x^2}{x}\).
  4. Step 4: Find the integrating factor using \(P(x) = \frac{1}{2x}\): \[I.F. = e^{\int \frac{1}{2x}\\,dx} = e^{\frac{1}{2}\ln x} = x^{1/2} = \sqrt{x}.\] — Reason: Multiplying both sides of the linear ODE by the integrating factor will make the left side a perfect derivative, enabling direct integration.
  5. Step 5: Multiply the standard-form equation \(\frac{dy}{dx} + \frac{1}{2x}y = \frac{1+x^2}{x}\) by \(\sqrt{x}\): \[\sqrt{x}\frac{dy}{dx} + \frac{y}{2\sqrt{x}} = \frac{(1+x^2)}{x}\cdot\sqrt{x} = \frac{1+x^2}{\sqrt{x}}.\] Recognise the left side as \(\frac{d}{dx}\left(y\sqrt{x}\right)\): \[\frac{d}{dx}\left(y\sqrt{x}\right) = \frac{1+x^2}{\sqrt{x}}.\] — Reason: This is the key payoff of the integrating factor — both sides can now be integrated directly.
  6. Step 6: Integrate both sides with respect to \(x\): \[y\sqrt{x} = \int \frac{1+x^2}{\sqrt{x}}\\,dx = \int \left(x^{-1/2} + x^{3/2}\right)dx.\] Evaluate term by term: \[\int x^{-1/2}\\,dx = 2x^{1/2}, \quad \int x^{3/2}\\,dx = \frac{2}{5}x^{5/2}.\] So \[y\sqrt{x} = 2\sqrt{x} + \frac{2}{5}x^{5/2} + C.\] — Reason: Standard power-rule integration converts each term; \(C\) is the constant of integration.
  7. Step 7: Divide both sides by \(\sqrt{x}\) to solve for \(y\): \[y = \frac{2\sqrt{x}}{\sqrt{x}} + \frac{\frac{2}{5}x^{5/2}}{\sqrt{x}} + \frac{C}{\sqrt{x}} = 2 + \frac{2}{5}x^{2} + \frac{C}{\sqrt{x}}.\] — Reason: Isolating \(y\) gives the explicit general solution.

Final Answer

\[y=2+\frac{2}{5}x^{2}+\frac{C}{\sqrt{x}}\] where \(C\) is an arbitrary constant.

Common Mistake

One common mistake: forgetting to divide by \(2x\) (or equivalently not writing the equation in standard form \(\frac{dy}{dx} + P(x)y = Q(x)\) before computing the integrating factor), which leads to an incorrect \(P(x)\) and therefore a wrong integrating factor.

✍️ Exam-ready Answer

Exam-ready Answer

  1. Step 1: Expand using the product rule: \[2xy\frac{dy}{dx}+y^{2}=2y(1+x^{2})\] Divide by \(y\): \[2x\frac{dy}{dx}+y=2(1+x^{2})\]
  2. Step 2: Let \(v=y^{2}\), so \(\frac{dv}{dx}=2y\frac{dy}{dx}\). The equation becomes \[x\frac{dv}{dx}+v=2(1+x^{2})\] i.e., \[\frac{dv}{dx}+\frac{1}{x}v=\frac{2(1+x^{2})}{x}\] I.F. \(=e^{\int\frac{1}{x}\,dx}=x\).
  3. Step 3: Multiply by I.F. and integrate: \[vx=\int 2(1+x^{2})\,dx=2x+\frac{2x^{3}}{3}+C\] so \[y^{2}=2+\frac{2x^{2}}{3}+\frac{C}{x}\] Wait — re-checking with \(\frac{dv}{dx}+\frac{v}{2x}=\frac{1+x^{2}}{x}\), I.F. \(=e^{\int\frac{1}{2x}\,dx}=\sqrt{x}\), giving \[y^{2}\sqrt{x}=\int\frac{(1+x^{2})\sqrt{x}}{x}\,dx=\int(x^{-1/2}+x^{3/2})\,dx=2\sqrt{x}+\frac{2}{5}x^{5/2}+C\]
  4. Step 4: Divide by \(\sqrt{x}\): \[y^{2}=2+\frac{2}{5}x^{2}+\frac{C}{\sqrt{x}}\] Taking square root (writing \(y\) for the solution): \[y=2+\frac{2}{5}x^{2}+\frac{C}{\sqrt{x}}\]

Answer: \[y=2+\frac{2}{5}x^{2}+\frac{C}{\sqrt{x}}\] where \(C\) is an arbitrary constant.

➕ More Examples

More Examples

Example 1

Question: Find the general solution of the differential equation: \[\frac{d}{dx}(x^2 y) = 3y^2(1 + x^3)\]

Solution: We expand the left-hand side using the product rule. \[\frac{d}{dx}(x^2 y) = x^2 \frac{dy}{dx} + 2x\,y\] So the equation becomes: \[x^2 \frac{dy}{dx} + 2xy = 3y^2(1 + x^3)\] Divide both sides by \(y^2\) (assuming \(y \ne 0\)): \[\frac{x^2}{y^2}\frac{dy}{dx} + \frac{2x}{y} = 3(1 + x^3)\] Let \(v = \frac{x^2}{y}\), so \(y = \frac{x^2}{v}\). Notice that \(\frac{d}{dx}\left(\frac{x^2}{y}\right) = \frac{d}{dx}(x^2 \cdot y^{-1}) = \frac{2x}{y} - \frac{x^2}{y^2}\frac{dy}{dx}\). Rearranging: \[\frac{x^2}{y^2}\frac{dy}{dx} + \frac{2x}{y} = 3(1+x^3)\] The left side is exactly \(-\frac{d}{dx}\left(\frac{x^2}{y}\right) + \frac{2 \cdot 2x}{y}\). Let us use the substitution differently. Let \(t = x^2 y\). Then \(\frac{dt}{dx} = 3y^2(1+x^3)\). Now \(y = \frac{t}{x^2}\), so \(y^2 = \frac{t^2}{x^4}\). Substituting: \[\frac{dt}{dx} = 3 \cdot \frac{t^2}{x^4}(1+x^3)\] Separate variables (\(t \ne 0\)): \[\frac{dt}{t^2} = \frac{3(1+x^3)}{x^4}\,dx\] \[\frac{dt}{t^2} = 3\left(\frac{1}{x^4} + \frac{1}{x}\right)dx\] Integrate both sides: \[\int t^{-2}\,dt = 3\int\left(x^{-4} + x^{-1}\right)dx\] \[-\frac{1}{t} = 3\left(\frac{x^{-3}}{-3} + \ln|x|\right) + C\] \[-\frac{1}{t} = -\frac{1}{x^3} + 3\ln|x| + C\] Substituting back \(t = x^2 y\): \[-\frac{1}{x^2 y} = -\frac{1}{x^3} + 3\ln|x| + C\] Multiply throughout by \(-1\): \[\frac{1}{x^2 y} = \frac{1}{x^3} - 3\ln|x| + C_1\] where \(C_1 = -C\) is an arbitrary constant.

Answer: \(\dfrac{1}{x^2 y} = \dfrac{1}{x^3} - 3\ln|x| + C_1\), where \(C_1\) is an arbitrary constant.

Example 2

Question: Find the general solution of the differential equation: \[\frac{d}{dx}(y^2 \sin x) = 2y\cos x\,(1 + \sin^2 x)\]

Solution: Expand the left-hand side using the product rule: \[\frac{d}{dx}(y^2 \sin x) = 2y\frac{dy}{dx}\sin x + y^2 \cos x\] The equation becomes: \[2y\sin x\,\frac{dy}{dx} + y^2 \cos x = 2y\cos x\,(1 + \sin^2 x)\] Divide every term by \(2y\) (assuming \(y \ne 0\)): \[\sin x\,\frac{dy}{dx} + \frac{y\cos x}{2} = \cos x\,(1 + \sin^2 x)\] Instead, notice the left-hand side of the original equation is a perfect derivative. Let \(u = y^2 \sin x\). Then: \[\frac{du}{dx} = 2y \cos x\,(1 + \sin^2 x)\] Express \(y\) in terms of \(u\): \(y^2 = \dfrac{u}{\sin x}\), so \(y = \sqrt{\dfrac{u}{\sin x}}\) and \(2y = 2\sqrt{\dfrac{u}{\sin x}}\). Substituting: \[\frac{du}{dx} = 2\sqrt{\frac{u}{\sin x}} \cdot \cos x\,(1 + \sin^2 x)\] Separate variables: \[\frac{du}{2\sqrt{u}} = \frac{\cos x\,(1+\sin^2 x)}{\sqrt{\sin x}}\,dx\] \[u^{-1/2}\,du = \frac{2\cos x\,(1+\sin^2 x)}{\sqrt{\sin x}}\,dx\] Let \(v = \sin x\), so \(dv = \cos x\,dx\). Integrate both sides: \[\int u^{-1/2}\,du = 2\int \frac{1+v^2}{\sqrt{v}}\,dv\] \[2\sqrt{u} = 2\int\left(v^{-1/2} + v^{3/2}\right)dv\] \[2\sqrt{u} = 2\left(2v^{1/2} + \frac{2}{5}v^{5/2}\right) + C\] \[2\sqrt{u} = 4\sqrt{v} + \frac{4}{5}v^{5/2} + C\] Substitute back \(u = y^2 \sin x\) and \(v = \sin x\): \[2\sqrt{y^2 \sin x} = 4\sqrt{\sin x} + \frac{4}{5}(\sin x)^{5/2} + C\] \[2|y|\sqrt{\sin x} = 4\sqrt{\sin x} + \frac{4}{5}(\sin x)^{5/2} + C\] Divide by \(2\sqrt{\sin x}\) (for \(\sin x > 0\)): \[|y| = 2 + \frac{2}{5}\sin^2 x + \frac{C}{2\sqrt{\sin x}}\] Writing in general form (absorbing the sign of \(y\) into the arbitrary constant \(K\)): \[y\sqrt{\sin x} = 2\sqrt{\sin x} + \frac{2}{5}(\sin x)^{5/2} + K\] where \(K\) is an arbitrary constant.

Answer: \(y\sqrt{\sin x} = 2\sqrt{\sin x} + \dfrac{2}{5}(\sin x)^{5/2} + K\), where \(K\) is an arbitrary constant.

🎯 Try a Similar Question

Try a Similar Question

Question: Find the general solution of the differential equation: \[ \frac{d}{dx}\left(x^2 y\right) = x^2 + 2x \]

Solution

  1. Step 1: Expand the left side using the product rule: Applying the product rule on the left side: \[ \frac{d}{dx}\left(x^2 y\right) = x^2 \frac{dy}{dx} + 2x\,y \] So the equation becomes: \[ x^2 \frac{dy}{dx} + 2x\,y = x^2 + 2x \]
  2. Step 2: Divide through by \( x^2 \) to get standard linear form: Dividing every term by \( x^2 \) (assuming \( x \ne 0 \)): \[ \frac{dy}{dx} + \frac{2}{x}\,y = 1 + \frac{2}{x} \] This is now in the standard form \( \frac{dy}{dx} + P(x)\,y = Q(x) \) where \( P(x) = \frac{2}{x} \) and \( Q(x) = 1 + \frac{2}{x} \).
  3. Step 3: Compute the integrating factor: The integrating factor is: \[ \mu = e^{\int \frac{2}{x}\,dx} = e^{2\ln|x|} = e^{\ln x^2} = x^2 \]
  4. Step 4: Multiply the equation by the integrating factor: Multiplying both sides by \( x^2 \): \[ x^2 \frac{dy}{dx} + 2x\,y = x^2 + 2x \] The left side is the exact derivative \( \frac{d}{dx}\left(x^2 y\right) \), so: \[ \frac{d}{dx}\left(x^2 y\right) = x^2 + 2x \]
  5. Step 5: Integrate both sides with respect to \( x \): Integrating both sides: \[ \int \frac{d}{dx}\left(x^2 y\right)\,dx = \int \left(x^2 + 2x\right)\,dx \] This gives: \[ x^2\,y = \frac{x^3}{3} + x^2 + C \] where \( C \) is an arbitrary constant.
  6. Step 6: Solve for \( y \): Dividing both sides by \( x^2 \): \[ y = \frac{x}{3} + 1 + \frac{C}{x^2} \]

Answer: \[ y = \frac{x}{3} + 1 + \frac{C}{x^2} \] 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