Why Do Cats Chase Each Other in a Square Room?

  • Thread starter Thread starter boob
  • Start date Start date
Click For Summary

Homework Help Overview

The problem involves four cats positioned at the corners of a square room, each chasing the next cat in a continuous motion until they converge at the center. The task is to compute and plot their trajectories using Matlab.

Discussion Character

  • Exploratory, Mathematical reasoning, Problem interpretation

Approaches and Questions Raised

  • Participants discuss the nature of the trajectories, with some suggesting they might be circular while others argue they are spirals. There are inquiries about how to approach the problem in Matlab, with references to the need for understanding differential equations and symmetry in the motion.

Discussion Status

Some participants have provided insights into the equations of motion and the symmetry of the problem, while others express uncertainty about how to implement these concepts in Matlab. There is a mix of understanding and confusion regarding the mathematical formulation and its application in the software.

Contextual Notes

There is mention of a lack of formal training in Matlab among the participants, which may be impacting their ability to tackle the problem effectively. Additionally, the instructor's expectations regarding the use of Matlab for solving differential equations are noted.

boob
Messages
5
Reaction score
0
I am totally stuck on this problem and really don't even know where to begin. So if someone could point me in the right direction it would be greatly appreciated.

Q. Four cats are in four corners of a square room of unitary base. At time t=0 they start chasing each other at unitary velocity, so that cat #1 runs in the direction of cat #2, #2 in the direction of #3, #3 in the direction of #4, and #4 in the direction of #1 until they meet in the center of the room. Compute and plot the trajectories of the cats using Matlab. :confused: :cry:
 
Physics news on Phys.org
Can anyone help?
 
wouln't it jus make a circle??
 
The trajectories will not be circular...I believe they are spirals.

Here's a similar problem with solution.
 
Thanks for the link to the similar problem. That looks very promising as far as establishing the position vectors. I am attatching a pdf image of what the plot is supposed to look like. However I still don't know how to go about tackling this in Matlab. My instructor seems to believe that the whole class is well versed in Matlab even though we have had no formal training on it.
 
Last edited:
You could just plot the trajectories

[tex]r = r_0 e^{-(\theta - \theta_0)}[/tex]

unless your instructor wants you to use MatLab to solve the differential equations.
 
That is exactly what he wants.
 
boob said:
That is exactly what he wants.

In that case, exploit the symmetry of the problem. At any instant, each cat will be exactly the same distance from each other - and from the center! Also, their "angular coordinates" will be [itex]\pi /2[/itex] out of phase with each other from one to the next.

With constant speed, v, the equations of motion become

[tex]\frac {d}{dt} R \cos \theta = - \frac {v}{\sqrt 2} (\sin \theta + \cos \theta)[/tex]

and

[tex]\frac {d}{dt} R \sin \theta = \frac {v}{\sqrt 2}(\cos \theta - \sin \theta)[/tex]

You can have MatLab solve these equations for you but if you want the full solution you can expand the derivatives and with a little algebra you should arrive at

[tex]\frac {dR}{dt} = - \frac {v}{\sqrt 2}[/tex]

and

[tex]R \frac {d \theta}{dt} = \frac {v}{\sqrt 2}[/tex]

and the rest is straightforward.
 
While I understand the mathematics involved I simply don't know how to enter the equation you have listed above in matlab. I've been tinkering with it for the past hour.
 
  • #10
I'm sorry - I don't use MatLab so I can't help you with the specifics of that package.
 

Similar threads

  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 13 ·
Replies
13
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 22 ·
Replies
22
Views
4K
  • · Replies 10 ·
Replies
10
Views
4K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 38 ·
2
Replies
38
Views
8K
  • · Replies 29 ·
Replies
29
Views
5K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 2 ·
Replies
2
Views
4K