Physics · Linear Motion

Graphing Relationships

The video lesson for this topic is coming soon.

Essential Question

How can a graph show how two things are related?

Physics is all about finding patterns, and a graph is one of the best tools for spotting them. By the end of this lesson, you should be able to identify an experiment’s variables, build a data table and graph, find the slope of a trend line, write its equation, and use it to make predictions.

Variables

  • Independent: what you change
  • Dependent: what you measure
  • Constants: what stays the same
A burning candle next to a ruler and a clock. The clock is labeled time, independent variable. The ruler is labeled height, dependent variable.

Imagine timing a candle as it burns and measuring its height. Time is the independent variable, the one you control or change on purpose. Height is the dependent variable, the one you measure because it depends on time. Everything else, like the type of candle and the air in the room, should be kept the same. Those are the constants, and they make the test fair.

Data Tables

  • Independent variable: left column
  • Dependent variable: right column
  • Every heading has units
A data table with two columns, time (min) and height (cm). Rows: 0, 15.0; 10, 13.1; 20, 10.9; 30, 9.1; 40, 7.0.

A good data table puts the independent variable in the left column and the dependent variable in the right column. Each heading names the quantity and its unit in parentheses, so the numbers below don’t need units written next to them. Keep the same number of decimal places for each measurement.

Scatter Plots

  • Independent variable on the x-axis
  • Dependent variable on the y-axis
  • Title, labels, and units
A scatter plot titled Candle Height vs. Time. The x-axis is time in minutes from 0 to 40 and the y-axis is height in centimeters from 0 to 15. Five blue points slope downward from 15.0 cm at 0 min to 7.0 cm at 40 min.

To graph the data, put the independent variable on the x-axis and the dependent variable on the y-axis. Label each axis with the quantity and its unit, choose an even scale that uses most of the space, and give the graph a title in the form “y vs. x,” like “Candle Height vs. Time.”

Trend Lines

  • One straight line of best fit
  • Points above and below it
  • Never connect the dots
The same candle scatter plot with a red straight trend line running from 15 cm at 0 min down to about 6.6 cm at 42 min, passing close to all five points.

Real data always has a little scatter, so we don’t connect the dots. Instead, we draw one straight trend line (a line of best fit) that follows the overall pattern, with about as many points above it as below it. The line shows the relationship more clearly than any single point.

Slope

  • How steep the line is
  • m = rise ÷ run = Δy/Δx
  • Units: y unit per x unit
The candle trend line with a slope triangle. A horizontal run of 40 min from 0 to 40 min, then a vertical rise of −8.0 cm down to the line. Caption: slope = −0.20 cm/min.

Slope measures how steep a line is: how much y changes for each unit that x changes. Pick two points on the trend line (not data points), find the rise (Δy) and the run (Δx), and divide. For the candle, the height drops 8.0 cm over 40 min, so the slope is −0.20 cm/min. The units of slope are the y unit divided by the x unit, and the slope has a real meaning: the candle shrinks 0.20 cm every minute.

Equation of a Line

y = mx + b

  • m = slope (rise ÷ run), with units
  • b = y-intercept, the value of y when x = 0, with units
The equation y = mx + b in a yellow box. Cards explain that m is the slope and b is the y-intercept, where the line crosses the y-axis. Below: the candle's equation, h = (−0.20 cm/min)t + 15.0 cm.

Every straight line can be written as y = mx + b. In science, replace x and y with the real variables and include units on m and b. The candle’s line starts at 15.0 cm and has a slope of −0.20 cm/min, so its equation is h = (−0.20 cm/min)t + 15.0 cm.

Extrapolating

  • Extend the trend line
  • Predict past your data
  • Assumes the pattern continues
The candle graph with the time axis extended to 80 min. The solid red trend line continues as a dashed line until it reaches 0 cm at 75 min.

Extrapolating means extending the trend line past your data to make a prediction. Extending the candle’s line shows it would reach 0 cm at about 75 min, so the candle should burn out then. Extrapolation assumes the pattern keeps going, so predictions far beyond your data are less reliable.


Worked Examples

Try each problem on your own first, then check your work against the solution.

Example 1: Identifying Variables

Maya tests how a ramp’s height affects how far a toy car rolls. She uses the same car and the same floor every trial. Name the independent variable, the dependent variable, and two constants.

A ramp on the floor with a toy car that has rolled off the end. A vertical double arrow beside the ramp is labeled height, and a horizontal double arrow from the end of the ramp to the car is labeled distance.
  1. Independent variable: what Maya changes on purpose: the ramp’s height
  2. Dependent variable: what she measures: how far the car rolls
  3. Constants: what she keeps the same: the same car and the same floor

A quick test: the independent variable causes the change, and the dependent variable is the result. “Distance depends on height” makes sense, so distance is dependent.

Example 2: Finding Slope

A trend line for water temperature vs. heating time passes through (1.0 min, 30.0 °C) and (4.0 min, 54.0 °C). Find the slope of the line.

A graph of temperature in degrees Celsius vs. time in minutes with a rising straight line. Two points on the line are marked: (1.0, 30.0) and (4.0, 54.0).
  1. Rise: Δy = 54.0 °C − 30.0 °C = 24.0 °C
  2. Run: Δx = 4.0 min − 1.0 min = 3.0 min
  3. Divide: m = Δy/Δx = 24.0 °C / 3.0 min
  4. Answer: m = 8.0 °C/min. The water warms up 8.0 °C every minute.

Example 3: Writing the Equation

A trend line for a plant’s height vs. time passes through (2.0 days, 5.0 cm) and (10.0 days, 9.0 cm). Write the equation of the line using the variables h and t.

A graph of plant height in centimeters vs. time in days with a rising straight line. Two points are marked: (2.0, 5.0) and (10.0, 9.0).
  1. Slope: m = (9.0 cm − 5.0 cm) / (10.0 days − 2.0 days) = 4.0 cm / 8.0 days = 0.50 cm/day
  2. Set up: h = mt + b, so 5.0 cm = (0.50 cm/day)(2.0 days) + b
  3. Solve for b: 5.0 cm = 1.0 cm + b, so b = 4.0 cm
  4. Answer: h = (0.50 cm/day)t + 4.0 cm

Check with the other point: (0.50 cm/day)(10.0 days) + 4.0 cm = 9.0 cm. It matches.

Example 4: Extrapolating

Use the plant’s equation, h = (0.50 cm/day)t + 4.0 cm, to predict its height on day 16.0.

The plant graph with the time axis extended to 20 days. The solid trend line ends at day 10 and continues as a dashed line to a question mark at day 16.
  1. Knowns: m = 0.50 cm/day, b = 4.0 cm, t = 16.0 days
  2. Substitute: h = (0.50 cm/day)(16.0 days) + 4.0 cm
  3. Multiply: (0.50 cm/day)(16.0 days) = 8.0 cm, since the days cancel
  4. Answer: h = 8.0 cm + 4.0 cm = 12.0 cm

Day 16.0 is beyond the data, so this is an extrapolation. It assumes the plant keeps growing at the same steady rate.


Big Ideas

  • Independent → x-axis, dependent → y-axis
  • Draw one straight trend line of best fit
  • Slope = rise ÷ run, with units
  • y = mx + b lets you predict

Back to the essential question: a graph puts the independent variable on the x-axis and the dependent variable on the y-axis, so you can see the pattern between them. A trend line’s slope tells you how much the dependent variable changes for each unit of the independent variable, and its equation lets you predict new values. Next up, we’ll start describing motion with distance and displacement.

Take It With You

Printable lesson slides and a practice worksheet for this topic are coming soon.