>>207
how did i not see this lol i have a wide collection
Consider
y′′−2y=ln(x)
.
Let's first solve for the complementary solution, which is the general solution to the complementary equation
.
The characteristic polynomial for the complementary equation is
λ2−2=0
, so
λ=±2
. Hence, the complementary solution is
yc(x)=Ay1(x)+By2(x)=Ae−x2+Bex2
for some constants
and
. Now let's find the particular solution using variation of parameters. Using the two basis solutions of the complementary solution,
and
, we construct the Wronskian and get
W(e−x2,ex2)(x)=∣∣e−x2(e−x2)′ex2(ex2)′∣∣=22
Hence, for the particular solution
yp(x)=u1(x)y1(x)+u2(x)y2(x)
, we have,
u1(x)=−∫W(e−x2,ex2)(x)ln(x)y2(x) dx=−∫22ln(x)ex2 dx=41Ei(x2)−41ex2ln(x)
u2(x)=∫W(e−x2,ex2)(x)ln(x)y1(x) dx=∫22ln(x)e−x2 dx=41Ei(−x2)−41e−x2ln(x)
The particular solution then is nothing but
yp(x)=u1(x)y1(x)+u2(x)y2(x)=(41Ei(x2)−41ex2ln(x))e−x2+(41Ei(−x2)−41e−x2ln(x))ex2=41e−x2(e2x2Ei(−x2)+Ei(x2)−2ex2ln(x))
Thus the complete general solution is given by
y(x)=yc(x)+yp(x)=Ae−x2+Bex2+41e−x2(e2x2Ei(−x2)+Ei(x2)−2ex2ln(x))