I need help with this calculus problem
The producer of a certain commodity determines that to protect profits, the price p should decrease at a rate equal to half the inventory surplus $S−D$, where $S$ and $D$ are respectively the supply and demand for the commodity. Suppose the supply and demand vary with price in such a way that $S(p)=80+3p$ and $D(p)=140−2p$ and that the price is $3$ dollars per unit when $t=0$. Determine $p(t)$.
Can anyone show me how they solve ?
Let's phrase the problem mathematically. You are being asked to solve::
$\frac{dp}{dt} = -\frac{1}{2} (S(p)-D(t))$
So substituting in the given supply and demand equations:
$\frac{dp}{dt} = -\frac{1}{2} (5p-60)$
Separating the variables:
$\frac{dp}{p-12} = -\frac{5}{2} dt$
Integrating both sides, we get the general result:
$\ln|p-12| = -\frac{5}{2}t+C$
...where C is a constant.
Exponentiate get both sides to tidy things up:
$|p-12|=Ae^{-\frac{5}{2}t}$
For some constant $A$. But you were given that $p$ was $3$ when $t$ was $0$.
So $A=-9$ and our final answer:
$p(t)=-9e^{-\frac{5}{2}t}+12$