B Solving a differential equation with a unit vector in it

Alexander350
Messages
36
Reaction score
1
I need to solve:
\dot{\mathbf{r}}=-kv\hat{r} - \dot{\mathbf{r}_s}
However, I do not know how to deal with the fact that there is a unit vector. How can this be done? \dot{\mathbf{r}_s} is a constant vector.
 
Physics news on Phys.org
Alexander350 said:
I need to solve:
\dot{\mathbf{r}}=-kv\hat{r} - \dot{\mathbf{r}_s}
However, I do not know how to deal with the fact that there is a unit vector. How can this be done? \dot{\mathbf{r}_s} is a constant vector.
##\hat r = \frac {\vec r}{|\vec r|}## -- Does that help?
 
Mark44 said:
##\hat r = \frac {\vec r}{|\vec r|}## -- Does that help?
This is what it was written as initially, but the problem is that the absolute value of the vector also changes with time, so I did not know what to do.
 
What is v in this problem? Is it ##|\vec v|##?
 
Mark44 said:
What is v in this problem? Is it ##|\vec v|##?
v is just a constant number.
 
I asked the wrong question. What I meant was, could v be ##|\dot r|##?
 
Mark44 said:
I asked the wrong question. What I meant was, could v be ##|\dot r|##?
No, v is just a number. It would be the same question if you replaced kv with another constant c.
 
Multiply ##\hat r## by 1, in the form of ##\frac{|r|}{|r|}##.
In other words, replace
##\dot{\mathbf{r}}=-kv\hat{r} - \dot{\mathbf{r}_s}##
with ##\dot{\mathbf{r}}=-kv\frac 1 {|r|} |r| \hat{r} - \dot{\mathbf{r}_s} = -\frac{kv}{|r|} \vec r - \dot{\mathbf{r}_s}##
Now you have a DE in terms of dr/dt and r, plus a constant.

BTW, you really should have posted this question in the Homework section.
 
Last edited:
Mark44 said:
Multiply ##\hat r## by 1, in the form of ##\frac{|r|}{|r|}##.
In other words, replace
##\dot{\mathbf{r}}=-kv\hat{r} - \dot{\mathbf{r}_s}##
with ##\dot{\mathbf{r}}=-kv\frac 1 {|r|} |r| \hat{r} - \dot{\mathbf{r}_s} = -\frac{kv}{|r|} \vec r - \dot{\mathbf{r}_s}##
Now you have a DE in terms of dr/dt and r, plus a constant.

BTW, you really should have posted this question in the Homework section.
How does this help when |r| is not constant? And where does the \frac 1 {|r|} come from on the constant?
 
Last edited by a moderator:
  • #10
Alexander350 said:
How does this help when |r| is not constant?
Are you sure that it's not constant? You didn't provide the full problem, so there's the possibility that you're making an assumption that isn't necessary. For example, if a particle is moving in a circular path at constant speed, ##\dot r## is changing, but ##|\dot r|## is constant.
Alexander350 said:
And where does the \frac 1 {|r|} come from on the constant?
It shouldn't be there. When I started to write that, I was multiplying both sides by |r|, but I changed my mind, and multiplied one term of the equation by ##\frac{|r|}{|r|}##. I have edited my earlier response and the text that you quoted.
 
  • #11
Mark44 said:
Are you sure that it's not constant? You didn't provide the full problem, so there's the possibility that you're making an assumption that isn't necessary. For example, if a particle is moving in a circular path at constant speed, ##\dot r## is changing, but ##|\dot r|## is constant.
It is definitely not constant. It is equal to the relative displacement between two things which are getting closer together over time. If it is not constant, does that make this approach impossible to solve?
 
  • #12
Can you post the actual problem statement? You've stated that v is "just a number," but I can't help thinking the v is somehow related to velocity or speed.
 
  • #13
Mark44 said:
Can you post the actual problem statement? You've stated that v is "just a number," but I can't help thinking the v is somehow related to velocity or speed.
Smugglers set off in a ship in a direction perpendicular to a straight shore and move at a constant speed v. The coastguard's cutter is a distance a along the shore from the smugglers' ship, and leaves the shore at the same time. The cutter always moves at a constant speed directly towards the smugglers' ship, and catches up with it at a distance a from the shore. How many times greater is the speed of the coastguard's cutter than the smugglers' ship?
I started with the equation \frac{d\mathbf{r_c}}{dt}=kv\frac{\mathbf{r_s}-\mathbf{r_c}}{|\mathbf{r_s}-\mathbf{r_c}|} My logic behind this was that speed of the coastguard is some multiple of the speed of the smugglers and its velocity was in the direction of their relative displacement. Then someone recommended to set \mathbf{r}=\mathbf{r}_c-\mathbf{r}_s and rewrite the equation as \dot{\mathbf{r}}=-kv\hat{r} - \dot{\mathbf{r}_s}. I set \mathbf{r_s}=\left[ \begin{array}{ccc}0\\v\end{array}\right]t and at t=0, \mathbf{r_c}=\left[\begin{array}{ccc}a\\0\end{array}\right]. I know there are other, probably better ways of solving this problem by finding components of velocity, but I wanted to try and solve it this way.
 
  • #14
I don't have time to look at this now, so maybe someone else will chime in. A possible way out is to get rid of the unit vector in your DE, since that's where the bottleneck is.
 
Back
Top