Question #69632

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

Expert's answer

Answer on Question #69632 – Math – Differential Equations

Question

Solve the equation


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


where aa is a constant.

Solution

A First Order Linear Nonhomogeneous DE can be solved with a help of the Method of Integrating Factor.

Divide both sides of (1) by xx

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


Integrating factor is


v(x)=e(ax)dx,v(x) = e^{\int\left(-\frac{a}{x}\right)dx},


where


(ax)dx=alnx+C.\int\left(-\frac{a}{x}\right)dx = -a\ln|x| + C.


Set the constant of integration CC to be equal to 0 in order to simplify vv and x=x|x| = x if x>0x > 0.

Then


v(x)=e(ax)dx=ealnx=(elnx)a=xav(x) = e^{\int\left(-\frac{a}{x}\right)dx} = e^{-a\ln x} = \left(e^{\ln x}\right)^{-a} = x^{-a}


Multiple both sides of (2) by a positive function v(x)v(x) that transforms the left-hand side into the derivative of the product v(x)yv(x) \cdot y.


xadydxxaaxy=xa(1+1x)ddx(xay)=xa+xa1\begin{array}{l} x^{-a} \frac{dy}{dx} - x^{-a} \frac{a}{x}y = x^{-a}\left(1 + \frac{1}{x}\right) \\ \frac{d}{dx}(x^{-a}y) = x^{-a} + x^{-a-1} \end{array}


Case a=0a = 0:


dydx=1+1xdy=(1+1x)dxdy=(1+1x)dxy=x+lnx+C1\begin{array}{l} \frac{dy}{dx} = 1 + \frac{1}{x} \\ dy = \left(1 + \frac{1}{x}\right)dx \\ \int dy = \int\left(1 + \frac{1}{x}\right)dx \\ y = x + \ln|x| + C_1 \end{array}


Case a=1a = 1:


dydx1xy=1+1x\frac{dy}{dx} - \frac{1}{x}y = 1 + \frac{1}{x}ddx(x1y)=x1+x11d(x1y)=(1x+1x2)dxyx=lnx1x+C2y=xlnx1+C2x\begin{array}{l} \frac{d}{dx}(x^{-1}y) = x^{-1} + x^{-1-1} \\ \int d(x^{-1}y) = \int \left(\frac{1}{x} + \frac{1}{x^2}\right) dx \\ \frac{y}{x} = \ln |x| - \frac{1}{x} + C_2 \\ y = x \ln |x| - 1 + C_2 x \\ \end{array}


Case a0,a1a \neq 0, a \neq 1:


ddx(xay)=xa+xa1(xay)=(xa+xa1)dxxay=xa+1a+1+xaa+C3y=xa+11a+C3xa\begin{array}{l} \frac{d}{dx}(x^{-a}y) = x^{-a} + x^{-a-1} \\ \int (x^{-a}y) = \int (x^{-a} + x^{-a-1}) dx \\ x^{-a}y = \frac{x^{-a+1}}{-a+1} + \frac{x^{-a}}{-a} + C_3 \\ y = \frac{x}{-a+1} - \frac{1}{a} + C_3 x^a \\ \end{array}


Answer:


y=xa+11a+C3xa, if a0,a1;y = \frac{x}{-a+1} - \frac{1}{a} + C_3 x^a, \text{ if } a \neq 0, a \neq 1;y=x+lnx+C1, if a=0;y = x + \ln |x| + C_1, \text{ if } a = 0;y=xlnx1+C2x, if a=1.y = x \ln |x| - 1 + C_2 x, \text{ if } a = 1.


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