Solveeit Logo

Question

Question: Let \(y'(x) + y(x)g'(x) = g(x)g'(x),y(0) = 0,x \in \mathbb{R}\), where \(f'(x)\) denotes \(\dfrac{{d...

Let y(x)+y(x)g(x)=g(x)g(x),y(0)=0,xRy'(x) + y(x)g'(x) = g(x)g'(x),y(0) = 0,x \in \mathbb{R}, where f(x)f'(x) denotes df(x)dx\dfrac{{df(x)}}{{dx}} and g(x)g(x) is a given non – constant differentiable function on R\mathbb{R} with g(0)=g(2)=0g(0) = g(2) = 0. Then the value of y(2)y(2) is:
A. 0
B. 1
C. 2
D. 3

Explanation

Solution

We will use the integration factor for the linear differential equation and thus get the value of y(x) in terms of g(x) and then put in x = 0 to find the constant and then put in x = 2 to get the required value.

Complete step-by-step solution:
We are given the linear differential equation as:-
y(x)+y(x)g(x)=g(x)g(x)\Rightarrow y'(x) + y(x)g'(x) = g(x)g'(x)
We can write the above equation as follows:-
dydx+y(x)g(x)=g(x)g(x)\Rightarrow \dfrac{{dy}}{{dx}} + y(x)g'(x) = g(x)g'(x)
Now, if we compare this to the general linear differential equation which is dydx+Py=Q\dfrac{{dy}}{{dx}} + Py = Q where P and Q are functions of x only.
We can clearly see that P(x) = g’(x) and Q(x) = g’(x).g(x)
Now, we know that the equation dydx+Py=Q\dfrac{{dy}}{{dx}} + Py = Q has the integrating factor of ePdx{e^{\int {Pdx} }}.
And, then the solution of this equation is given by the following expression:-
y(x)×I.F.=Q×I.F.\Rightarrow y(x) \times I.F. = \int {Q \times I.F.}
Therefore, the equation dydx+y(x)g(x)=g(x)g(x)\dfrac{{dy}}{{dx}} + y(x)g'(x) = g(x)g'(x) will have the integrating factor of eg(x)dx{e^{\int {g'(x)dx} }}.
\Rightarrow Integrating Factor = eg(x){e^{g(x)}}
Therefore, its solution will be:-
y(x)×eg(x)=g(x)g(x)eg(x)dx\Rightarrow y(x) \times {e^{g(x)}} = \int {g(x)g'(x){e^{g(x)}}dx}
Let us assume that g(x) = t which implies that g’(x)dx = dt
y(x)et=tetdt\Rightarrow y(x){e^t} = \int {t{e^t}dt}
Now, we will use the formula: (u.v)dx=uvdx(ddx(u)vdx)dx\int {\left( {u.v} \right)dx} = u\int {vdx - \int {\left( {\dfrac{d}{{dx}}\left( u \right)\int {vdx} } \right)} } dx
So, we will then obtain:-
y(x)et=tetetdt\Rightarrow y(x){e^t} = t{e^t} - \int {{e^t}dt}
Now, we also know that integration of exponential function is now altered.
So, we will now obtain:-
y(x)et=tetet+C\Rightarrow y(x){e^t} = t{e^t} - {e^t} + C
We can rewrite it as:-
y(x)=t1+Cet\Rightarrow y(x) = t - 1 + C{e^{ - t}}
Substituting g(x) = t back, we will obtain:-
y(x)=g(x)1+Ceg(x)\Rightarrow y(x) = g(x) - 1 + C{e^{ - g(x)}} ……………….(1)
Now, let us put x = 0 in equation (1), we will then get:-
y(0)=g(0)1+Ceg(0)\Rightarrow y(0) = g(0) - 1 + C{e^{ - g(0)}}
Since, we are given that y(0) = 0 and g(0) = 0
0=01+C\Rightarrow 0 = 0 - 1 + C
C=1\Rightarrow C = 1
Putting this in equation (1), we will get:-
y(x)=g(x)1+eg(x)\Rightarrow y(x) = g(x) - 1 + {e^{ - g(x)}} ……………..(2)
Now, let us put x = 2 in equation (2), we will then get:-
y(2)=g(2)1+eg(2)\Rightarrow y(2) = g(2) - 1 + {e^{ - g(2)}}
Since, we are given that g(2) = 0
y(2)=01+e0\Rightarrow y(2) = 0 - 1 + {e^{ - 0}}
y(2)=1+1=0\Rightarrow y(2) = - 1 + 1 = 0

Hence, the correct answer is option (A).

Note: The students must note that it might be intriguing for you to use Rolle’s theorem on it because of the given condition on the function g(x) which resemble a lot like it but eventually when you come to y(x), you will have to apply converse of Rolle’s theorem, which is not necessarily always true for the same points. Therefore, it is not applicable here.