Reading a graph
A rain barrel graph rises from 20 to 60 liters in two hours, so the water came in at an average of 20 liters an hour.
When did the barrel hold 40 liters?
Try a question before reading on. A garden rain barrel, made up for this unit, fills with rain, is emptied onto the garden and fills again. The graph below records liters against hours. When did it hold exactly 40 liters? One answer jumps out. There is a second. Find both, and then check them in the section on the line at 40.
The rain barrel, hour by hour
Many functions reach us as graphs rather than formulas: temperature through a day, the price of fuel over a year, the water level in a tank. Take an example made up for this unit. A garden rain barrel holds 20 liters at noon (hour 0). Rain fills it to 60 liters by hour 2. The rain stops and the level stays at 60 until hour 4. Then someone waters the garden and the barrel empties by hour 7. A second shower brings it back to 30 liters by hour 9, where it stays until hour 10. The graph of this function W(t), liters against hours, is a chain of straight pieces.
The line at 40 meets the graph twice
To find W(1), go to 1 on the horizontal axis, up to the graph, and across to the vertical axis: 40 liters. Halfway between hour 0 and hour 2 the level is halfway between 20 and 60. To answer the reverse question, when was there 40 liters, draw the horizontal line at 40 and see where it meets the graph. It does so twice, at t = 1 while filling and at t = 5 while emptying. So W(t) = 40 has two solutions. The line at 70 meets nothing, so the equation W(t) = 70 has no solution; the barrel never held that much.
Increasing and decreasing intervals are written in hours
A function is increasing on an interval if its graph rises as you move to the right there, decreasing if it falls, and constant if it stays level. The barrel is increasing on (0, 2) and (7, 9), constant on (2, 4) and (9, 10), and decreasing on (4, 7). Intervals are written with x-values, the times, not with the heights. The highest value is 60, held over the whole stretch from 2 to 4; the lowest is 0, at t = 7. Where a graph switches from rising to falling there is a local maximum, and where it switches from falling to rising a local minimum.
20 liters an hour in, 20 liters an hour out
How fast did the water come in? The average rate of change of a function between a and b is the change in output divided by the change in input: (f(b) − f(a)) / (b − a). From hour 0 to hour 2 it is (60 − 20)/(2 − 0) = 20 liters per hour. From hour 4 to hour 7 it is (0 − 60)/(7 − 4) = −20 liters per hour; the negative sign says the water was leaving. On a graph this is the slope of the straight line joining the two points, so the rate of change of a line is the same everywhere, while a curved graph has different average rates on different intervals.
In the lab, drag across the graph to read W(t) at any time, and switch on Solve f(x) = c to slide a horizontal line up and down. The purple marks are every solution of W(t) = c; at c = 60 or c = 30 you get a whole stretch of solutions instead of single points, because the graph is level there.
Drag to turn. Scroll or pinch to zoom.
- From the barrel graph, what is W(1) in liters?
- What is W(5) in liters?
- What is the most water the barrel held, in liters?
- On which interval is W constant at its highest level?
- (2, 4)
- (0, 2)
- (4, 7)
- (9, 10)
- On which interval is W decreasing?
- (4, 7)
- (2, 4)
- (7, 9)
- (0, 2)
- How many solutions does W(t) = 40 have?
- What is the average rate of change from t = 0 to t = 2, in liters per hour?
- What is the average rate of change from t = 4 to t = 7?
- At what time t was the barrel empty?
- What is W(8) in liters?
- Saying W is increasing on (20, 60). 20 and 60 are heights. Intervals are times read on the horizontal axis, so the answer is (0, 2).
- Working out the rate from t = 2 to t = 7 as (7 − 2)/(0 − 60) = −1/12. The change in output goes on top: (0 − 60)/(7 − 2) = −12 liters per hour.
- Answering W(t) = 30 with t = 9 only. Draw the whole line at 30. It crosses at t = 0.5 while filling and t = 5.5 while emptying, and it runs along the graph from 9 to 10, so every t from 9 to 10 works too.
- f(a): go up from a on the x-axis, then across to read the height.
- f(x) = c: draw the horizontal line at c and read every x where it meets the graph.
- Increasing, decreasing and constant intervals are written with x-values.
- Average rate of change: (f(b) − f(a)) / (b − a), the slope between two points.
Sources for this course (8)
- Curriculum: 교육부 고시 제2022-33호 [별책 8] 수학과 교육과정 (ncic.re.kr/inv/org/download.do?year=2022&seq=10003559&orgType=ogi4, PDF read 2026-10-19: 중학교 1~3학년군 [9수02-06] 그래프 해석(증가와 감소), [9수02-14] 함수의 개념·함숫값, 용어 함수·함숫값·기울기·평행이동, 고려 사항 「한 양이 변함에 따라 다른 양이 하나씩 정해지는 두 양 사이의 대응 관계를 이용하여 도입」; 고등학교 공통수학2 [10공수2-01-06] 평행이동, [10공수2-01-07] 원점·x축·y축·직선 y = x에 대한 대칭이동, [10공수2-03-01] 함수의 개념(두 집합 사이의 대응 관계), [10공수2-03-02] 합성함수, [10공수2-03-03] 역함수, 용어 정의역·치역·공역·대응·일대일대응·일대일함수·합성함수·역함수, 기호 f: X → Y, g ∘ f, (g ∘ f)(x), y = g(f(x)), f⁻¹, y = f⁻¹(x), 교수·학습 용어 조건제시법; 미적분Ⅰ 용어 구간·닫힌구간·열린구간 [a, b], (a, b), 평균변화율, [12미적Ⅰ-02-07] 증가와 감소, 극댓값·극솟값)
- Textbook: OpenStax, College Algebra 2e, 3.1 Functions and Function Notation (relation, domain and range of ordered pairs, {(1, 2), (2, 4), (3, 6), (4, 8), (5, 10)}, the odd/even relation that is not a function, coffee menu prices, vertical line test, horizontal line test, one-to-one: openstax.org/books/college-algebra-2e/pages/3-1-functions-and-function-notation)
- Textbook: OpenStax, College Algebra 2e, 3.2 Domain and Range (no even root of a negative number, no division by 0, interval notation with brackets and parentheses, (0, 100] for "more than 0 and at most $100", {(2, 10), (3, 10), (4, 20), (5, 30), (6, 40)}: .../pages/3-2-domain-and-range)
- Textbook: OpenStax, College Algebra 2e, 3.3 Rates of Change and Behavior of Graphs (average rate of change, increasing and decreasing intervals, local maxima and minima: .../pages/3-3-rates-of-change-and-behavior-of-graphs)
- Textbook: OpenStax, College Algebra 2e, 3.4 Composition of Functions (f(g(x)); f(x) = 2x + 1 and g(x) = 3 − x give f(g(x)) = 7 − 2x and g(f(x)) = −2x + 2, so composition is not commutative; c(s) calories and s(t) sit-ups; f(x) = 1/x and g(x) = x − 3: .../pages/3-4-composition-of-functions)
- Textbook: OpenStax, College Algebra 2e, 3.5 Transformation of Functions (g(x) = f(x) + k vertical shift, f(x − h) horizontal shift, −f(x) and f(−x) reflections, af(x) stretches and compressions, roof vent example S(t) = V(t) + 20 (open vent area in square feet plus 20): .../pages/3-5-transformation-of-functions)
- Textbook: OpenStax, College Algebra 2e, 3.7 Inverse Functions (f⁻¹ is not an exponent and not 1/f, C = (5/9)(F − 32), 75 °F is about 24 °C, 26 °C is about 79 °F, x² restricted to [0, ∞), reflection about y = x: .../pages/3-7-inverse-functions)
- History block only: MacTutor, University of St Andrews, The function concept (Leibniz, August 1673, the word "function"; Johann Bernoulli's letter of 2 September 1694; Euler, Introductio in analysin infinitorum 1748 and Institutiones calculi differentialis 1755; Dirichlet 1837; Goursat 1923 "y = f(x)": mathshistory.st-andrews.ac.uk/HistTopics/Functions)
Checked: 2026-10-18