Question
Question: Let \(y=y\left( x \right)\) be the solution of the differential equation \(\dfrac{dy}{dx}+2y=f\left(...
Let y=y(x) be the solution of the differential equation dxdy+2y=f(x), where f\left( x \right)=\left\\{ \begin{matrix}
1,\text{ }x\in \left( 0,1 \right) \\\
0,\text{ otherwise} \\\
\end{matrix} \right.
If y(0)=0 then y(23) is
Solution
We solve this question by first comparing the given differential equation with dxdy+yP(x)=Q(x). Then we solve it by multiplying the equation with integrating factor by finding the integrating factor using the formula I.F=e∫P(x)dx. Then we solve the differential equation and find the values of the function y=y(x) when x∈(0,1) and when x∈/(0,1). Then we substitute the value x=0 in y(x) to find the value of function. Then we substitute the value x=23 in y(x) to find the value y(23).
Complete step-by-step answer :
Let us consider the given differential equation dxdy+2y=f(x).
As we see, it is in the form of dxdy+yP(x)=Q(x).
If any differential equation is of the above form then we multiply it with an integrating factor which is given by
I.F=e∫P(x)dx
Then we solve the differential equation as
y×(I.F)=ye∫P(x)dx=∫e∫P(x)dxQ(x)dx=∫(I.F)×Q(x)dx
Here, by comparing the given differential equation with the above form of differential equation we can say that,
P(x)=2 and Q(x)=f(x)
So, now let us find the integrating factor for our given differential equation,
⇒I.F=e∫2dx⇒I.F=e2∫dx⇒I.F=e2x
So, we get the solution of the differential equation as
ye2x=∫e2xf(x)dx
As we are given that f\left( x \right)=\left\\{ \begin{matrix}
1,\text{ }x\in \left( 0,1 \right) \\\
0,\text{ otherwise} \\\
\end{matrix} \right., let us substitute the value of f(x) in the above solution of differential equation.
When x∈(0,1)
⇒ye2x=∫e2x×1dx⇒ye2x=∫e2xdx
Now let us consider the formula ∫eaxdx=aeax+c. Using this we can write the above equation as,
⇒ye2x=2e2x+c
Now let us divide the above equation with e2x.
⇒y=21+ce−2x
As, we are given that y=y(x) we can substitute it in the above equation.
⇒y(x)=21+ce−2x
So, we get the value of y(x) in the interval x∈(0,1) as y(x)=21+ce−2x.
When x∈/(0,1)
⇒ye2x=∫e2x×0dx⇒ye2x=∫0dx
Now let us consider the formula ∫0dx=constant. Using this we can write the above equation as,
⇒ye2x=C⇒y=Ce−2x
So, we get the function y(x) as
y\left( x \right)=\left\\{ \begin{matrix}
\dfrac{1}{2}-c{{e}^{-2x}},\text{ }x\in \left( 0,1 \right) \\\
C{{e}^{-2x}},\text{ otherwise} \\\
\end{matrix} \right.
We are given that y(0)=0.
When x=0 the function is y(x)=Ce−2x. So, substituting the value x=0, we get
⇒y(0)=0=Ce−2(0)⇒Ce0=0⇒C=0
Then the function becomes y\left( x \right)=\left\\{ \begin{matrix}
\dfrac{1}{2}-c{{e}^{-2x}},\text{ }x\in \left( 0,1 \right) \\\
0,\text{ otherwise} \\\
\end{matrix} \right.
As we are asked to find the value of y(23), let us substitute the value x=23 in the above function y(x).
As 23∈/(0,1), value of y(23) is 0.
Hence, we get the value of y(23) as 0.
Hence, the answer is 0.
Note : The main mistake one does is one might not check that when we are given x=0, it does not belong to the interval (0,1) and take the value of function as y(x)=21+ce−2x and find the value of c and then find the value of y(23). But it is wrong. Here we need to consider the function when x does not belong to (0,1).