Question
Question: Solve the following differential equation $(1-x)^2y'' + 2(1 - x)y' - 4y = x$. ...
Solve the following differential equation
(1−x)2y′′+2(1−x)y′−4y=x.

The general solution to the differential equation is y(x)=C1(1−x)4+1−xC2−61x−121.
Solution
The given differential equation (1−x)2y′′+2(1−x)y′−4y=x is transformed into a Cauchy-Euler equation t2y′′−2ty′−4y=1−t by substituting t=1−x. The homogeneous part t2y′′−2ty′−4y=0 has characteristic equation m2−3m−4=0, yielding roots m=4,−1. Thus, the complementary solution is yc=C1t4+C2t−1. For the non-homogeneous part 1−t, a particular solution yp=At+B is assumed. Substituting into the transformed equation yields −6At−4B=1−t, which gives A=1/6 and B=−1/4. So, yp=61t−41. The general solution in t is y(t)=C1t4+C2t−1+61t−41. Substituting back t=1−x gives the final solution y(x)=C1(1−x)4+1−xC2−61x−121.