Answer on Question #79776 – Math – Differential Equations
Question
Solve the equation
xdxdy−ay=x+1,
where a is a constant.
a)y=1−ax−a1+Cx;b)y=1−ax+a1+Cx;c)y=1+ax−a1+Cx;d)y=−1−ax−a1+Cx.Solution
Let's write the equation in the form:
dxdy−xay=1+x1.
It's a first order linear differential equation, in turn that means it looks like
dxdy+P(x)y=Q(x)
with P(x)=−xa and Q(x)=1+x1.
It can be integrated in three ways.
1) The first way is using auxiliary function.
Let
y=uv,
where u=u(x) and v=v(x) are the auxiliary functions.
Then
dxdy=dxduv+udxdv.
So we have:
dxduv+udxdv−xauv=1+x1
or
dxduv+u(dxdv−xav)=1+x1.
Since one of the auxiliary functions can be chosen arbitrarily, let's choose a function v such that it will satisfy the condition:
dxdv−xav=0.
So we have
dxdv=xav.
It's a separable equation what can be easily integrated:
∫vdv=a∫xdx;ln∣v∣=aln∣x∣v=xa.
Substitute the expression for the function v in equation:
dxduxa=1+x1
or
dxdu=xa1+xa+11.
It's a separable equation so we can integrate it:
∫du=∫(xa1+xa+11)dx;u=1−ax1−a−ax−a+C=(1−a)xax−axa1+C,where C=const.
After reverse replacement we have a general solution of the given equation:
y=1−ax−a1+Cxa,where C=const.
2) The second way is a use of an integrating factor
μ(x)=e∫P(x)dx.
The solution is then commonly written as
y=μ(x)1∫μ(x)Q(x)dx.
Determine the integrating factor:
μ(x)=e−a∫xdx=e−aln∣x∣=x−a.
Then the solution is
y=xa∫x−a(1+x1)dx=xa∫(xa1+xa+11)dx=xa(1−ax1−a−ax−a+C)=1−ax−a1+Cxa.
So the general solution of the given equation is
y=1−ax−a1+Cxa,where C=const.
3) The third way is a use of the variation of constants method.
We start with the homogeneous equation:
dxdy−xay=0,
which is a separable equation, so we can integrate it:
∫ydy=a∫xdx;ln∣y∣=aln∣x∣+lnC;y=Cxa.
The idea of the variation of constants method is to replace constant C by a function C(x). So we have:
y=C(x)xa
and
dxdy=dxdCxa+Caxa−1.
Substitute the expression for y and dxdy in the equation:
x(dxdCxa+Caxa−1)−aCxa=x+1;dxdCxa+1+Caxa−aCxa=x+1;dxdCxa+1=x+1.
The obtained equation is a separable equation and can be easily integrated:
C(x)=∫(xa1+xa+11)dx=1−ax1−a−ax−a+C1,
and the general solution of the given equation is:
y=(1−ax1−a−ax−a+C1)xa=1−ax−a1+C1xa.
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