1
$\begingroup$

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?

$\endgroup$
1
  • 1
    $\begingroup$ you had 3C and you directly kept C $\endgroup$ Commented Jun 6, 2021 at 4:45

1 Answer 1

1
$\begingroup$

$\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}$

$\endgroup$

You must log in to answer this question.