Find time from distance-speed graph

  • Context: Undergrad 
  • Thread starter Thread starter Metaphysics
  • Start date Start date
  • Tags Tags
    Graph Time
Click For Summary

Discussion Overview

The discussion revolves around calculating the time taken for a playhead to travel different sections of a distance-speed graph in an audio application, where the speed of the playhead varies across sections. Participants explore various methods to derive time from the graph, considering both constant and variable speeds.

Discussion Character

  • Exploratory, Technical explanation, Mathematical reasoning

Main Points Raised

  • One participant calculates the time for the first section with constant speed and seeks assistance for sections with varying speed.
  • Another participant suggests using the average speed for sections where speed changes linearly.
  • A different participant proposes writing the speed as a linear function of distance and suggests integrating to find time.
  • Another approach involves using the standard transformation for acceleration and solving a differential equation to find velocity as a function of time, emphasizing the importance of initial conditions.
  • One participant outlines a method to express velocity as a function of distance using the standard form of a straight line, leading to a differential equation that can be solved.

Areas of Agreement / Disagreement

Participants present multiple competing views on how to approach the problem, with no consensus on a single method for calculating time in sections with varying speeds.

Contextual Notes

Some assumptions about the nature of speed changes and the applicability of linear functions may not be fully articulated. The discussion includes unresolved mathematical steps related to the integration and solving of differential equations.

Metaphysics
Messages
1
Reaction score
0
Playrate envelope.png

In audio application i can automate playrate envelope (playhead speed)
1 = original speed, 2 = 2 x original speed, 3 = 3 x original speed etc..

Now i need to calculate time it takes for playhead to travel each section

its easy to calculate time for section 1, where speed is constant
time = section 1 len/speed = 1/1 = 1 sec

but i don't know how to find time for section 2, section 3

can you help?
 
Physics news on Phys.org
Metaphysics said:
but i don't know how to find time for section 2, section 3
I don't really know what you're calculating. Nonetheless, it looks like the speed changes linearly in those sections, so you should be able to use the average speed.
 
I think my previous response was a bit glib, seeing as the horizontal axis is distance and not time. But for each section, you can write the speed as a linear function of distance, then rearrange and integrate.
 
I would follow a different approach from @Doc Al. Start with the standard transformation for the acceleration.
$$a=\frac{dv}{dt}=\frac{dv}{dx}\frac{dx}{dt}=v\frac{dv}{dx}$$In sections 2 and 3 ##\dfrac{dv}{dx}=\text{const.}=\alpha##. You can easily get the slope ##\alpha## in each section from the graph. Then $$\frac{dv}{dt}=\alpha ~v.$$Can you solve this simple differential equation to find ##v(t)##? If so, then do it, but don't forget the initial condition at the beginning of each section. Then invert the equation to find ##t## as a function of ##v## and you're done. If you cannot solve the differential equation, we are here to help.
 
Good stuff @kuruman.

I'll outline the approach I mentioned above (which was just the first that occurred to me). Start by expressing the velocity as a function of distance, which should be trivial since it's a straight line. For example, using the standard form for a straight line:
$$ v(x) = mx + b$$
That gives you the following simple differential equation, which you can solve:
$$v = \frac{dx}{dt} = mx + b$$

Either way, it's all good. (For fun, solve it both ways and compare.)
 
  • Like
Likes   Reactions: kuruman

Similar threads

  • · Replies 9 ·
Replies
9
Views
1K
  • · Replies 49 ·
2
Replies
49
Views
4K
  • · Replies 9 ·
Replies
9
Views
1K
  • · Replies 13 ·
Replies
13
Views
2K
  • · Replies 11 ·
Replies
11
Views
4K
Replies
10
Views
2K
  • · Replies 236 ·
8
Replies
236
Views
16K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 22 ·
Replies
22
Views
2K