Solveeit Logo

Question

Question: How do you find all solutions of the differential equation \(\dfrac{dy}{dx}=B+ky\) ?...

How do you find all solutions of the differential equation dydx=B+ky\dfrac{dy}{dx}=B+ky ?

Explanation

Solution

To find all solutions of the differential equation dydx=B+ky\dfrac{dy}{dx}=B+ky , we have to collect x terms including dy to one side and others to the other side. Then we will integrate both sides and find the value of y.

Complete step by step solution:
We have to find all solutions of the differential equation dydx=B+ky\dfrac{dy}{dx}=B+ky . Let us find take the B+kyB+ky to LHS and dxdx to RHS.
dyB+ky=dx\Rightarrow \dfrac{dy}{B+ky}=dx
Now, let us integrate both the sides. The above equation becomes
dyB+ky=dx...(i)\int{\dfrac{dy}{B+ky}}=\int{dx}...(i)
Let us consider u=B+kyu=B+ky . Let us differentiate both sides.
du=kdy duk=dy...(ii) \begin{aligned} & \Rightarrow du=kdy \\\ & \Rightarrow \dfrac{du}{k}=dy...(ii) \\\ \end{aligned}
Now, let us multiply and divide LHS of equation (i) by k.
1kkdyB+ky=dx\dfrac{1}{k}\int{\dfrac{kdy}{B+ky}}=\int{dx}
Let us now substitute (ii) in the above equation.
1kduu=dx\dfrac{1}{k}\int{\dfrac{du}{u}}=\int{dx}
We will now integrate. We know that 1xdx=logx+C\int{\dfrac{1}{x}dx}=\log \left| x \right|+C and dx=x\int{dx}=x . Hence, the above equation becomes
1klogu=x+C1\dfrac{1}{k}\log \left| u \right|=x+{{C}_{1}}
Let us now substitute the value of u in the above equation.
1klogB+ky=x+C1\Rightarrow \dfrac{1}{k}\log \left| B+ky \right|=x+{{C}_{1}}
Now, we have to take l from LHS to RHS.
logB+ky=k(x+C1) logB+ky=kx+kC1 \begin{aligned} & \Rightarrow \log \left| B+ky \right|=k\left( x+{{C}_{1}} \right) \\\ & \Rightarrow \log \left| B+ky \right|=kx+k{{C}_{1}} \\\ \end{aligned}
Let us write kC1=C2k{{C}_{1}}={{C}_{2}} since it’s a constant.
logB+ky=kx+C2\Rightarrow \log \left| B+ky \right|=kx+{{C}_{2}}
We have to take anti-logarithm on both sides.
B+ky=ekx+C2\Rightarrow \left| B+ky \right|={{e}^{kx+{{C}_{2}}}}
We know that am+n=am.an{{a}^{m+n}}={{a}^{m}}.{{a}^{n}} . Hence, the above equation becomes
B+ky=ekxeC2\Rightarrow \left| B+ky \right|={{e}^{kx}}{{e}^{{{C}_{2}}}}
Let us denote eC2{{e}^{{{C}_{2}}}} as CC .
B+ky=ekxC\Rightarrow \left| B+ky \right|={{e}^{kx}}C
Let us remove the absolute value. We are considering B+kyB+ky to be positive.
B+ky=ekxC\Rightarrow B+ky={{e}^{kx}}C
Let us take B to RHS.
ky=ekxCB\Rightarrow ky={{e}^{kx}}C-B
Now, we have to move k to RHS.
y=ekxCBk\Rightarrow y=\dfrac{{{e}^{kx}}C-B}{k}
Hence, the solution of differential equation dydx=B+ky\dfrac{dy}{dx}=B+ky is y=CekxBky=\dfrac{C{{e}^{kx}}-B}{k} , where C=ekC1C={{e}^{k{{C}_{1}}}} .

Note: Students must know how to the rules and formulas of integration. We can also write the constants as C from the beginning. B+ky\left| B+ky \right| denotes that B+kyB+ky can also be negative, that is, B+ky<0B+ky<0 . But we usually take the positive condition.