Solveeit Logo

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=ey(2x4)y' = {e^{ - y}}\left( {2x - 4} \right) , where y(5)=0y\left( 5 \right) = 0 ?

Explanation

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 xx and yy , each of these depends upon only one variable. These types of equations can be written in the form y=f(x)g(y)y' = f\left( x \right)g\left( y \right) .

Formula used:
To solve this differential equation, we will use the formula logen=nloge\log {e^n} = n\log e . Also, keep in mind the value of loge=1\log e = 1 .

Complete step by step solution:
The differential equation given to us is: y=ey(2x4)y' = {e^{ - y}}\left( {2x - 4} \right) , where y(5)=0y\left( 5 \right) = 0 .
We can write this as dydx=ey(2x4)\dfrac{{dy}}{{dx}} = {e^{ - y}}\left( {2x - 4} \right) .
Now in the next step, we will multiple both the sides of the above equation by ey{e^y} , we get,

eydydx=eyey(2x4) eydydx=eyy(2x4) eydydx=(2x4)  {e^y}\dfrac{{dy}}{{dx}} = {e^y}{e^{ - y}}\left( {2x - 4} \right) \\\ \Rightarrow {e^y}\dfrac{{dy}}{{dx}} = {e^{y - y}}\left( {2x - 4} \right) \\\ \Rightarrow {e^y}\dfrac{{dy}}{{dx}} = \left( {2x - 4} \right) \\\

Now, we will again multiply both the sides by dxdx ,

dxeydydx=(2x4)dx eydy=(2x4)dx  dx{e^y}\dfrac{{dy}}{{dx}} = \left( {2x - 4} \right)dx \\\ \Rightarrow {e^y}dy = \left( {2x - 4} \right)dx \\\

In the next step, we will integrate both the sides of the equation.

eydy=(2x4)dx ey=2x224x+C  \int {} {e^y}dy = \int {} \left( {2x - 4} \right)dx \\\ \Rightarrow {e^y} = 2\dfrac{{{x^2}}}{2} - 4x + C \\\

ey=x24x+C \Rightarrow {e^y} = {x^2} - 4x + C
After integrating the equation, we will take natural log on both sides.
logey=log(x24x+C)\log {e^y} = \log \left( {{x^2} - 4x + C} \right)
We know that, logen=nloge\log {e^n} = n\log e , so here we will replace nn by yy , and we get,
yloge=log(x24x+C)y\log e = \log \left( {{x^2} - 4x + C} \right)
We know, loge=1\log e = 1 , so
y=log(x24x+C)y = \log \left( {{x^2} - 4x + C} \right)
Now, we want to find the value of C. we can find this value by using y(5)=0y\left( 5 \right) = 0 .
y(5)=log((5)24(5)+C)y\left( 5 \right) = \log \left( {{{\left( 5 \right)}^2} - 4\left( 5 \right) + C} \right) (replacing xx by 55 )
=log(2520+C)= \log \left( {25 - 20 + C} \right)
=log(5+C)= \log \left( {5 + C} \right)
Now, y(5)=0y\left( 5 \right) = 0 ,
log(5+C)=0\log \left( {5 + C} \right) = 0

5+C=e0 5+C=1 C=15 C=4  \Rightarrow 5 + C = {e^0} \\\ \Rightarrow 5 + C = 1 \\\ \Rightarrow C = 1 - 5 \\\ \Rightarrow C = - 4 \\\

Therefore, the value of CC is 4 - 4 .

Hence the final solution is y=log(x24x4)y = \log \left( {{x^2} - 4x - 4} \right)

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 xx should be kept on one side of the equation and all the terms containing yy , must be multiplied by the derivative. You must also remember the formulas of logarithm.