Question #7348

dy/dt=-y+5 y(0) =a

Expert's answer

dydt=y+5,y(0)=adydt=y+5dydt=(y5)dyy5=dt;dyy5=dt;lny5=t+C,\begin{array}{l} \frac{dy}{dt} = -y + 5, \quad y(0) = a \\ \frac{dy}{dt} = -y + 5 \Rightarrow \frac{dy}{dt} = -(y - 5) \Rightarrow \frac{dy}{y - 5} = -dt; \\ \int \frac{dy}{y - 5} = -\int dt; \\ \ln |y - 5| = -t + C, \end{array}


where C=constC = \text{const}.

So lny5=t+Cy5=eCty=5+eCt\ln |y - 5| = -t + C \Rightarrow y - 5 = e^{C - t} \Rightarrow y = 5 + e^{C - t}.

As y(0)=ay(0) = a then a=5+eC0C=lna5a = 5 + e^{C - 0} \Rightarrow C = \ln |a - 5|.

Therefore


y=5+elna5t=5+a5ety = 5 + e^{\ln |a - 5| - t} = 5 + \frac{a - 5}{e^t}


Answer: y=5+a5ety = 5 + \frac{a - 5}{e^t}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

LATEST TUTORIALS
APPROVED BY CLIENTS