Q. 39

Question

Use antidifferentiation and/or separation of variables to solve each of the initial-value problems in Exercises 29–52

dydx=ex+y,y(0)=2

Step-by-Step Solution

Verified
Answer

The solution of the initial-value problem descibed bydydx=ex+y,y(0)=2 is  y(x)=-ln|1+e-2-ex|

1Step 1. Given information

The given initial value problem dydx=ex+y,y(0)=2..............(1)

2Step 2. Use antidifferentiation and/or separation of variables to solve each of the initial-value
Use the property of exponential function and rewrite the differential equation in (1) as
dydx=ex.ey          (ex.ey=ex+y)
Note that the differentlal equation is now in the form dydx=p(x)q(y) In which p(x)=ex, and q(y)=ey. So, the differential equation can be solved by applying variable separable method. Thus, the solution of the differential equation involved in the initial- value problem is given by

1eydy=exdxe-ydy=ex+C-e-y=ex+Ce-y=-ex-C

Now, use the given initial condition y(0)=2, that is take x=0,y=2 in the above result and evaluate the constant C.

e-2=-1-CC=-e-2-1

Substitute this value of the constant C in the solution of the differential equation and obtain the solution of the initial - value problem dydx=ex+y,y(0)=2 as 

e-y=-ex+1+e-2-y=ln|1+e-2-ex|y=-ln|1+e-2-ex|

Therefore,the solution of the initial-value problem descibed by equation(1) is

y(x)=-ln|1+e-2-ex|