Solveeit Logo

Question

Question: The solution of differential equation, \(\dfrac{dy}{dx}={{\left( y-x \right)}^{2}}\) when \(y\left( ...

The solution of differential equation, dydx=(yx)2\dfrac{dy}{dx}={{\left( y-x \right)}^{2}} when y(1)=1y\left( 1 \right)=1, is –
(a) loge2y2x=2(y1){{\log }_{e}}\left| \dfrac{2-y}{2-x} \right|=2\left( y-1 \right)
(b) loge1+xy1x+x=x+y2-{{\log }_{e}}\left| \dfrac{1+x-y}{1-x+x} \right|=x+y-2
(c) loge2x2y=xy{{\log }_{e}}\left| \dfrac{2-x}{2-y} \right|=x-y
(d) loge1x+y1+xy=2(x1)-{{\log }_{e}}\left| \dfrac{1-x+y}{1+x-y} \right|=2\left( x-1 \right)

Explanation

Solution

Here, we will use a substitution method to find the solution of the given differential equation. After finding the general solution, we will use the given condition y(1)=1y\left( 1 \right)=1 to find the value of constant obtained in the general solution and thus conclude our final answer. We will use the basic differentiation and integration for solving the differentiation equation. Integration formula that we will use are given as dx1x2=12log21+x1x\int{\dfrac{dx}{1-{{x}^{2}}}=\dfrac{1}{2}}{{\log }_{2}}\dfrac{1+x}{1-x} and 1dx=x\int{1dx=x}

Complete step-by-step solution
Given equation is dydx=(yx)2\dfrac{dy}{dx}={{\left( y-x \right)}^{2}} with given condition y(1)=1y\left( 1 \right)=1, which means when we put value of xx as 11, the solution value of yy is also 11.
dydx=(yx)2        ...(1)\dfrac{dy}{dx}={{\left( y-x \right)}^{2}}~~~~~~~~...\left( 1 \right)
We will use this substitution method to solve this equation, thus we will put tt in place of (xy)\left( x-y \right). Let (xy)=t\left( x-y \right)=t.
Let us take derivative with respect to xx on both sides, we get –
dxdxdydx=dtdx dydx=1dtdx \begin{aligned} & \dfrac{dx}{dx}-\dfrac{dy}{dx}=\dfrac{dt}{dx} \\\ &\Rightarrow \dfrac{dy}{dx}=1-\dfrac{dt}{dx} \\\ \end{aligned}
Putting both values in equation (1), we get –
dtdx=1t2\dfrac{dt}{dx}=1-{{t}^{2}}
By using a variable separable method, let us take terms containing tt on one side and terms containing xx on the other side. We will get –
dt1t2=dx\dfrac{dt}{1-{{t}^{2}}}=dx
To solve this equation, let us take integration on both sides. We get –
11t2.dt=1.dx\int{\dfrac{1}{1-{{t}^{2}}}.dt=\int{1.}dx}
Solving LHS of the equation first, we get –
11t2.dt\int{\dfrac{1}{1-{{t}^{2}}}.dt}
Factoring numerator and denominator , we get –
1(1t)(1+t).dt\int{\dfrac{1}{\left( 1-t \right)\left( 1+t \right)}.dt}
Using partial fraction decomposition,

&\dfrac{1}{\left( 1-t \right)\left( 1+t \right)}=\dfrac{{{A}_{1}}}{\left( 1+t \right)}+\dfrac{{{A}_{2}}}{\left( 1-t \right)} \\\ &\Rightarrow \dfrac{1}{\left( 1-t \right)\left( 1+t \right)}=\dfrac{{{A}_{1}}\left( 1-t \right)+{{A}_{2}}\left( 1+t \right)}{\left( 1+t \right)} \\\ &\Rightarrow 1={{A}_{1}}\left( 1-t \right)+{{A}_{2}}\left( 1+t \right) \\\ \end{aligned}$$ Putting $t=1$, $$\begin{aligned} & {{A}_{2}}\left( 1+1 \right)=1 \\\ &\Rightarrow {{A}_{2}}=\dfrac{1}{2} \\\ \end{aligned}$$ Putting $t=-1$, $$\begin{aligned} & {{A}_{1}}\left( 1+1 \right)=1 \\\ &\Rightarrow {{A}_{1}}=\dfrac{1}{2} \\\ \end{aligned}$$ Therefore, $\begin{aligned} & \int{\dfrac{1}{\left( 1-t \right)\left( 1+t \right)}.dt=}\int{\dfrac{1}{2\left( 1+t \right)}.dt+\int{\dfrac{1}{2\left( 1-t \right)}}}.dt \\\ &\Rightarrow \int{\dfrac{1}{\left( 1-t \right)\left( 1+t \right)}.dt=}\dfrac{1}{2}\left[ \int{\dfrac{1}{\left( 1+t \right)}.dt+\int{\dfrac{1}{\left( 1-t \right)}}}.dt \right] \\\ \end{aligned}$ Let $\int{\dfrac{1}{\left( 1+t \right)}.dt={{I}_{1}}}$ and $\int{\dfrac{1}{\left( 1-t \right)}.dt={{I}_{2}}}$ Let us solve for $${{I}_{1}}$$ and $${{I}_{2}}$$ separately. $${{I}_{1}}=\int{\dfrac{dt}{\left( 1+t \right)}}$$ Let $1+t=u$ $\begin{aligned} & dt=du \\\ &\Rightarrow {{I}_{1}}=\int{\dfrac{du}{u}} \\\ \end{aligned}$ Since $\int{\dfrac{dx}{x}={{\log }_{e}}\left| x \right|}$, therefore – ${{I}_{1}}=\int{\dfrac{du}{u}}={{\log }_{e}}\left| u \right|$, where $u=1+t$ Therefore, ${{I}_{1}}=\ln \left| 1+t \right|$ $${{I}_{2}}=\int{\dfrac{dt}{\left( 1-t \right)}}$$ Let $1-t=v$ $\begin{aligned} & -dt=dv \\\ \Rightarrow {{I}_{2}}=\int{\dfrac{-dv}{v}}=-\int{\dfrac{dv}{v}} \\\ \end{aligned}$ Since, $\int{\dfrac{dx}{x}={{\log }_{e}}\left| x \right|}$, therefore – ${{I}_{2}}=-\int{\dfrac{dv}{v}}=-{{\log }_{e}}\left| v \right|$, where $v=1-t$ Therefore, Hence, $$\int{\dfrac{dt}{1-{{t}^{2}}}}$$ becomes $\dfrac{1}{2}\left( {{I}_{1}}+{{I}_{2}} \right)=\dfrac{1}{2}\left( {{\log }_{e}}\left| 1+t \right|-{{\log }_{e}}\left| 1-t \right| \right)$ Since, ${{\log }_{e}}x-{{\log }_{e}}y={{\log }_{e}}\left( \dfrac{x}{y} \right)$ Therefore, $$\int{\dfrac{dt}{1-{{t}^{2}}}}=\dfrac{1}{2}\left[ {{\log }_{e}}\left| \dfrac{1+t}{1-t} \right| \right]=\dfrac{1}{2}{{\log }_{e}}\left| \dfrac{1+t}{1-t} \right|$$ Also, we know that $\int{1dx=x}$. So using both results in above equation, we get – $$\dfrac{1}{2}{{\log }_{e}}\left| \dfrac{1+t}{1-t} \right|=x+c$$, where $c$ is any constant. Now the solution is obtained in terms of $t$, but we have to find it in terms of $x$ and $y$. Thus putting value of $x-y=t$ back, we get – $$\dfrac{1}{2}{{\log }_{e}}\left( \dfrac{1+x-y}{1-x+y} \right)=x+c~~~~~~~~...\left( 2 \right)$$ Hence, we have obtained a general solution of the given differential equation. Now let us use the given condition $y\left( 1 \right)=1$to find the value of $c$ which will help us in finding the required answer. Putting $x=1$ and $y=1$ in equation (2), we get – $$\begin{aligned} & \dfrac{1}{2}{{\log }_{e}}\left( \dfrac{1+1-1}{1-1+1} \right)=1+c \\\ &\Rightarrow \dfrac{1}{2}{{\log }_{e}}\left( 1 \right)=1+c \\\ \end{aligned}$$ As we know ${{\log }_{e}}\left( 1 \right)=0$, thus $$\begin{aligned} & 1+c=0 \\\ & \Rightarrow c=-1 \\\ \end{aligned}$$ Hence, we have obtained a value of $c$ which is $-1$. Now putting this value in equation (2), we get – $$\dfrac{1}{2}{{\log }_{e}}\left( \dfrac{1+x-y}{1-x+y} \right)=x-1$$ Multiplying both sides by 2, we get – $${{\log }_{e}}\left( \dfrac{1+x-y}{1-x+y} \right)=2\left( x-1 \right)$$ As we know that $${{\log }_{e}}\left( x \right)=-{{\log }_{e}}\dfrac{1}{x}$$ . Thus we get, $$-{{\log }_{e}}\left( \dfrac{1-x+y}{1+x-y} \right)=2\left( x-1 \right)$$, which is our required answer. **Hence, the correct option is (d).** **Note:** For solving differential equations, students should practice more and more to identify which method should be used. Also, students should not get confused given condition, the value inside the bracket represents the value of $x$ and the value at RHS represents the value of $y$. Students should learn integration formulas as there will be no time for deriving them during the exam. Don’t forget to put back the substituted value, the value we assume should always be eliminated at the final answer.