Getting started with differential equations

AI Thread Summary
The discussion focuses on solving the differential equation dp/dt = 0.5p - 450. Participants clarify the transition from the equation in terms of p to its logarithmic form using the chain rule. The key point is understanding that d/dt ln|p - 900| = (1/(p - 900))(dp/dt) leads to the solution. The final solution is derived as p(t) = 900 + Ke^(t/2), where K is an arbitrary constant. The conversation emphasizes the importance of the chain rule and separation of variables in solving differential equations.
DivGradCurl
Messages
364
Reaction score
0
Folks, I'm just getting started with differential equations and I need some help.

\frac{dp}{dt}=0.5p-450 \qquad (1)

\frac{dp/dt}{p-900}=\frac{1}{2} \qquad \mbox{if }p \neq 900 \qquad (2)

\frac{d}{dt}\ln \left| p-900 \right| = \frac{1}{2} \qquad (3)

I'm stuck in (3). I know

\frac{d}{dt}\ln \left| x \right| = \frac{1}{x}

but I still don't understand how that is obtained.

Any help is highly appreciated.
 
Last edited:
Physics news on Phys.org
What do you mean?
\frac{d}{dt}ln|x(t)|=\frac{dx}{dt}\frac{1}{x}
 
I've just edited my previous post. There was a typo.

Well, the fact that in general

\frac{d}{dt}\ln \left| x \right| = \frac{1}{x}

should give some insight into the transition from (2) to (3), but I still don't get it. That's what I mean.

Thanks
 
Last edited:
thiago_j said:
I've just edited my previous post. There was a typo.

Well, the fact that in general

\frac{d}{dt}\ln \left| x \right| = \frac{1}{x}

should give some insight into the transition from (2) to (3), but I still don't get it. That's what I mean.

Thanks
First off, this is WRONG!
It should be:
\frac{d}{dt}\ln \left| x \right| = \frac{1}{x}\frac{dx}{dt}

Do you now see the connection between (2) and (3)?
 
Ooops. I'm sorry (it was a typo). I mean

\frac{d}{dx}\ln \left| x \right|=\frac{1}{x}

I still don't get the connection between (2) and (3). Could you please clarify that?
 
Note that, by the chain rule we have :
\frac{d}{dt}ln|p(t)-900|=\frac{1}{p-900}\frac{dp}{dt}=\frac{\frac{dp}{dt}}{p-900}
Does that help you?
 
Have you been taught the METHOD OF SEPARATION OF VARIABLES...?I.e.Working with differentials,just as if they were numbers which could be multiplied & divided with...?

Daniel.
 
So, my problem is with the chain rule step. Arildno, I don't see why

\frac{d}{dt}ln|p(t)-900|=\frac{1}{p-900}\frac{dp}{dt}

although I can apply it (for example):

\frac{d}{dx}2(4x+1)^2=2\cdot 2 \cdot (4x+1)\cdot 4=64x+16

Could please you explain me how that works?

Daniel, I've read about separation of variables. That's going to be useful once I'm done with (3) and move on.
 
Well, the chain rule states, letting x=p-900:
\frac{d}{dt}ln|p-900|=\frac{d}{dt}ln|x|=(\frac{d}{dx}ln|x|)\frac{dx}{dp}\frac{dp}{dt},\frac{d}{dx}ln|x|=\frac{1}{x},\frac{dx}{dp}=1

were you interested in a more detailed explanation behind the chain rule?
 
  • #10
What is \frac{d\ln u(t)}{dt}...?You said u knew how to apply the chain rule...


Daniel.
 
  • #11
I can now see the way to get there:

\frac{dp}{dt}=0.5p-450 \qquad (1)

\frac{dp/dt}{p-900}=\frac{1}{2} \qquad \mbox{if }p \neq 900 \qquad (2)

\frac{dp}{dt} \left[ \frac{1}{p-900}\right] =\frac{1}{2}

\frac{dp}{dt} \left[ \frac{d}{dp} \ln \left| p-900 \right| \right] =\frac{1}{2}

\frac{d}{dt}\ln \left| p-900 \right| = \frac{1}{2} \qquad (3)

Thank you
 
  • #12
Okay,how about posting the sollution to this ODE...?

Daniel.
 
  • #13
\frac{dp}{dt}=0.5p-450

\frac{dp/dt}{p-900}=\frac{1}{2} \qquad \mbox{if }p \neq 900

\frac{dp}{dt} \left[ \frac{1}{p-900}\right] =\frac{1}{2}

\frac{dp}{dt} \left[ \frac{d}{dp} \ln \left| p-900 \right| \right] =\frac{1}{2}

\frac{d}{dt}\ln \left| p-900 \right| = \frac{1}{2}

\int \left[ \frac{d}{dt}\ln \left| p-900 \right| \right] dt = \int \frac{1}{2} dt

\ln \left| p-900 \right| = \frac{t}{2} + \mathrm{C}

\left| p-900 \right| = e^{\frac{t}{2} + \mathrm{C}}

\left| p-900 \right| = e^{\mathrm{C}}e^{\frac{t}{2}}

p-900 = \pm e^{\mathrm{C}}e^{\frac{t}{2}}

p(t) = 900 + \mathrm{K}e^{\frac{t}{2}} \quad \mbox{where } \mathrm{K}=\pm e^{\mathrm{C}} \mbox{ is an arbitrary constant.}
 
Last edited:
  • #14
That is correct.
 
  • #15
Look at the bright side.Once u'll learn separation of variables,u'll be able to shortcut many calculations...:wink:

Daniel.
 
  • #16
Yes, indeed. :-p

\frac{dp}{dt}=0.5p-450

\frac{dp/dt}{p-900}=\frac{1}{2} \qquad \mbox{if }p \neq 900

\int \frac{dp}{p-900}=\int \frac{dt}{2}

\ln \left| p-900 \right| = \frac{t}{2} + \mathrm{C}

\left| p-900 \right| = e^{\frac{t}{2} + \mathrm{C}}

\left| p-900 \right| = e^{\mathrm{C}}e^{\frac{t}{2}}

p-900 = \pm e^{\mathrm{C}}e^{\frac{t}{2}}

p(t) = 900 + \mathrm{K}e^{\frac{t}{2}} \quad \mbox{where } \mathrm{K}=\pm e^{\mathrm{C}} \mbox{ is an arbitrary constant.}
 
Back
Top