For each of the differential equations given in Exercises 1 to 12, find the general solution:\(x\dfrac{dy}{dx}+2y=x^2\ log\ x\)
CBSE Class 12 Maths · Differential Equations
CBSE Class 12 Maths · Differential Equations
Imagine you have a messy room and you want to tidy it into one neat pile. A differential equation is like a messy instruction telling you how things change. We use a magic multiplier called an integrating factor to make both sides tidy at once. After multiplying, the left side becomes a neat package that is easy to unwrap. Unwrapping means integrating, and that gives us the answer. The tricky integral on the right uses a trick called integration by parts, just like splitting a big chore into two smaller ones.
Answer: \[ y = \frac{x^2}{4} \log x - \frac{x^2}{16} + \frac{C}{x^2} \]
A first-order linear differential equation has the standard form \( \frac{dy}{dx} + Py = Q \), where \( P \) and \( Q \) are functions of \( x \) only. To solve it, we multiply throughout by an integrating factor (I.F.) given by \( e^{\int P \, dx} \). This clever factor turns the left-hand side into the derivative of a product, so we can integrate both sides directly. The given equation \( x\frac{dy}{dx} + 2y = x^2 \log x \) is not yet in standard form, so we first divide by \( x \) to make the coefficient of \( \frac{dy}{dx} \) equal to 1.
Standard form: \( \frac{dy}{dx} + Py = Q \). Integrating factor: \( \text{I.F.} = e^{\int P \, dx} \). Solution: \( y \cdot (\text{I.F.}) = \int Q \cdot (\text{I.F.}) \, dx + C \).
\[ y = \frac{x^2}{4} \log x - \frac{x^2}{16} + \frac{C}{x^2} \]
A very common error is forgetting to convert the equation into standard form first. Students often read off \( P = 2 \) and \( Q = x^2 \log x \) directly from \( x\frac{dy}{dx} + 2y = x^2 \log x \) without dividing by \( x \). You must divide by the coefficient of \( \frac{dy}{dx} \) so that it becomes 1, giving \( P = \frac{2}{x} \) and \( Q = x \log x \).
\[ y = \frac{x^2}{4} \log x - \frac{x^2}{16} + \frac{C}{x^2} \]
One common mistake: forgetting to divide the entire equation by \( x \) before identifying \( P \) and \( Q \), which leads to an incorrect integrating factor — always ensure the coefficient of \( \frac{dy}{dx} \) is 1 before proceeding.
Answer: \[ y = \frac{x^2}{4} \log x - \frac{x^2}{16} + \frac{C}{x^2} \]
Question: Find the general solution of the differential equation \( x\,\frac{dy}{dx} - 3y = x^3 \ln x \).
Solution: Step 1: Rewrite in standard linear form by dividing throughout by \( x \): \[ \frac{dy}{dx} - \frac{3}{x}\,y = x^2 \ln x \] Here \( P(x) = -\dfrac{3}{x} \) and \( Q(x) = x^2 \ln x \). Step 2: Find the Integrating Factor: \[ \text{IF} = e^{\int -\frac{3}{x}\,dx} = e^{-3\ln x} = e^{\ln x^{-3}} = x^{-3} = \frac{1}{x^3} \] Step 3: Multiply both sides by the IF \( \dfrac{1}{x^3} \): \[ \frac{d}{dx}\left(\frac{y}{x^3}\right) = \frac{x^2 \ln x}{x^3} = \frac{\ln x}{x} \] Step 4: Integrate both sides with respect to \( x \): \[ \frac{y}{x^3} = \int \frac{\ln x}{x}\,dx \] Let \( t = \ln x \), so \( dt = \dfrac{1}{x}\,dx \): \[ \int \frac{\ln x}{x}\,dx = \int t\,dt = \frac{t^2}{2} + C = \frac{(\ln x)^2}{2} + C \] Step 5: Write the general solution: \[ \frac{y}{x^3} = \frac{(\ln x)^2}{2} + C \] Multiplying both sides by \( x^3 \): \[ y = \frac{x^3 (\ln x)^2}{2} + C\,x^3 \]
Answer: \( y = \dfrac{x^3 (\ln x)^2}{2} + C\,x^3 \)
Question: Find the general solution of the differential equation \( x^2\,\frac{dy}{dx} + 2xy = x^4 \cos x \).
Solution: Step 1: Divide throughout by \( x^2 \) to write in standard linear form: \[ \frac{dy}{dx} + \frac{2}{x}\,y = x^2 \cos x \] Here \( P(x) = \dfrac{2}{x} \) and \( Q(x) = x^2 \cos x \). Step 2: Find the Integrating Factor: \[ \text{IF} = e^{\int \frac{2}{x}\,dx} = e^{2\ln x} = e^{\ln x^2} = x^2 \] Step 3: Multiply both sides by \( x^2 \): \[ \frac{d}{dx}\left(x^2 y\right) = x^2 \cdot x^2 \cos x = x^4 \cos x \] Step 4: Integrate both sides: \[ x^2 y = \int x^4 \cos x\,dx \] Apply integration by parts repeatedly. Let \( I = \int x^4 \cos x\,dx \). First application — take \( u = x^4 \) and \( dv = \cos x\,dx \), so \( du = 4x^3\,dx \) and \( v = \sin x \): \[ I = x^4 \sin x - 4\int x^3 \sin x\,dx \] Second application for \( \int x^3 \sin x\,dx \) — take \( u = x^3 \) and \( dv = \sin x\,dx \), so \( du = 3x^2\,dx \) and \( v = -\cos x \): \[ \int x^3 \sin x\,dx = -x^3 \cos x + 3\int x^2 \cos x\,dx \] Third application for \( \int x^2 \cos x\,dx \) — take \( u = x^2 \) and \( dv = \cos x\,dx \), so \( du = 2x\,dx \) and \( v = \sin x \): \[ \int x^2 \cos x\,dx = x^2 \sin x - 2\int x \sin x\,dx \] Fourth application for \( \int x \sin x\,dx \) — take \( u = x \) and \( dv = \sin x\,dx \), so \( du = dx \) and \( v = -\cos x \): \[ \int x \sin x\,dx = -x\cos x + \int \cos x\,dx = -x\cos x + \sin x \] Now combine all results step by step. From the fourth result: \[ \int x^2 \cos x\,dx = x^2 \sin x - 2(-x\cos x + \sin x) = x^2 \sin x + 2x\cos x - 2\sin x \] From the third result: \[ \int x^3 \sin x\,dx = -x^3 \cos x + 3(x^2 \sin x + 2x\cos x - 2\sin x) \] \[ = -x^3 \cos x + 3x^2 \sin x + 6x\cos x - 6\sin x \] Substituting into \( I \): \[ I = x^4 \sin x - 4(-x^3 \cos x + 3x^2 \sin x + 6x\cos x - 6\sin x) \] \[ I = x^4 \sin x + 4x^3 \cos x - 12x^2 \sin x - 24x\cos x + 24\sin x \] Step 5: Write the general solution: \[ x^2 y = x^4 \sin x + 4x^3 \cos x - 12x^2 \sin x - 24x\cos x + 24\sin x + C \] Dividing throughout by \( x^2 \): \[ y = x^2 \sin x + 4x\cos x - 12\sin x - \frac{24\cos x}{x} + \frac{24\sin x}{x^2} + \frac{C}{x^2} \]
Answer: \( x^2 y = x^4 \sin x + 4x^3 \cos x - 12x^2 \sin x - 24x\cos x + 24\sin x + C \)
Question: Find the general solution of the differential equation \[ x\,\frac{dy}{dx} - 3y = x^3 \log x \] where \( x > 0 \).
Answer: \[ y = \frac{x^3 (\log x)^2}{2} + C\,x^3 \]