Physics 📐 Foundations

Graphs & Data Analysis

A graph is data that has learned to speak — once you know its grammar, it tells you the whole story in a single glance.

High school
💡
The big idea: A graph converts a table of raw measurements into a visual relationship between two variables. The slope tells you the rate of change, the intercept tells you the starting point, and together they let you predict values you never even measured. Learn to read those two numbers fluently and any graph — from a cyclist's journey to a car's motion — starts speaking the same language.
🎯 By the end, you'll be able to
  • Distinguish independent and dependent variables and know which axis each belongs on.
  • Read the slope and intercept of a graph and translate them into physical meaning.
  • Use the equation y = mx + c to describe a linear relationship and predict new values.
  • Interpret the area under a graph as a distinct physical quantity from the slope.
📎 You should already know
  • Basic algebra (solving and rearranging linear equations)
  • Speed, distance, and time relationships
  • Reading coordinates on an x-y plane

Every Graph Tells a Story

Hand a physicist a table of numbers and they'll squint at it politely. Hand them a graph of the same data, and their eyes light up instantly. That's because a graph doesn't just display numbers — it reveals the relationship hiding inside them: how fast something changes, where it started, and whether the pattern is trustworthy or just noise.

Learning to read a graph fluently is one of the most transferable skills in science. Once you can do it, distance-time graphs, force-extension graphs, and velocity-time graphs all start to look like dialects of the same language.

🔑 The Big Three: Variables, Slope, Intercept

Every experiment has an independent variable (the one you deliberately change, plotted on the x-axis) and a dependent variable (the one that responds, plotted on the y-axis). Once you plot enough points, two numbers summarize the whole relationship: the slope (how steeply y rises for each step of x) and the intercept (the value of y where the line crosses x = 0). Master those two numbers and you can describe — and predict — the entire dataset.

\[ y = mx + c \]
The equation of a straight line: m is the slope (gradient), c is the y-intercept — the value of y when x = 0.
\[ m = \frac{y_2 - y_1}{x_2 - x_1} \]
Slope calculated from any two points on the line — 'rise over run'.
🎮 Interactive: Fit Your Own Line LIVE
Drag the line to match the scattered data points, and watch the slope and intercept update as you adjust the fit.
📝 Worked example: A cyclist's position is recorded every few seconds: at t = 0 s, distance = 0 m; at t = 4 s, distance = 20 m; at t = 10 s, distance = 50 m. Find the slope of the best-fit line and use it to predict the distance at t = 15 s.
  1. Check the pattern using two pairs of points: from (0, 0) to (4, 20), slope = (20 − 0) / (4 − 0) = 5 m/s.
  2. Confirm with the next pair: from (4, 20) to (10, 50), slope = (50 − 20) / (10 − 4) = 30 / 6 = 5 m/s — the same value, so the data really is linear.
  3. Since the line passes through (0, 0), the intercept c = 0, giving the equation distance = 5t.
  4. Predict at t = 15 s: distance = 5 × 15 = 75 m.
✓ 75 m, using distance = 5t (a constant speed of 5 m/s).
✨ Area Under a Graph Can Mean Something Completely Different

Slope isn't the only thing a graph can tell you — the space enclosed underneath the line matters too. On a velocity-time graph, the slope gives you acceleration (how quickly velocity changes), but the area under the line gives you displacement (how far the object actually travelled). Same graph, two completely different physical quantities, depending on whether you look at the steepness or the shaded region beneath it.

📝 Worked example: A car's velocity-time graph is a straight line rising from 2 m/s at t = 0 s to 12 m/s at t = 5 s. Find (a) the acceleration and (b) the displacement over those 5 seconds.
  1. Acceleration is the slope: a = (12 − 2) / (5 − 0) = 10 / 5 = 2 m/s².
  2. Displacement is the area under the line, which forms a trapezoid with parallel sides 2 m/s and 12 m/s, and width 5 s.
  3. Area of a trapezoid = ½ × (sum of parallel sides) × width = ½ × (2 + 12) × 5 = ½ × 14 × 5 = 35.
✓ Acceleration = 2 m/s²; displacement = 35 m.
⚠️ Don't Trust a Line Past Your Data

A line of best fit is a summary of the data you actually collected — not a promise about what happens outside that range. Extending it far beyond your measured points (extrapolation) can quietly turn a good model into a wrong guess: real relationships bend, saturate, or break down entirely once conditions change enough. Always ask whether the pattern has a physical reason to keep holding before you trust it beyond the edge of the graph.

Check your understanding

1. On a distance-time graph, what physical quantity does the slope represent?
The slope of a distance-time graph is rise (distance) over run (time), which is exactly the definition of speed.
2. In a controlled experiment, which variable is plotted on the horizontal (x) axis?
By convention, the variable you deliberately change — the independent variable — goes on the x-axis, while the variable that responds, the dependent variable, goes on the y-axis.
3. A line of best fit passes through the points (1, 3) and (3, 11). What is its y-intercept, c?
First find the slope: m = (11 − 3) / (3 − 1) = 8 / 2 = 4. Then substitute into y = mx + c using (1, 3): 3 = 4(1) + c, so c = -1.
4. On a velocity-time graph, the area enclosed between the line and the time axis represents...
Area under a velocity-time graph is velocity multiplied by time, which gives distance or displacement — this works for any shape (rectangle, triangle, or trapezoid) as long as you use the correct area formula.
✅ Key takeaways
  • A graph turns a table of raw measurements into a visual relationship between two variables.
  • Slope is the rate of change and intercept is the starting value; together they define y = mx + c.
  • A line of best fit smooths out scatter in real data to reveal the underlying trend.
  • The area under a graph can represent a completely different physical quantity than the slope, like displacement from a velocity-time graph.