MHB -1.1.1c Solve for the following initial value

  • Thread starter Thread starter karush
  • Start date Start date
  • Tags Tags
    Initial Value
karush
Gold Member
MHB
Messages
3,240
Reaction score
5
$1.1.2c\\ \displaystyle \frac{dy}{dt}=2y-10, \qquad y(0)=y_0$
rewrite
$\quad\displaystyle y'-2y=-10$
obtain u(x)
$\quad\displaystyle u(t)=\exp\int -2 \, dt=e^{-2t}$
integrate using the boundaries:
$\quad\displaystyle \int_{y_0}^{e^{-2t}y}\,du=-10\int_{0}^{t}e^{-2v}\,dv$
resulting in
$\quad\displaystyle e^{-2t}y-y_0=-5\left(e^{-2t}-1\right)$
multiply thru by $e^{2t}$
$\quad\displaystyle y-y_0e^{2t}=5\left(1-e^{2t}\right)$
then
$\quad\displaystyle y=5\left(1-e^{2t}\right)+y_0e^{2t}$
then
$\quad\displaystyle y=5-5e^{2t}+y_0e^{2t}$
then
$\quad\displaystyle y=5-(y_0+5)e^{-2t}$
book answer
$\quad\displaystyle y=5+(y_0-5)e^{-2t}$ok seems to be a sign error someplace
 
Physics news on Phys.org
$\dfrac{dy}{dt} = 2(y-5)$

$\dfrac{dy}{y-5} = 2 \,dt$

$\ln|y-5| = 2t+ C$

$y(0) = y_0 \implies \ln|y_0-5| = C$

$\ln|y-5| = 2t+ \ln|y_0-5|$

$\ln \bigg| \dfrac{y-5}{y_0-5} \bigg| = 2t$

$\dfrac{y-5}{y_0-5} = e^{2t}$

$y-5 = (y_0-5)e^{2t}$

$y = 5 + (y_0-5)e^{2t}$

book answer should have a positive exponent ...
 
skeeter said:
$\dfrac{dy}{dt} = 2(y-5)$

$\dfrac{dy}{y-5} = 2 \,dt$

$\ln|y-5| = 2t+ C$

$y(0) = y_0 \implies \ln|y_0-5| = C$

$\ln|y-5| = 2t+ \ln|y_0-5|$

$\ln \bigg| \dfrac{y-5}{y_0-5} \bigg| = 2t$

$\dfrac{y-5}{y_0-5} = e^{2t}$

$y-5 = (y_0-5)e^{2t}$

$y = 5 + (y_0-5)e^{2t}$

book answer should have a positive exponent ...

oh this one?
View attachment 8707

so you did this without the $u(x)$ method!
 
$1.1.2c\\ \displaystyle \frac{dy}{dt}=2y-10, \qquad y(0)=y_0$
rewrite
$\quad\displaystyle y'-2y=-10$
obtain u(x)
$\quad\displaystyle u(t)=\exp\int -2 \, dt=e^{-2t}$
integrate using the boundaries:
$\quad\displaystyle \int_{y_0}^{e^{-2t}y}\,du=-10\int_{0}^{t}e^{-2v}\,dv$
resulting in
$\quad\displaystyle e^{-2t}y-y_0=-5\left(e^{-2t}-1\right)$
multiply thru by $e^{2t}$
$\quad\displaystyle y-y_0e^{2t}=-5\left(1-e^{2t}\right)$
then
$\quad\displaystyle y=-5\left(1-e^{2t}\right)+y_0e^{2t}$
then
$\quad\displaystyle y=-5+5e^{2t}+y_0e^{2t}$
then
$\quad\displaystyle y=5-(y_0+5)e^{2t}$
book answer
$\quad\displaystyle y=5+(y_0-5)e^{-2t}$still sign ?
 
using an integrating factor ...

$\dfrac{dy}{dt} = 2y-10$

$\dfrac{dy}{dt} - 2y = -10$

$\mu(t) = e^{-2t}$

$e^{-2t}\left(\dfrac{dy}{dt} - 2y\right) = -10e^{-2t}$

$\dfrac{d}{dt}\left(e^{-2t} \cdot y\right) = -10e^{-2t}$

integrate both sides ...

$e^{-2t} \cdot y = 5e^{-2t} + C$

$y(0) = y_0 \implies y_0 = 5 + C \implies C = y_0 - 5$

$e^{-2t} \cdot y = 5e^{-2t} + y_0 - 5$

multiply every term by $e^{2t}$ ...

$y = 5 + (y_0 - 5)e^{2t}$
 
karush said:
$1.1.2c\\ \displaystyle \frac{dy}{dt}=2y-10, \qquad y(0)=y_0$
rewrite
$\quad\displaystyle y'-2y=-10$
obtain u(x)
$\quad\displaystyle u(t)=\exp\int -2 \, dt=e^{-2t}$
integrate using the boundaries:
$\quad\displaystyle \int_{y_0}^{e^{-2t}y}\,du=-10\int_{0}^{t}e^{-2v}\,dv$
resulting in
$\quad\displaystyle e^{-2t}y-y_0=-5\left(e^{-2t}-1\right)$
multiply thru by $e^{2t}$
$\quad\displaystyle y-y_0e^{2t}=-5\left(1-e^{2t}\right)$
then
$\quad\displaystyle y=-5\left(1-e^{2t}\right)+y_0e^{2t}$
then
$\quad\displaystyle y=-5+5e^{2t}+y_0e^{2t}$
then
$\quad\displaystyle y=5-(y_0+5)e^{2t}$
book answer
$\quad\displaystyle y=5+(y_0-5)e^{-2t}$still sign ?
In my book [math]\dfrac{-10}{-2} = 5[/math].

Here's a higher brow method, used when we have a linear nth order equation. (It's kinda overkill in this situation.)

Method of Characteristics:
[math]y' - 2y = -10[/math]

Homogeneous equation:
[math]y' - 2y = 0[/math]

Thus [math]m - 2 = 0 \implies m = 2[/math]

So the homogeneous solution is [math]y = Ae^{2t}[/math]

For the particular solution we take y = B
[math]y' = 0[/math]

So
[math]y' - 2y = -10 \implies 0 - 2(B) = -10 \implies B = 5[/math]

Thus for the whole equation
[math]y = A e^{2t} + 5[/math]

(Then use [math]y(0) = y_0[/math] to find A.)

-Dan
 
Thread 'Direction Fields and Isoclines'
I sketched the isoclines for $$ m=-1,0,1,2 $$. Since both $$ \frac{dy}{dx} $$ and $$ D_{y} \frac{dy}{dx} $$ are continuous on the square region R defined by $$ -4\leq x \leq 4, -4 \leq y \leq 4 $$ the existence and uniqueness theorem guarantees that if we pick a point in the interior that lies on an isocline there will be a unique differentiable function (solution) passing through that point. I understand that a solution exists but I unsure how to actually sketch it. For example, consider a...
Back
Top