Graph formulas: slope, area under a graph and straight lines
The slope of a straight line is the change up divided by the change across, in the axes' units: metres per second on a distance-time graph is a speed. The area under a graph is up times across: under a speed-time graph it is the distance, under a power-time graph the energy.
The formulas
| Formula | What it gives | Symbols |
|---|---|---|
m = (y₂ − y₁) ÷ (x₂ − x₁) | The slope of a straight line | (x₁, y₁) and (x₂, y₂) = two points on the line, best where it crosses grid lines; m has the unit of y over the unit of x |
v = Δd ÷ Δt | Speed from a distance-time graph | Δd in m and Δt in s between two points on the line; v in m/s |
a = Δv ÷ Δt | Acceleration from a speed-time graph | Δv in m/s and Δt in s; a in m/s² (a falling line is a deceleration) |
P = ΔE ÷ Δt | Power from an energy-time graph | ΔE in J and Δt in s; P in W (1 W = 1 J each second) |
V = m × t + c | The equation of a straight line | c = the value where the line meets the up axis (t = 0), m = its slope; use it to carry the line on past the graph |
t = c ÷ m | When a falling line reaches zero | c = the starting value, m = how fast it falls (without its minus sign); for example a candle's height |
d = v × t | Distance under a level speed-time line | the area of a rectangle: v in m/s, t in s, d in m |
d = ½ × v × t | Distance while speeding up from rest (or slowing to a stop) | the area of a triangle, half the rectangle: v = the top speed, t = the time it takes |
d = d₁ + d₂ + d₃ | Distance of a whole trip | split the area under the speed-time graph into triangles and rectangles and add their areas |
v_avg = d ÷ t | Average speed over a trip | d = the whole distance (the area under the graph), t = the whole time, including speeding up and slowing down |
E = P × t | Energy under a level power-time line | P in W and t in s give E in J; P in kW and t in hours give E in kWh |
E = P₁ × t₁ + … | Energy from a power-time graph with steps | each step of power P times its own time t, in hours for kWh (30 min = 0.5 h), all added |
v = v₁ + (t − t₁) × (v₂ − v₁) ÷ (t₂ − t₁) | A value between two readings | (t₁, v₁) and (t₂, v₂) = the readings either side of t, taking the value to change steadily between them |
Worked example
This example is made by the same code as the practice questions. Open the working to see every step.
The graph shows the speed of a car moving steadily. How far does it go in the time shown, in m?
Answer: 160 m. The distance is the area under a speed-time graph: d = 4 m/s × 40 s = 160 m.
Show the working
- The area under the line is a rectangle 40 s wide and 4 m/s high.
- The distance is the area under a speed-time graph: d = v × t.
- Work it out: d = 4 m/s × 40 s = 160 m.
- Check: m/s × s gives metres, a distance. Answer: 160 m.
Why not the others?
- 44 m Adds the height and the width; an area multiplies them.
Remember: The area under a speed-time graph is the distance; under a power-time graph it is the energy. Formula sheet
Common mistakes
These are the wrong answers the practice questions offer, and the slip that leads to each.
- Using the rise alone as the slope: divide it by the run across.
- Dividing one reading by its time when the line does not start at zero: use the change between two points.
- Adding the height and the width of an area instead of multiplying them, or forgetting the half for a triangle.
- Counting squares instead of reading the numbers on the axes, or multiplying kW by minutes and calling it kWh.
Questions
What is the formula for the slope of a straight line?
m = (y₂ − y₁) ÷ (x₂ − x₁). Symbols: (x₁, y₁) and (x₂, y₂) = two points on the line, best where it crosses grid lines; m has the unit of y over the unit of x.
What is the formula for speed from a distance-time graph?
v = Δd ÷ Δt. Symbols: Δd in m and Δt in s between two points on the line; v in m/s.
What is the formula for acceleration from a speed-time graph?
a = Δv ÷ Δt. Symbols: Δv in m/s and Δt in s; a in m/s² (a falling line is a deceleration).