Solveeit Logo

Question

Question: When \[y = y(x)\] then find the solution of the differential equation \[\dfrac{{dy}}{{dx}} + 2y = f(...

When y=y(x)y = y(x) then find the solution of the differential equation dydx+2y=f(x)\dfrac{{dy}}{{dx}} + 2y = f(x) , where it is given f(x) = \left\\{ \begin{array}{l}1,\\\0,\end{array} \right.\left. \begin{array}{l}x \in [0,1]\\\otherwise\end{array} \right\\} . If y(0)=0y(0) = 0 then find out the value of y(32)y\left( {\dfrac{3}{2}} \right) .
A. e212e3\dfrac{{{e^2} - 1}}{{2{e^3}}}
B. e21e3\dfrac{{{e^2} - 1}}{{{e^3}}}
C. 12e\dfrac{1}{{2e}}
D. e2+12e4\dfrac{{{e^2} + 1}}{{2{e^4}}}

Explanation

Solution

The differential equation is of the form dydx+P(x)y=Q(x)\dfrac{{dy}}{{dx}} + P(x)y = Q(x) . First we will solve this by calculating the integrating factor. After that applying the given conditions calculate the initial value in the interval.Then we will calculate the desired value using that initial value.

Complete step-by-step solution:
Here dydx+2y=f(x)\dfrac{{dy}}{{dx}} + 2y = f(x) is a linear differential equation which is in the form of dydx+P(x)y=Q(x)\dfrac{{dy}}{{dx}} + P(x)y = Q(x) .
Where P(x)P(x) and Q(x)Q(x) are functions of xx .
Here the integrating factor I.F=eP(x)dxI.F = {e^{\int {P(x)dx} }}
We can find the solution of this equation using y(I.F)=Q(x)(I.F)dx+Cy(I.F) = \int {Q(x)(I.F)dx + C} .
As, In this case the equation is dydx+2y=f(x)\dfrac{{dy}}{{dx}} + 2y = f(x) .
So here P(x)=2P(x) = 2 and Q(x)=f(x)Q(x) = f(x)
we will calculate the integrating factor first.
I.F=e2dx\Rightarrow I.F = {e^{\int {2dx} }}
I.F=e2x\Rightarrow I.F = {e^{2x}}
Now substituting the value of I.FI.F in the equation y(I.F)=Q(x)(I.F)dx+Cy(I.F) = \int {Q(x)(I.F)dx + C} .
So, we get ye2x=f(x)e2xdx+C\Rightarrow y{e^{2x}} = \int {f(x){e^{2x}}dx + C} .
When x[0,1]x \in [0,1] then the value of f(x)=1f(x) = 1 .
Then the solution becomes ye2x=e2xdx+C\Rightarrow y{e^{2x}} = \int {{e^{2x}}dx + C}
Further integrating the right side and we get ye2x=e2x2+C \Rightarrow y{e^{2x}} = \dfrac{{{e^{2x}}}}{2} + C .
ye2x=e2x2+C\Rightarrow y{e^{2x}} = \dfrac{{{e^{2x}}}}{2} + C - Equation 1
As, it is given that y(0)=0y(0) = 0 i.e at x=0,y=0x = 0,y = 0 .
Substituting the values of xx and yy we get
(0)e0=e02+C\Rightarrow \left( 0 \right){e^0} = \dfrac{{{e^0}}}{2} + C
0=12+C\Rightarrow 0 = \dfrac{1}{2} + C
C=12\Rightarrow C = - \dfrac{1}{2}
Substituing the value of CC in equation 1.
Thus the equation becomes ye2x=e2x212y{e^{2x}} = \dfrac{{{e^{2x}}}}{2} - \dfrac{1}{2} when x[0,1]x \in [0,1] .
Now we can calculate the value of y(1)y(1) from this and use it as an initial value .
At x=1x = 1 we get ye2=e2212 \Rightarrow y{e^2} = \dfrac{{{e^2}}}{2} - \dfrac{1}{2} .
y(1)=e212e2\Rightarrow y(1) = \dfrac{{{e^2} - 1}}{{2{e^2}}}
Now when x[0,1]x \notin [0,1] then the value of f(x)=0f(x) = 0
Then we get the solution as ye2x=0+C2y{e^{2x}} = 0 + {C_2} ,Where C2{C_2} is the integrating factor in this case.
y=C2e2x\Rightarrow y = {C_2}{e^{ - 2x}}
Using the initial value condition we have C2=e212{C_2} = \dfrac{{{e^2} - 1}}{2} .
So we can say that y=e212e2xy = \dfrac{{{e^2} - 1}}{2}{e^{ - 2x}} for x[0,1]x \in [0,1] .
Now, we have to calculate the value of y(32)y\left( {\dfrac{3}{2}} \right) .
When x=32x = \dfrac{3}{2} then y(32)=e212×e2×32 \Rightarrow y\left( {\dfrac{3}{2}} \right) = \dfrac{{{e^2} - 1}}{2} \times {e^{ - 2 \times \dfrac{3}{2}}} .
y(32)=e212×e3\Rightarrow y\left( {\dfrac{3}{2}} \right) = \dfrac{{{e^2} - 1}}{2} \times {e^{ - 3}}
(32)=e212e3\Rightarrow \left( {\dfrac{3}{2}} \right) = \dfrac{{{e^2} - 1}}{{2{e^3}}}
So the value of y(32)y\left( {\dfrac{3}{2}} \right) is e212e3\dfrac{{{e^2} - 1}}{{2{e^3}}} .

Thus the correct option is A.

Note: While solving this type of problem we should put the functional value for the given interval only.Because this given function has different value in different interval.The value of yy is given for some given value of xx ,this will work as a condition which will help us finding the value of integration constants.