Question #70217

Solve the initial value problem

(e^x + y)dx + (2 + x +ye^y)dy=0, y(0)=1

Expert's answer

Answer on Question #70217 – Math – Differential Equations

Question

Solve the initial value problem


(ex+y)dx+(2+x+yey)dy=0,y(0)=1.(e^{x} + y)dx + (2 + x + y e^{y})dy = 0, y(0) = 1.


Solution

Let P(x,y)=ex+yP(x,y) = e^{x} + y and Q(x,y)=2+x+yeyQ(x,y) = 2 + x + y e^{y}.

This is a total differential equation P(x,y)dx+Q(x,y)dy=0P(x,y)dx + Q(x,y)dy = 0, because Py=Qx=1\frac{\partial P}{\partial y} = \frac{\partial Q}{\partial x} = 1.

Define f(x,y)f(x,y) such that fx=P(x,y)\frac{\partial f}{\partial x} = P(x,y) and fy=Q(x,y)\frac{\partial f}{\partial y} = Q(x,y). Then the solution will be given by f(x,y)=c1f(x,y) = c_{1}, where c1c_{1} is an arbitrary real constant.

fx=ex+yf(x,y)=(ex+y)dx+g(y)=ex+xy+g(y)\frac{\partial f}{\partial x} = e^{x} + y \Rightarrow f(x,y) = \int (e^{x} + y)dx + g(y) = e^{x} + xy + g(y) where g(y)g(y) is an arbitrary function of yy.

Differentiate f(x,y)f(x,y) with respect to yy in order to find g(y)g(y):


fy=x+g(y)=2+x+yeyg(y)=2+yeyg(y)=(2+yey)dy=2y+ey(y1)+c2.\begin{array}{l} \frac{\partial f}{\partial y} = x + g'(y) = 2 + x + y e^{y} \Rightarrow g'(y) = 2 + y e^{y} \Rightarrow \\ \Rightarrow g(y) = \int (2 + y e^{y}) dy = 2y + e^{y}(y - 1) + c_{2}. \end{array}f(x,y)=ex+xy+2y+ey(y1)+c2.f(x,y) = e^{x} + xy + 2y + e^{y}(y - 1) + c_{2}.ex+xy+2y+ey(y1)+c2=c1 or ex+xy+2y+ey(y1)=ce^{x} + xy + 2y + e^{y}(y - 1) + c_{2} = c_{1} \text{ or } e^{x} + xy + 2y + e^{y}(y - 1) = c


If y(0)=1y(0) = 1 then e0+01+21+e0(11)=cc=3e^{0} + 0 * 1 + 2 * 1 + e^{0}(1 - 1) = c \Rightarrow c = 3 \Rightarrow

ex+xy+2y+ey(y1)=3\Rightarrow e^{x} + xy + 2y + e^{y}(y - 1) = 3


Answer: ex+xy+2y+ey(y1)=3e^{x} + xy + 2y + e^{y}(y - 1) = 3.

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