Plotting the trajectory of a particle in polar coordinates

Click For Summary

Homework Help Overview

The discussion revolves around plotting the trajectory of a particle in polar coordinates, specifically using expressions involving polar coordinates and their conversion to Cartesian coordinates. The original poster is uncertain about the correctness of their approach and the implications of their plot results.

Discussion Character

  • Exploratory, Conceptual clarification, Mathematical reasoning

Approaches and Questions Raised

  • The original poster attempts to resolve the expression for the angle in terms of time and expresses the position vector in polar coordinates. They question whether their plot represents one or two particles based on the colors used.
  • Some participants clarify the use of Mathematica's plotting functions, discussing the differences between PolarPlot and ParametricPlot, and suggest that the original poster's expression may not match their plot.
  • There are suggestions to practice plotting simpler curves to gain confidence in the plotting process.

Discussion Status

Participants have provided guidance on the plotting methods and clarified the mathematical expressions involved. The original poster has redone their plot based on the feedback received, indicating progress in the discussion.

Contextual Notes

There is mention of the original poster's relative inexperience with Mathematica, which may influence their understanding of the plotting commands and the interpretation of their results.

Lambda96
Messages
233
Reaction score
77
Homework Statement
Plot the curve of ##\rho(t)=\rho_0 + \rho_1 \sin^2(4 \pi t)##
Relevant Equations
none
Hi,

Unfortunately, I am not quite sure whether I have solved/plotted the following task correctly

Bildschirmfoto 2023-12-05 um 15.40.22.png

I started by resolving the expression ##\phi=2 \pi t## to t so that I can represent ##\rho(t)## with ##\rho(\phi)##

The vector ##\vec{e}_r## was written in my lecture as follows ##\vec{e}_{\rho}## , ##\vec{e}_{\rho}= \left(\begin{array}{c} \cos(\phi) \\ \sin(\phi) \end{array}\right)##

Then the position vector is ##\vec{r}(\phi)=\rho(\phi) \vec{e}_{\rho}=(\rho_0+\rho_1 \sin^2(2 \phi) ) \left(\begin{array}{c} \cos(\phi) \\ \sin(\phi) \end{array}\right)##

Then I plotted this expression using Mathematica from ##0## to ##2 \pi##

Bildschirmfoto 2023-12-05 um 16.04.07.png


Is that correct? Because doesn't the two different colors mean that I got the trajectory for two different particles instead of just one?
 
Physics news on Phys.org
Note that the expression ##\rho = 0.1 + \sin^2(4\pi t)## is always greater than or equal to 0.1. So, the trajectory never gets closer than 0.1 to the origin.

The format for Mathematica's PolarPlot is

1701793023547.png


Here, ##r## is just your ##\rho## expressed as a function of ##\phi##, but without the ##\vec{e}_{\rho}= \left(\begin{array}{c} \cos(\phi) \\ \sin(\phi) \end{array}\right)##. By putting in ##\vec{e}_{\rho}= \left(\begin{array}{c} \cos(\phi) \\ \sin(\phi) \end{array}\right)##, you are essentially going to Cartesian coordinates where the x and y components are expressed in terms of the parameter ##\phi##. In that case, you could use Mathematica's ParametricPlot. However, I think using PolarPlot is simpler here.
 
Last edited:
  • Like
Likes   Reactions: Lambda96
In addition to what @TSny said, can I add this.

Lambda96 said:
Then the position vector is ##\vec{r}(\phi)=\rho(\phi) \vec{e}_{\rho}=(\rho_0+\rho_1 \sin^2(2 \phi) ) \left(\begin{array}{c} \cos(\phi) \\ \sin(\phi) \end{array}\right)##
Note that ##(\rho_0+\rho_1 \sin^2(2 \phi))## is a scalar quantity. So

##(\rho_0+\rho_1 \sin^2(2 \phi) )\left(\begin{array}{c} \cos(\phi) \\ \sin(\phi) \end{array}\right)##

is equal to

## \left(\begin{array}{c} \rho_0\cos(\phi)+\rho_1 \sin^2(2 \phi)\cos(\phi) \\ \rho_0\sin(\phi)+\rho_1 \sin^2(2 \phi)\sin(\phi) \end{array}\right)##

This doesn't match what you entered in Mathematica.

You might want practise/check by plotting a few simple curves of known shapes.
 
Thank you TSny and Steve4Physics for your help 👍👍

I have now redone the plot and got the following:

Bildschirmfoto 2023-12-05 um 19.00.05.png
 
  • Like
Likes   Reactions: Steve4Physics and TSny
Looks good.
 
  • Like
Likes   Reactions: Lambda96
If you want to use the command ParametricPlot, then the format is
1701800241740.png

So, for this problem we would have
1701800303332.png


Or, maybe less confusing,
1701800607050.png
 
  • Like
Likes   Reactions: Lambda96
Thank you TSny for your help 👍 and also thank you for showing me how to plot the curve with ParametricPlot 👍 Since Mathematica is relatively new to me, this helped me a lot.
 
  • Like
Likes   Reactions: TSny

Similar threads

  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
Replies
1
Views
1K
  • · Replies 11 ·
Replies
11
Views
4K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 32 ·
2
Replies
32
Views
3K
  • · Replies 3 ·
Replies
3
Views
4K