Deriving Position WRT time of ball travelling on curve

In summary, the conversation discusses the attempt to write a MATLAB program to demonstrate a tautochrone curve using a parabola instead of a cycloid. The author uses the conservation of energy to derive a differential equation for the velocity of a ball traveling along the curve. The equation is confirmed to be correct, but there are concerns about the ball's speed decreasing at the bottom of the curve.
  • #1
RileyF1
6
0

Homework Statement


[/B]
I'm trying to write a program in MATLAB which demonstrates a tautochrone curve and how the starting point of a ball is irrelevant as to the time it takes to get to the lowest point in the curve (without friction).

At the moment I'm just trying to model it using a simple parabola of y = x2 rather than a cycloid. My idea is that I can plot the ball's position for a specific time, then plot it again 0.1 seconds later after pausing the program for 0.1 seconds which would effectively simulate the ball going down the curve in real time.

Homework Equations



E = K + U

The Attempt at a Solution


[/B]
I've used the conservation of energy and the fact that the potential energy at the top will be equal to the kinetic energy at the bottom though I wasn't sure if this would work since it is traveling on a pre-defined path rather than just falling naturally.

So mgh = (1/2)mv2

and solving for v = sqrt(2gh)

and h is the displacement in the y direction so h = ynaught - y

Given that v = dx/dt,

I separate the variables so sqrt(2g)*dt = 1/(sqrt(ynaught - x2)) *dx

(given that y = x2 )

integrating both sides and solving for x(t) I end up with:

x = sin(sqrt(2g)*t + sin-1 (xnaught/sqrt(ynaught))) *sqrt(ynaught)

for this specific equation the square root of ynaught should just be xnaught anyway

At first glance and plotting it in MATLAB it seems to work but I don't know if it is just a visual effect but my ball appears to slow down slightly as it reaches the lowermost point of the parabola. Not to mention that it goes ridiculously quickly when i set the gravity to 10m/s/s but that might be a fault of my programming.

Any ideas? Mainly I'm just looking for confirmation that the equation is correct. I tried doing it by using the normal force and the angle etc etc but it got too complicated. I've actually just plotted 2 balls on the parabola with different initial x and y coordinates and have noticed that no matter where they are placed, they always reach the bottom of the curve at the exact same time and just oscillate around it but always meet at the centre. It was my understanding that this was unique to a cycloid which is pretty much the point of me doing this so it seems odd to me that it would occur on this parabola.

Thanks for any assistance you can provide, just looking for some simple guidance
 
Physics news on Phys.org
  • #2
RileyF1 said:

Homework Statement


[/B]
I'm trying to write a program in MATLAB which demonstrates a tautochrone curve and how the starting point of a ball is irrelevant as to the time it takes to get to the lowest point in the curve (without friction).

At the moment I'm just trying to model it using a simple parabola of y = x2 rather than a cycloid. My idea is that I can plot the ball's position for a specific time, then plot it again 0.1 seconds later after pausing the program for 0.1 seconds which would effectively simulate the ball going down the curve in real time.

Homework Equations



E = K + U

The Attempt at a Solution


[/B]
I've used the conservation of energy and the fact that the potential energy at the top will be equal to the kinetic energy at the bottom though I wasn't sure if this would work since it is traveling on a pre-defined path rather than just falling naturally.

So mgh = (1/2)mv2

and solving for v = sqrt(2gh)

and h is the displacement in the y direction so h = ynaught - y

Given that v = dx/dt,

I separate the variables so sqrt(2g)*dt = 1/(sqrt(ynaught - x2)) *dx

(given that y = x2 )

integrating both sides and solving for x(t) I end up with:

x = sin(sqrt(2g)*t + sin-1 (xnaught/sqrt(ynaught))) *sqrt(ynaught)

for this specific equation the square root of ynaught should just be xnaught anyway

At first glance and plotting it in MATLAB it seems to work but I don't know if it is just a visual effect but my ball appears to slow down slightly as it reaches the lowermost point of the parabola. Not to mention that it goes ridiculously quickly when i set the gravity to 10m/s/s but that might be a fault of my programming.

Any ideas? Mainly I'm just looking for confirmation that the equation is correct. I tried doing it by using the normal force and the angle etc etc but it got too complicated. I've actually just plotted 2 balls on the parabola with different initial x and y coordinates and have noticed that no matter where they are placed, they always reach the bottom of the curve at the exact same time and just oscillate around it but always meet at the centre. It was my understanding that this was unique to a cycloid which is pretty much the point of me doing this so it seems odd to me that it would occur on this parabola.

Thanks for any assistance you can provide, just looking for some simple guidance

If ##(x(t),y(t))## goes along the curve ##y = f(x)##, then the velocity components are ##v_x = dx/dt## and ##v_y = dy/dt = (dy/dx)(dx/dt)##, by the chain rule. Thus, ##v_y = f'(x) v_x##, where ##f'(x) = df(x)/dx## is the slope of the curve. The kinetic energy is
[tex] K = \frac{1}{2} m (v_x^2 + v_y^2) = \frac{1}{2} m v_x^2 [ 1 + f'(x)^2] [/tex]
So, conservation of energy gives [tex]\text{const} = E = K + V = (m/2) (1 + f'(x)^2) v_x^2 + m g f(x), [/tex] since ##y = f(x)##. Thus, we have the differential-equation
[tex] v_x = \frac{dx}{dt} = \left[ \frac{2(E - g f(x))}{m(1 + f'(x)^2)} \right]^{1/2} [/tex]

For your case of ##f(x) = x^2## we have ##f'(x) = 2x##, so
[tex] \frac{dx}{dt} = \left[ \frac{2(E - g x^2)}{m(1+4x^2)} \right]^{1/2} [/tex]
 
  • Like
Likes RileyF1
  • #3
Cool, thanks! Exactly what I was after. Was just a dull moment not separating the velocity into x and y components.

I'm guessing the next step would be to use separation of variables so it would be dt = ~~~~~~dx and then integrate? That could get messy.
 
  • #4
So I've discovered that it's pretty impossible to solve for the integral of that function when f(x) = x^2. Wolfram alpha seems to think so at least but it works fine for a simpler function like y = x. I want to sub in the equation of a cycloid but I actually have no idea how to get the equation of a cycloid where the start and end of a 'hump' is at 2 specific points. I'm going to need that if I want to plot it in matlab.
 

FAQ: Deriving Position WRT time of ball travelling on curve

What is the equation for deriving position with respect to time for a ball travelling on a curve?

The equation for deriving position with respect to time for a ball travelling on a curve is x = x0 + v0t + ½at², where x is the final position, x0 is the initial position, v0 is the initial velocity, t is the time, and a is the acceleration.

How is the velocity of a ball on a curve related to its position?

The velocity of a ball on a curve is related to its position through the derivative of the position equation. This derivative is equal to the instantaneous velocity at any given point on the curve.

Is the position of the ball on a curve affected by its acceleration?

Yes, the position of the ball on a curve is affected by its acceleration. The acceleration term in the position equation accounts for changes in the position due to changes in the velocity over time.

Can the position of a ball travelling on a curve be determined at any given time?

Yes, the position of a ball travelling on a curve can be determined at any given time as long as the initial position, velocity, and acceleration are known. The position equation can be used to calculate the position at any specific time.

How can the position of a ball on a curve be represented graphically?

The position of a ball on a curve can be represented graphically by plotting the position on the y-axis and the time on the x-axis. This will result in a curve known as the position-time graph, which can be used to visualize the motion of the ball on the curve.

Back
Top