Question #44337

solve dy/dx = (y+x-2) /(y-x-4)

Expert's answer

Answer on Question #44337 – Math - Differential Calculus | Equations

Solve dy/dx=(y+x2)/(yx4)\mathrm{dy}/\mathrm{dx} = (y + x - 2)/(y - x - 4)

Solution:

We make the change of variables:


{x=ξ+x0y=η+y0\left\{ \begin{array}{l} x = \xi + x _ {0} \\ y = \eta + y _ {0} \end{array} \right.


where x0x_0 and y0y_0 are the solutions of linear system of equations


{y0+x02=0y0x04=0\left\{ \begin{array}{l} y _ {0} + x _ {0} - 2 = 0 \\ y _ {0} - x _ {0} - 4 = 0 \end{array} \right.


Rewrite the system in matrix form and solve it by Gaussian Elimination


[112114]\left[ \begin{array}{rrr} 1 & 1 & 2 \\ 1 & -1 & 4 \end{array} \right]


from 2 rows we subtract the 1-th row, multiplied respectively by 1


[112022]\left[ \begin{array}{rrr} 1 & 1 & 2 \\ 0 & -2 & 2 \end{array} \right]


divide the 2-th row by -2


[112011]\left[ \begin{array}{rrr} 1 & 1 & 2 \\ 0 & 1 & -1 \end{array} \right]


from 1 rows we subtract the 2-th row


[103011]\left[ \begin{array}{rrr} 1 & 0 & 3 \\ 0 & 1 & -1 \end{array} \right]


Answer:


{x0=1y0=3\left\{ \begin{array}{l} x _ {0} = - 1 \\ y _ {0} = 3 \end{array} \right.


For new variables we have dx=dξdx = d\xi, dy=dηdy = d\eta and dηdξ=(η+ξ)(ηξ)\frac{d\eta}{d\xi} = \frac{(\eta + \xi)}{(\eta - \xi)}.

We make the change of variable z=η/ξz = \eta / \xi, then η=ξz\eta = \xi * z and dηdξ=z+ξdzdξ\frac{d\eta}{d\xi} = z + \xi * \frac{dz}{d\xi}.

Now for variable zz we obtain differential equation:


z+ξdz/dξ=(z+1)/(z1)z + \xi * dz / d\xi = (z + 1) / (z - 1)


collecting terms containing zz we obtained equation with separable variables ξdz/dξ=(z2+2z+1)/(z1)\xi * dz / d\xi = (-z^2 + 2z + 1) / (z - 1).

Separating variables


z1z2+2z+1dz=dξξ.\frac {z - 1}{- z ^ {2} + 2 z + 1} * d z = \frac {d \xi}{\xi}.


Integrating the left-hand side of the equality with respect to zz and right side with respect to ξ\xi:


z1z2+2z+1dz=2z+22(z2+2z+1)dz=d(z2+2z+1)2(z2+2z+1)=12lnz2+2z+1+C,\int \frac {z - 1}{- z ^ {2} + 2 z + 1} d z = \int \frac {- 2 z + 2}{- 2 (- z ^ {2} + 2 z + 1)} d z = \int \frac {d (- z ^ {2} + 2 z + 1)}{- 2 (- z ^ {2} + 2 z + 1)} = - \frac {1}{2} * \ln | - z ^ {2} + 2 z + 1 | + C,dξξ=lnξ+C\int \frac {d \xi}{\xi} = \ln | \xi | + C


We have


12lnz2+2z+1=lnξ+lnC.- \frac {1}{2} * \ln | - z ^ {2} + 2 z + 1 | = \ln | \xi | + \ln C.


(we denote arbitrary constant C by lnC)

Using the properties of logarithms ln(x)\ln (x):


ln1z2+2z+1=lnξC\ln \left| \frac {1}{\sqrt {- z ^ {2} + 2 z + 1}} \right| = \ln | \xi * C |


from here obtained


1z2+2z+1=ξC\frac {1}{\sqrt {- z ^ {2} + 2 z + 1}} = \xi * C


or rewrite equality by C1=(z2+2z+1)ξ2C_1 = (-z^2 + 2z + 1) * \xi^2, where C1C_1 arbitrary constant.

Back to old variables


Z=ηξ=yy0xx0=y3x+1Z = \frac {\eta}{\xi} = \frac {y - y _ {0}}{x - x _ {0}} = \frac {y - 3}{x + 1}


We have


C1=(x+1)2((y3x+1)2+2(y3x+1)+1)=(y3)2+2(y3)(x+1)++(x+1)2=y2+2xy+x2+8y4x14.\begin{array}{l} C _ {1} = (x + 1) ^ {2} * \left(- \left(\frac {y - 3}{x + 1}\right) ^ {2} + 2 \left(\frac {y - 3}{x + 1}\right) + 1\right) = - (y - 3) ^ {2} + 2 (y - 3) (x + 1) + \\ + (x + 1) ^ {2} = - y ^ {2} + 2 x y + x ^ {2} + 8 y - 4 x - 14. \\ \end{array}


denote arbitrary constant C1+14C_1 + 14 by C, then

**Answer:**

y2+2xy+x2+8y4x=C-y^{2} + 2xy + x^{2} + 8y - 4x = C, where C arbitrary constant, is a solution of differential equation dydx=(y+x2)(yx4)\frac{\mathrm{dy}}{\mathrm{dx}} = \frac{(y + x - 2)}{(y - x - 4)}.

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