ehild said:
b(x) and c(x) are not given, but they are obtained knowing two solutions of the equation.
Once you know b(x) and c(x), you can find the general solution of the homogeneous equation, yh. Adding any particular solution (which can be any linear combination of y1 and y2, independent from yh), you get the general solution.
ehild
Well this complicates this problem A LOT:
If ##y_1(x)= e^x## and ##y_2(x)=x^2+1+e^x## solve the differential equation ##y^{'}+b(x)y=c(x)##
Than ##y_1^{'}(x)= e^x## and ##y_2^{'}(x)=2x+e^x## and
##e^x+b(x)e^x=c(x)## and ##2x+e^x+b(x)(x^2+1+e^x)=c(x)##. Multiplying the first equation with -1 and them summing both of them together gives:
##2x+b(x)2x+b(x)x^2=0##
##b(x)=\frac{-2}{2+x}## and accordingly ##c(x)=e^x\frac{x}{2+x}##
Original equation is than written as:
##y^{'}+b(x)y=y^{'}+\frac{-2}{2+x}y=e^x\frac{x}{2+x}##
Now I have to find homogeneous and non homogeneous part in order to find the general solution? That's sounds like a lot of work.
So, the only reason than ##y_1## and ##y_2## are given is so I can find b(x) and c(x)?
The Attempt at a Solution
The overall solution => ##y=y_H+y_P## I don't know the english expression for that but in general the idea behind is that differential equations can be seen as homogeneous and inhomogeneous.
If ##y_1(x)= e^x## and ##y_2=x^2+1+e^x## solve the equation than their ##y_1-y_2## also solves the equation. But I am not sure which part? Homogeneous or inhomogeneous?
I would like to say that the right answer is homogeneous part but than the overall solution would be like ##y= e^x-A(x^2+1)##
Does this sound right? :/