Solution
Related Formula
d(u · v) = u dv + v duCore Logic
Given the differential equation:
x dy + 2(1 - x) x + (2x - x²) dx = 0Divide entirely by x (which is 1/ x):
dy + 2(1 - x) x + (2x - x²) x dx = 0Rearranging it as an exact differential form:
(dy)/(dx) = 2(x - 1) x + (x² - 2x) xStep 1: Integration using By-Parts
Now integrate both sides:
y(x) = ∫ 2(x - 1) x dx + ∫ (x² - 2x) x dxApply integration by parts on the second integral, where u = x² - 2x and dv = x dx:
∫ (x² - 2x) x dx = (x² - 2x)( x) - ∫ (2x - 2) x dxSubstituting this back into y(x):
y(x) = ∫ 2(x - 1) x dx + [ (x² - 2x) x - ∫ 2(x - 1) x dx ] + λThe integrals cancel out perfectly:
y(x) = (x² - 2x) x + λStep 2: Finding Constant and Final Value
Use the initial condition y(0) = 2:
y(0) = 0 + λ ⇒ λ = 2Thus, the solution is:
y(x) = (x² - 2x) x + 2To find y(2):
y(2) = (2² - 2(2)) 2 + 2 = (4 - 4) 2 + 2 = 2Pattern Recognition
When an integrand is a mix of polynomial and trigonometric terms, grouping them to form an exact differential or observing that integration by parts on one term perfectly cancels the other term is a classic structural trick.
Chapter Mix
Class 12 Maths: Differential Equations Class 12 Maths: Integrals