Question
Question: How do you solve the differential equation \[y' = {e^{ - y}}\left( {2x - 4} \right)\] , where \[y\le...
How do you solve the differential equation y′=e−y(2x−4) , where y(5)=0 ?
Solution
The above differential equation is an example of a separable differential equation with an initial value. This equation can be factored into the product of two functions x and y , each of these depends upon only one variable. These types of equations can be written in the form y′=f(x)g(y) .
Formula used:
To solve this differential equation, we will use the formula logen=nloge . Also, keep in mind the value of loge=1 .
Complete step by step solution:
The differential equation given to us is: y′=e−y(2x−4) , where y(5)=0 .
We can write this as dxdy=e−y(2x−4) .
Now in the next step, we will multiple both the sides of the above equation by ey , we get,
Now, we will again multiply both the sides by dx ,
dxeydxdy=(2x−4)dx ⇒eydy=(2x−4)dxIn the next step, we will integrate both the sides of the equation.
∫eydy=∫(2x−4)dx ⇒ey=22x2−4x+C⇒ey=x2−4x+C
After integrating the equation, we will take natural log on both sides.
logey=log(x2−4x+C)
We know that, logen=nloge , so here we will replace n by y , and we get,
yloge=log(x2−4x+C)
We know, loge=1 , so
y=log(x2−4x+C)
Now, we want to find the value of C. we can find this value by using y(5)=0 .
y(5)=log((5)2−4(5)+C) (replacing x by 5 )
=log(25−20+C)
=log(5+C)
Now, y(5)=0 ,
log(5+C)=0
Therefore, the value of C is −4 .
Hence the final solution is y=log(x2−4x−4)
Note: To solve the above question of differential equation, we have applied the concept of separable differential equations. In order for a differential equation to be separable all the terms with x should be kept on one side of the equation and all the terms containing y , must be multiplied by the derivative. You must also remember the formulas of logarithm.