Question
Question: Solve the initial value problem: \(dy={{e}^{2x+y}}dx,y\left( 0 \right)=0\)...
Solve the initial value problem:
dy=e2x+ydx,y(0)=0
Solution
Hint: Here, we will first take the function involving x on one side and the function involving y to the other side. After obtaining the solution, we can find the value of the constant of integration using the given condition.
Complete step-by-step answer:
We know that an initial value problem is an ordinary differential equation together with an initial condition which specifies the value of the unknown function at a given point in the domain.
Here, the differential equation given to us is:
dy=e2x+ydx
We can also write this equation as:
dxdy=e2x.ey
Now, to make the similar terms on same side, we can also write this as:
eydy=e2x.dx
On integrating both sides, we get:
∫e−ydy=∫e2xdx..........(1)
Since, we know that the integration of ex is given as ∫exdx=ex+c
Now, let us consider that t=−y.
On differentiating w.r.t y, we get:
dy=−dt
So,
∫e−ydy=∫et.(−dt)=−∫etdt=−et+c=−e−y+c1
Similarly let us consider that k=2x .
On differentiating w.r.t. x, we get:
⇒2=dxdk⇒2dx=dk
So,
∫e2xdx=∫ek.2dk=21∫ekdk=21ek+c2=21e2x+c2
On putting the corresponding values in equation (1), we get:
−e−y+c1=2e2x+c2⇒2e2x+e−y=c1−c2=c...........(2)
Here, c is only another integration constant and it is equal to c1−c2.
Since, it is given that y(0)=0.
So, on substituting x = 0 and y = 0 in equation (2), we get:
2e0+e0=c⇒c=21+1=23
Hence, the solution of the given differential equation is 2e2x+e−y=23.
Note: Students should note here that we have written c1−c2 as another constant C because the difference of two constants will also give us a constant. Students should remember the formulas of integration.