# Constructing a Velocity vs Time Graph

Velocity vs time graphs are an important part of kinematics. Here's a way to make velocity vs time graph using Pivot Interactives data table and graphing tool.

Here is a written description showing the same process described in the video.

1. When collecting position vs time data, use consistent time intervals between samples, such as 0.1 s.
2. Once you've collected all position vs time data, make a graph of position on the vertical axis and time on the horizontal axis.
3. Make a new column called velocity, with appropriate units.
4. Next, use the linear regression tool on your position vs time graph. It will look strange because the position vs time graph is not linear. That's ok for now.
5. Un-select all the data points except the first three. You can select/unselect data points either using the checkbox on the rows of the data table, or by clicking directly on a data point on the graph. When you click on data points on the graph, they change from magenta dots to grey x's and are no longer included in the linear regression calculation. Here's what the graph would look like when the first three data points are selected:
1. The slope shown in the linear regression is the average slope from t=0 to t=0.1s. If the acceleration is constant, then this is the slope of the line at t=0.05s, the mid-time of the interval.
2. Write this slope (295cm/s in this example) in the data table column for the velocity at the first mid-time (the second row of the table). Notice that you won't have a velocity measurement for the first time (t=0 in this case) because we don't know the slope at that instant.
3. Un-select the first data point and select the fourth one. Your graph should look something like this:
1. Now the slope shown in the linear regression formula is the slope of the line at the third time, t=0.1s in this case. Write this velocity in the data column for velocity for the second mid-time interval (the third row).
2. Continue this process of un-selecting a data point on the left, and selecting the next one on the right to move the slope calculation to the next time. Continue to enter these new velocities in the appropriate cell in the velocity column on the data table. You won't have a velocity measurement for your last time, because we can't determine the slope at the last position measurement.
3. When you have completed this, you can change the vertical axis on the graph to display your new velocity data.
4. If you use the linear regression tool to find the slope of this new graph, make sure to re-select all the data points in the velocity vs time graph to include them in the linear regression calculations.