Solve the equation xfrac{dy}{dx}-ay=x+1 where a is a constant
1
Expert's answer
2019-10-14T12:02:49-0400
First we find the general solution of xy′−ay=0.
The chatacteristic equation of xy′−ay=0 is λ−a=0, which has solution λ0=a.
We obtain that the general solution of xy′−ay=0 is y=Cxλ0=Cxa
Next, we find the partial solution of xy′−ay=x+1 of the form y=Ax+B
We have xy′−ay=x(Ax+B)′−a(Ax+B)=A(1−a)x−aB.
So we obtain that if a=0 and a=1 , then A(1−a)x−aB=x+1, that is A(1−a)=1 and −aB=1. Then the general solution of xy′−ay=x+1 is Cxa+Ax+B=Cxa+1−a1x−a1
Consider the case a=0. In this case we have the equation xy′=x+1, that is y′=1+x1, so y=∫(1+x1)dx=x+ln∣x∣+C.
Consider case a=1. In this case we have the equation xdxdy−y=x+1, that is xdy−ydx=(x+1)dx. Divide this equation by x2 and obtain x2xdy−ydx=(x1+x21)dx
x2xdy−ydx=d(xy) and (x1+x21)dx=d(ln∣x∣−x1) , so we obtain the solution xy=ln∣x∣−x1+C, that is y=xln∣x∣−1+Cx
Comments