Why Do Cats Chase Each Other in a Square Room?

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

The discussion focuses on the problem of four cats positioned at the corners of a square room, each chasing the next cat at a constant speed until they converge at the center. The trajectories of the cats are not circular but spiral, as confirmed by the equations of motion derived from their angular coordinates. The participants suggest using Matlab to plot these trajectories and solve the differential equations governing their motion. Key equations include the motion equations and their derivatives, which can be implemented in Matlab for visualization.

PREREQUISITES
  • Understanding of differential equations
  • Familiarity with Matlab for plotting and solving equations
  • Knowledge of polar coordinates and their application in motion
  • Basic concepts of kinematics and motion in two dimensions
NEXT STEPS
  • Learn how to implement differential equations in Matlab
  • Research the use of polar coordinates in motion analysis
  • Explore Matlab's plotting functions for visualizing trajectories
  • Study the mathematical derivation of spiral trajectories in kinematics
USEFUL FOR

Students in physics or mathematics, Matlab users, and anyone interested in understanding motion dynamics and trajectory plotting in a two-dimensional space.

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

r = r_0 e^{-(\theta - \theta_0)}

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 \pi /2 out of phase with each other from one to the next.

With constant speed, v, the equations of motion become

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

and

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

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

\frac {dR}{dt} = - \frac {v}{\sqrt 2}

and

R \frac {d \theta}{dt} = \frac {v}{\sqrt 2}

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
3K
  • · Replies 3 ·
Replies
3
Views
1K
  • · 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