Solve this separable differential equation

46 Views Asked by At

How would I go about solving the following separable differential equation?

$\frac{dx(t)}{dt}=8-3x$ with $x(0)=4$?

My solution thus far is the following:

$\int \frac{dx(t)}{8-3x}=\int dt + C$

$\Rightarrow \text{ln}|8-3x(t)|=-3(t+C)$

Now using the fact that $x(0)=4$ we can solve for $C=-\frac{1}{3}\text{ln}|4|$. From this, I would seem to get

$|8-3x(t)|=e^{-3t-\frac{1}{3}\text{ln}4}$

but something seems to go wrong. Am I making a mistake somewhere and how could I solve this entirely?

1

There are 1 best solutions below

0
On

$\frac{dx(t)}{dt}=8-3x$

$\int \frac{dx(t)}{8-3x}=\int dt $

$\frac{ln(|8-3x|)}{-3}=t+C$

$\displaystyle(ln|8-3x|)=-3t+3C$

When t=0, x=4 therefore

$ln4=3C$ and $C=\frac{ln4}{3}$

$\displaystyle(ln|8-3x|)=-3t+ln4$

$|8-3x|=e^{-3t+ln4}=e^{-3t}. e^{ln4}=4.e^{-3t}$

therefore required solution

$|8-3x|=4.e^{-3t}$