Solveeit Logo

Question

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

Solve the following differential equation

(1x)2y+2(1x)y4y=x(1-x)^2y'' + 2(1 - x)y' - 4y = x.

Answer

The general solution to the differential equation is y(x)=C1(1x)4+C21x16x112y(x) = C_1 (1-x)^4 + \frac{C_2}{1-x} - \frac{1}{6}x - \frac{1}{12}.

Explanation

Solution

The given differential equation (1x)2y+2(1x)y4y=x(1-x)^2y'' + 2(1 - x)y' - 4y = x is transformed into a Cauchy-Euler equation t2y2ty4y=1tt^2y'' - 2ty' - 4y = 1-t by substituting t=1xt=1-x. The homogeneous part t2y2ty4y=0t^2y'' - 2ty' - 4y = 0 has characteristic equation m23m4=0m^2-3m-4=0, yielding roots m=4,1m=4, -1. Thus, the complementary solution is yc=C1t4+C2t1y_c = C_1 t^4 + C_2 t^{-1}. For the non-homogeneous part 1t1-t, a particular solution yp=At+By_p = At+B is assumed. Substituting into the transformed equation yields 6At4B=1t-6At - 4B = 1-t, which gives A=1/6A=1/6 and B=1/4B=-1/4. So, yp=16t14y_p = \frac{1}{6}t - \frac{1}{4}. The general solution in tt is y(t)=C1t4+C2t1+16t14y(t) = C_1 t^4 + C_2 t^{-1} + \frac{1}{6}t - \frac{1}{4}. Substituting back t=1xt=1-x gives the final solution y(x)=C1(1x)4+C21x16x112y(x) = C_1 (1-x)^4 + \frac{C_2}{1-x} - \frac{1}{6}x - \frac{1}{12}.