dy/dx = k(L-y) where k and L are constants y(0)= 0
How does one find the integral for this and whats the reasoning please?
dy/dx = k(L-y) where k and L are constants y(0)= 0
How does one find the integral for this and whats the reasoning please?
if you divide both by $(L-Y)$ and multiple by $dx$,you get $\int(dy/(L-Y))=kdx$
or -$ln(L-y)=k*x+c$, multiply it by $-1$, you get $ln(L-Y)=-k*x-c$; now exponential it and you will be fine
This is a differential equation $y' = kL - ky$ with homogeneous equation $y_h' = - ky_h$ and particular equation $y_p = c(x)y_h$ and $y = y_h + y_p$
$y_h$ is obviously $k_1e^{-kx}$, $k_1$ another constant, the problem lies in finding $y_p$.
$y_p = c(x)y_h = c_1(x)e^{-kx}$ and $y_p' = c_1'(x)e^{-kx} - kc_1(x)e^{-kx}$ which is of the form $y_p' = c_1'(x)e^{-kx} - ky_p$, same with the initial problem. We then have $c_1'(x)e^{-kx} = kL$ and $\displaystyle c_1(x) = \int_{0}^{x} \cfrac{kL}{e^{-kt}}dt = kL \int_{0}^{x} e^{kt}dt= kL\left(\cfrac{e^kx}k-1\right)$ and $y_p = L-kLe^{-kx}$.
Thus, $y=y_h+y_p=k_1e^{-kx}+ L-kLe^{-kx}$, with $y(0) = 0$ one find $k_1= kL-L$ and finally $y = L(1-e^{-kx})$