To wczesna wersja strony: treści i symulacje wciąż się zmieniają, a niektóre mogą mieć błędy.This is an early version of the site: lessons and simulations are still changing, and some may contain mistakes.Zgłoś problemReport a problem
Functions and Graphs
A graph in physics is not a picture but a record of how one quantity depends on another. Read well, it gives you two things for free: the slope tells you how fast something changes, and the area under the graph tells you how much of it has accumulated. Master these two ideas and kinematics, electricity and energy will start to look like one and the same story.
Co musisz umieć?What you need to know(1)(matematyka szkolnaschool maths: 1)
Matematyka, poziom szkolny (algebra, trygonometria, składowe wektorów)Maths, school level (algebra, trigonometry, vector components)
przedrostki jednostekunit prefixesSkróty przed jednostką mnożące ją przez potęgę dziesięciu: kilo to 10³, mili to 10⁻³, mikro to 10⁻⁶.Abbreviations in front of a unit that multiply it by a power of ten: kilo is 10³, milli is 10⁻³, micro is 10⁻⁶.Dowiedz się więcej →Learn more →
Najedź na pojęcie, żeby zobaczyć krótką definicję, albo kliknij „Dowiedz się więcej”.Hover a term for a short definition, or click “Learn more”.
1. Function, domain and axes
In physics almost everything is a dependence: when you change one quantity (say time), another (say position) changes along with it. The rule “to every x assign exactly one y” is called a function, written y=f(x).
Every point on a graph is described by two numbers: one on the horizontal axis, one on the vertical axis. The first is the abscissaWspółrzędna pozioma punktu, czyli wartość na osi poziomej. W fizyce na osi poziomej najczęściej leży czas t.The horizontal coordinate of a point, i.e. the value on the horizontal axis. In physics the horizontal axis most often carries time t.Dowiedz się więcej →Learn more →, the second is the ordinateWspółrzędna pionowa punktu, czyli wartość na osi pionowej. W fizyce to zwykle wielkość zależna od czasu, np. położenie x(t).The vertical coordinate of a point, i.e. the value on the vertical axis. In physics this is usually the quantity that depends on time, e.g. position x(t).Dowiedz się więcej →Learn more →.
2. How to read a physical graph
On the horizontal axis we plot the independent variable x (what we change or what flows by itself, e.g. time), and on the vertical axis the dependent variable y (what depends on it).
Reading a value: from t = 2 s go vertically to the graph, then horizontally to the axis. The zeros (v = 0) are the instants when the body stops and turns back. The graph rises until t = 3 s and then falls: that is where the velocity is largest.
A linear function and direct proportionality
y=ax+b
a is the gradient (slope), and b is the value of y for x=0 (the intercept with the vertical axis).
When b=0 we have direct proportionalityy=ax: the graph is a straight line through the origin, and the ratio y/x is constant and equal to a.
3. The slope of a graph: the rate of change
The slope triangle: two points on the line, and from them Δx and Δy.
Curves: the secant and the tangent
When a graph is a curve, the slope changes from point to point.
A secant is a line through two points of the curve. Its slope is the average rate of change over that interval, e.g. the average velocity vˉx=ΔtΔx.
A tangent at a point is a line that just “touches” the curve at that single point. Its slope is the instantaneous rate of change at that moment, e.g. the instantaneous velocity vx=dtdx. This is exactly the intuition of the derivative: the secant over an ever shorter interval approaches the tangent.
The secant (gray, dashed) has a different slope from the tangent (red) at the point x = 4.
4. Four function shapes that keep returning in physics
You already know the straight line. Three more families of curves appear regularly in physics, so it pays to recognise their shape and how they change when we double x.
Liney=ax+b: a constant rate of change. Example: position in uniform motion x=x0+vt.
Parabolay=at2: twice the time gives four times the value. Example: distance in free fall s=21gt2, where a=21g≈4.9m/s2.
Inversey=xk: doubling xhalvesy, and the product xy=k stays constant. Example: current I=U/R at constant voltage.
Inverse squarey=r2k: twice as far means four times less. This is how the light of a point lamp fades, and later also gravity and the electric force.
Experiment with the four functions: change the parameter, move the point and switch the axis labels.
▶ SymulacjaSimulation: Four functions and their axesSpacja: start/pauza · R: resetSpace: start/pause · R: reset⚑︎
🎯 What question does this simulation answer? What does each of the four functions that keep returning in physics look like, and what do the abscissa, ordinate and slope mean on a graph?
🧪 Try these in turn:
▶ Pick a function, change the parameter and move the point.
🎨 Legend:■ the function graph■ chosen point and its projections onto the axes■ slope triangle (line only)■ asymptotes (dashed)
▶ Right now: Point (3; 7): the abscissa is 3 s, the ordinate is 7 m. The slope is 2 m/s and does not depend on the chosen point.
Uniform motion: position grows linearly with time.
x(t)=1+2t
x(3 s)=7 m
a=ΔtΔx=2 s4 m=2sm
Abscissa (horizontal) and ordinate (vertical) of the chosen point; slope triangle for the line, asymptotes for the inverse functions.
5. The area under a graph: summing up effects
When we have x on the horizontal axis and y on the vertical axis, a narrow strip under the graph has area y⋅Δx. By adding up such strips we sum up effects (e.g. velocity times time gives displacement).
Signed area: the area above the horizontal axis is positive, and below the axis it is negative.
Graphs made of segments are divided into shapes: a rectangle yΔx, a triangle 21⋅base⋅height, a trapezoid 21(y1+y2)Δx.
Curves: we count squares (full squares plus the remaining pieces, which we combine by eye into “halves”) and multiply the result by the value of a square. This is the intuition of the integral: Area=∫ydx.
The average value over the interval from x1 to x2:
yˉ=x2−x1Area
Split the area under v(t) into a triangle, a rectangle and a trapezoid: 6 m + 18 m + 12 m = 36 m of displacement. The average value is the area divided by the interval length: 36 m / 8 s = 4.5 m/s.
6. Summation notation Σ: a shorthand for adding
Before we compute the area under a curve we need a short way to write “add many similar numbers”. That is the job of the big Greek letter Σ (sigma), the same one that is on the “Σ Formulas” button of this site.
Example: i=1∑4i2=1+4+9+16=30. In physics we write e.g. the distance from several legs at different speeds as s=i=1∑3viΔti=v1Δt1+v2Δt2+v3Δt3.
In the lesson on the definite integral you will see that the area under a curve is exactly such a sum, only with very many very thin terms.
7. A physics cheat sheet: what do slope and area mean?
Graph
The slope means
The area under the graph means
x(t) position vs time
velocity vx[m/s]
usually nothing useful
vx(t) velocity vs time
acceleration ax[m/s2]
displacement Δx[m]
v(t) speed vs time
the rate of change of speed [m/s2]
distance s[m]
ax(t) acceleration vs time
the rate of change of acceleration [m/s3] (rarely used)
the change in velocity Δvx[m/s]
m(V) mass vs volume
density ρ[kg/m3]
usually nothing useful
U(I) voltage vs current
resistance R[Ω] (for an ohmic element)
nothing (the rectangle U⋅I is the power P)
F(Δl) force vs extension
stiffness (spring constant) k[N/m]
work W[J]
P(t) power vs time
the rate of change of power (rarely used)
energy E[J] or [kWh]
I(t) current vs time
the rate of change of current (rarely used)
charge Δq[C]=[A⋅s]
Going right, take the slope: from x(t) you get v(t), from v(t) you get a(t). Going left, take the area under the graph: the area under a(t) is the change in velocity, the area under v(t) is the displacement.
8. The key distinction before kinematics
Before you start solving exercises, separate five notions that are often confused:
Quantity
Symbol
Sign
What it is
Position
x
+ or −
where the body is relative to the origin of the axis
Velocity (component)
vx
+ or −
the sign tells which way it is moving
Speed
v=∣vx∣
always ≥0
“what the speedometer shows”
Displacement
Δx=xf−xi
+ or −
the change of position (from start to finish)
Distance
s
always ≥0
the total distance traveled
If the body turns around, then s>∣Δx∣. If it returns exactly to the start, then Δx=0, but s>0.
9. A live simulation
Drag the points of the velocity graph vx(t), change velocities and times, and watch how the areas (blue positive, red negative), the slopes of the segments ax, the displacement Δx and the distance s change. Try to set Δx=0 with s>0.
🎯 What question does this simulation answer? How do we read the displacement and the distance travelled from a velocity graph?
🧪 Try these in turn:
▶ After choosing an experiment press Start (or drag the time slider).
🎨 Legend:■ blue area: forward motion (+)■ red area: backward motion (−)
Presets:
Drag the points: up–down changes the velocity, and the middle points also move left–right (time). One grid square is 1 s · 2 m/s = 2 m. positive area negative area
Segment
Time [s]
ax=ΔtΔvx[m/s2]
Δxi[m]
si[m]
1
0 → 2
3
6
6
2
2 → 5
0
18
18
3
5 → 7
-5
2
5.2
4
7 → 9
0
-8
8
5
9 → 10
4
-2
2
Δx=∑Δxi=16 m(signed areas)
s=∑∣Δxi∣=39.2 m(unsigned areas)
vˉx=ΔtΔx=1.6 m/s
vˉ=Δts=3.92 m/s
Somewhere the velocity is negative, so Δx is smaller than s.
The blue area counts toward Δx with a plus sign, the red one with a minus sign; for the distance s the absolute values of both count.
Quiz: test yourself
1.On an x(t) graph time t lies on the horizontal axis. What is the t value of a point?
2.What does the slope of a position graph x(t) mean?
3.The signed area under a vx(t) graph is:
4.A straight line on a y(x) graph not passing through (0, 0) means:
5.On a U(I) graph of a resistor the line is steeper. The resistance is:
Exercise 1 – the unit trap. A locomotive is shunting on a straight siding (the x axis). The graph shows the velocity component vx(t) in km/h, while time is in minutes. At some moment the locomotive reverses. Calculate its displacement and the distance travelled in meters.
m
Pokaż wskazówkęShow hint
Work out the value of one grid square in meters: 1 min⋅3 km/h=60 s⋅3.63sm. Areas below the time axis count with a minus sign in Δx and with a plus sign in the distance.
Rozwiązanie krok po krokuStep-by-step solution
Step 1. Value of a square. One square is 1 min=60 s horizontally and 3 km/h vertically:
60 s⋅3.63sm=50 m
Step 2. Velocities in m/s:18 km/h=5 m/s and −9 km/h=−2.5 m/s.
Step 3. Areas.
Speeding up 0→5 m/s in 120 s (triangle): 21⋅120⋅5=300 m
Constant 5 m/s for 240 s (rectangle): 1200 m
Braking 5→0 in 60 s:150 m
Starting in the opposite direction 0→−2.5 m/s in 60 s:−75 m
Constant −2.5 m/s for 180 s:−450 m
Braking −2.5→0 in 60 s:−75 m
Step 4. Results. The area above the axis is 1650 m (33 squares), below it 600 m (12 squares).
Δx=1650−600=1050 m,s=1650+600=2250 m
The locomotive ends up just over a kilometer from where it started, although it travelled more than two. Without converting units you would get "km⋅min/h", a number with no physical meaning.
Exercise 2 – the slope is a physical constant. The graph shows the voltage as a function of the current U(I) for two electronic components (current in milliamperes). Determine the resistances R1 and R2 from the slope of the graph, and then calculate what current will flow through each of them at a voltage of 9 V.
Pokaż wskazówkęShow hint
The slope of U(I) is ΔIΔU=R. Read off a point lying on an intersection of grid lines and convert milliamperes to amperes. A voltage of 9 V is off the graph, but the component is linear, so use the resistance you found.
Rozwiązanie krok po krokuStep-by-step solution
Both lines pass through the origin, so they are ohmic components, and their slope is the resistance.
Component 1 (the point 20 mA;4 V):
R1=0.020 A4 V=200Ω
Component 2 (the point 10 mA;6 V):
R2=0.010 A6 V=600Ω
Component 2 has the larger resistance: its line is steeper in the U(I) plot.
The current at 9 V:
I1=200Ω9 V=0.045 A=45 mA,I2=600Ω9 V=0.015 A=15 mA
Exercise 3 – a chase along a route. The graph shows the position x (in km) of two cyclists as a function of time (in minutes). Cyclist A sets off from the point x=0 at time t=0, and cyclist B sets off later from a different place. Calculate the velocities of both cyclists in km/h and determine when and where B catches up with A.
min
Pokaż wskazówkęShow hint
The slope of x(t) is the velocity. Remember the minutes: km/min⋅60=km/h. To find the meeting, write the equations of the lines xA(t) and xB(t) and equate them, or read off the intersection of the graphs.
Rozwiązanie krok po krokuStep-by-step solution
Velocities:
vA=40 min16 km=0.4minkm=24hkm
vB=36−1016−3minkm=2613minkm=0.5minkm=30hkm
Equations of motion(t in minutes, x in km):
xA=0.4t,xB=3+0.5(t−10)=0.5t−2
The meeting:0.4t=0.5t−2⇒t=20 min, and then x=0.4⋅20=8 km.
Cyclist B catches up with A 20 minutes after A’s start, at a distance of 8 km from the beginning of the route. The graphs intersect at the point (20 min;8 km).
Exercise 4 – work and elasticity. A rubber exercise band was stretched while the force was measured against the extension Δx (in centimeters); in this range it behaves like a spring. a) Calculate the spring constant k in N/m. b) Calculate the work needed to stretch the band from 10 cm to 30 cm. c) At what extension (counting from zero) does the work reach 4 J?
N/m
Pokaż wskazówkęShow hint
The slope of F(Δx) is k, but convert centimeters to meters. Work is the area under the graph: in b) a trapezoid between 10 and 30 cm. In c) set the triangle area 21kΔx2 equal to 4 J.
Rozwiązanie krok po krokuStep-by-step solution
a) Spring constant:
k=ΔxΔF=0.40 m80 N=200mN
(Trap: 80/40=2 N/cm, i.e. 200 N/m.)
b) Work from 10 to 30 cm. The forces at the edges: F(10 cm)=20 N,F(30 cm)=60 N. Area of the trapezoid:
W=220+60 N⋅0.20 m=8.0 J
Check: 21k(x22−x12)=100⋅(0.09−0.01) J=8.0 J.
c) When the work reaches 4 J:
21kΔx2=4 J⇒Δx=2002⋅4 m=0.20 m=20 cm
Stretching to half the range (20 cm) costs 4 J, while the second half (from 20 to 40 cm) costs as much as 12 J: the work grows with the square of the extension, because the force grows with it.
Exercise 5 – fast-charging an electric car (counting squares). The graph shows the power P(t) drawn by an electric car during fast charging (power in kW, time in minutes). For the first half hour the power is constant, then it drops to protect the battery. Estimate: a) the energy delivered within the hour in kWh, b) the average charging power, c) the range this energy gives if the car uses 18 kWh per 100 km, d) what fraction of the energy was delivered in the second half hour.
kWh
Pokaż wskazówkęShow hint
One square is 5 min⋅5 kW=121 h⋅5 kW≈0.42 kWh. The constant-power part is a rectangle. Under the falling curve count the squares, or split the area into 5 min strips and treat them as trapezoids.
Rozwiązanie krok po krokuStep-by-step solution
a) Energy. The rectangle from 0 to 30 min:50 kW⋅0.5 h=25 kWh (60 squares).
Under the curve from 30 to 60 min we read the power every 5 min:50;38.9;30.3;23.6;18.4;14.3;11.2 kW. The sum of trapezoids of width 121 h:
That is about 31 squares. In total E≈25+13=38 kWh (the exact result for this curve is 37.9 kWh).
b) Average power:Pˉ=1 h38 kWh=38 kW, clearly less than the peak 50 kW.
c) Range:18 kWh38 kWh⋅100 km≈210 km.
d) The second half hour:3813≈0.34, i.e. only about a third of the energy. That is why on a road trip it pays to charge briefly, in the high-power range.
Exercise 6 – the secant and the tangent on a curve. The graph shows the position of a body x(t) (in meters) in motion along a straight line. The red line is the tangent to the curve at time t=4 s. a) Read the instantaneous velocity at t=4 s from the graph. b) Calculate the average velocity over the interval from t=2 s to t=8 s and compare. c) How does the average velocity change over the intervals [4 s;8 s],[4 s;6 s],[4 s;5 s]?
m/s
Pokaż wskazówkęShow hint
The instantaneous velocity is the slope of the tangent: read two points lying on the intersections of grid lines on the red line. The average velocity is the slope of the secant through two points of the curve, i.e. ΔtΔx.
Rozwiązanie krok po krokuStep-by-step solution
a) Instantaneous velocity. The tangent passes through the points (2 s;0 m) and (6 s;16 m):
vx(4 s)=6−216−0sm=4sm
b) Average velocity. From the curve: x(2 s)=2 m,x(8 s)=32 m:
vˉx=8−232−2sm=5sm
The average (5 m/s) differs from the instantaneous value (4 m/s), because the body is accelerating: in the second part of the interval it is faster than at t=4 s.
c) Shrinking the interval. From the curve x(4)=8,x(5)=12.5,x(6)=18,x(8)=32 (meters):
The shorter the interval, the closer the slope of the secant is to the slope of the tangent (4 m/s). This is exactly how the notion of instantaneous velocity (the derivative) is born.