Question #79776

Solve the equation
x dy/dx−ay=x+1
, where a is a constant

a. y=x/1−a − 1/a+cx
b. y=x/1−a + 1/a+cx
c. y=x/1+a − 1/a+cx
d. y=−x/1−a − 1/a+cx

Expert's answer

Answer on Question #79776 – Math – Differential Equations

Question

Solve the equation


xdydxay=x+1,x \frac{dy}{dx} - ay = x + 1,


where aa is a constant.


a)y=x1a1a+Cx;a) \quad y = \frac{x}{1 - a} - \frac{1}{a} + Cx;b)y=x1a+1a+Cx;b) \quad y = \frac{x}{1 - a} + \frac{1}{a} + Cx;c)y=x1+a1a+Cx;c) \quad y = \frac{x}{1 + a} - \frac{1}{a} + Cx;d)y=x1a1a+Cx.d) \quad y = - \frac{x}{1 - a} - \frac{1}{a} + Cx.

Solution

Let's write the equation in the form:


dydxaxy=1+1x.\frac{dy}{dx} - \frac{a}{x} y = 1 + \frac{1}{x}.


It's a first order linear differential equation, in turn that means it looks like


dydx+P(x)y=Q(x)\frac{dy}{dx} + P(x) y = Q(x)


with P(x)=axP(x) = -\frac{a}{x} and Q(x)=1+1xQ(x) = 1 + \frac{1}{x}.

It can be integrated in three ways.

1) The first way is using auxiliary function.

Let


y=uv,y = uv,


where u=u(x)u = u(x) and v=v(x)v = v(x) are the auxiliary functions.

Then


dydx=dudxv+udvdx.\frac{dy}{dx} = \frac{du}{dx} v + u \frac{dv}{dx}.


So we have:


dudxv+udvdxaxuv=1+1x\frac{du}{dx} v + u \frac{dv}{dx} - \frac{a}{x} uv = 1 + \frac{1}{x}


or


dudxv+u(dvdxaxv)=1+1x.\frac {d u}{d x} v + u \left(\frac {d v}{d x} - \frac {a}{x} v\right) = 1 + \frac {1}{x}.


Since one of the auxiliary functions can be chosen arbitrarily, let's choose a function vv such that it will satisfy the condition:


dvdxaxv=0.\frac {d v}{d x} - \frac {a}{x} v = 0.


So we have


dvdx=axv.\frac {d v}{d x} = \frac {a}{x} v.


It's a separable equation what can be easily integrated:


dvv=adxx;\int \frac {d v}{v} = a \int \frac {d x}{x};lnv=alnx\ln | v | = a \ln | x |v=xa.v = x ^ {a}.


Substitute the expression for the function vv in equation:


dudxxa=1+1x\frac {d u}{d x} x ^ {a} = 1 + \frac {1}{x}


or


dudx=1xa+1xa+1.\frac {d u}{d x} = \frac {1}{x ^ {a}} + \frac {1}{x ^ {a + 1}}.


It's a separable equation so we can integrate it:


du=(1xa+1xa+1)dx;\int d u = \int \left(\frac {1}{x ^ {a}} + \frac {1}{x ^ {a + 1}}\right) d x;u=x1a1axaa+C=x(1a)xa1axa+C,where C=const.u = \frac {x ^ {1 - a}}{1 - a} - \frac {x ^ {- a}}{a} + C = \frac {x}{(1 - a) x ^ {a}} - \frac {1}{a x ^ {a}} + C, \quad \text{where } C = \text{const}.


After reverse replacement we have a general solution of the given equation:


y=x1a1a+Cxa,where C=const.y = \frac {x}{1 - a} - \frac {1}{a} + C x ^ {a}, \quad \text{where } C = \text{const}.


2) The second way is a use of an integrating factor


μ(x)=eP(x)dx.\mu (x) = e ^ {\int P (x) d x}.


The solution is then commonly written as


y=1μ(x)μ(x)Q(x)dx.y = \frac {1}{\mu (x)} \int \mu (x) Q (x) d x.


Determine the integrating factor:


μ(x)=eadxx=ealnx=xa.\mu (x) = e ^ {- a \int \frac {d x}{x}} = e ^ {- a \ln | x |} = x ^ {- a}.


Then the solution is


y=xaxa(1+1x)dx=xa(1xa+1xa+1)dx=xa(x1a1axaa+C)=x1a1a+Cxa.y = x^a \int x^{-a} \left(1 + \frac{1}{x}\right) dx = x^a \int \left(\frac{1}{x^a} + \frac{1}{x^{a+1}}\right) dx = x^a \left(\frac{x^{1-a}}{1-a} - \frac{x^{-a}}{a} + C\right) = \frac{x}{1-a} - \frac{1}{a} + C x^a.


So the general solution of the given equation is


y=x1a1a+Cxa,where C=const.y = \frac{x}{1-a} - \frac{1}{a} + C x^a, \quad \text{where } C = \text{const}.


3) The third way is a use of the variation of constants method.

We start with the homogeneous equation:


dydxaxy=0,\frac{dy}{dx} - \frac{a}{x} y = 0,


which is a separable equation, so we can integrate it:


dyy=adxx;\int \frac{dy}{y} = a \int \frac{dx}{x};lny=alnx+lnC;\ln |y| = a \ln |x| + \ln C;y=Cxa.y = C x^a.


The idea of the variation of constants method is to replace constant CC by a function C(x)C(x). So we have:


y=C(x)xay = C(x) x^a


and


dydx=dCdxxa+Caxa1.\frac{dy}{dx} = \frac{dC}{dx} x^a + C a x^{a-1}.


Substitute the expression for yy and dydx\frac{dy}{dx} in the equation:


x(dCdxxa+Caxa1)aCxa=x+1;x \left(\frac{dC}{dx} x^a + C a x^{a-1}\right) - a C x^a = x + 1;dCdxxa+1+CaxaaCxa=x+1;\frac{dC}{dx} x^{a+1} + C a x^a - a C x^a = x + 1;dCdxxa+1=x+1.\frac{dC}{dx} x^{a+1} = x + 1.


The obtained equation is a separable equation and can be easily integrated:


C(x)=(1xa+1xa+1)dx=x1a1axaa+C1,C(x) = \int \left(\frac{1}{x^a} + \frac{1}{x^{a+1}}\right) dx = \frac{x^{1-a}}{1-a} - \frac{x^{-a}}{a} + C_1,


and the general solution of the given equation is:


y=(x1a1axaa+C1)xa=x1a1a+C1xa.y = \left(\frac{x^{1-a}}{1-a} - \frac{x^{-a}}{a} + C_1\right) x^a = \frac{x}{1-a} - \frac{1}{a} + C_1 x^a.


The result is evidently the same as what we found using a substitution (an auxiliary function) or an integrating factor.

Answer provided by https://www.AssignmentExpert.com

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

LATEST TUTORIALS
APPROVED BY CLIENTS