Introduction to Graphs

Take the JEE Foundation test on this chapter · free, no sign-in needed

Foundation Class 8 Maths. Our own notes: the whole chapter, from reading a graph to plotting points, with slope, distances and areas on the plane, solved examples and concept checks.

Class 8 is in the Class 8 school book. Foundation goes beyond the school book and is asked in Olympiads, NTSE and the JEE Foundation tests. Try each concept check before you open its answer. Questions to try at the end come from school books and exams, and a few are our own; their answers are folded under them.

On this page

Bar graphs, pie charts and histograms: a recap Class 8

A graph is a picture of data. Before we draw new kinds, recall the three you already know.

  • A bar graph shows separate items (months, schools, fruits) as bars of equal width with gaps between them. The height of a bar is proportional to its value, so the tallest bar is the largest value.
  • A pie chart (circle graph) shows how a whole is shared. The full circle is , and a part with per cent of the whole gets the angle . In general .
  • A histogram shows grouped data. The class intervals () sit side by side on the horizontal axis, so the bars touch; the height of a bar is the frequency of that interval.
Bar graphHistogramseparate items, gaps between barsgrouped data, bars touch01020304050
A bar graph compares separate items; a histogram shows grouped data, so its bars touch and the width of a bar is a class interval.

All three show data at one moment, or in groups. They do not show how a quantity changes continuously, for that we need the graphs of the rest of this chapter.

Example 1. A family spends a monthly budget of ₹7200. The pie chart gives the food sector an angle of . How much is spent on food? What angle would a spending of ₹1800 on travel get?

Solution. Food . Travel: angle .

Why must the bars of a histogram touch, while those of a bar graph have gaps?

Answer

A histogram’s bars stand for continuous intervals of numbers, with no number left out between one interval and the next. A bar graph’s bars stand for separate items, so gaps mark that they are separate.

Line graphs and how to read them Class 8

A line graph displays data that changes continuously over a period of time, such as a patient’s temperature each hour or the sales of a shop each year. Each reading is a dot; the dots are joined by line segments. The horizontal axis shows the quantity that we choose (time), the vertical axis the quantity that we measure (temperature).

681012141616182022242628time (hours)temperature (°C)highest: 27 °C at 12
Temperature through a day. Each dot is one reading; the line shows the trend between readings. At 10 hours the graph reads 24 °C. (The axes start at 6 and 16, not 0.)

To read a line graph:

  1. Read the labels and units on both axes first. Check where each axis starts: a graph that starts at 16 and not 0 makes small changes look big.
  2. To find the value at a given time, go up from that time to the line, then straight across to the vertical axis.
  3. A segment that rises means the quantity increases; one that falls means it decreases; a flat segment means it stays the same; a steeper segment means a faster change.
  4. Between two dots the line is only a guess of what happened. The dots are the real readings.

Example 2. Use the temperature graph above. (a) By how much did the temperature rise from 6 to 12 hours? (b) In which two-hour interval was the rise fastest? (c) What was the fall from 12 to 16 hours?

Solution. The readings are at hours. (a) . (b) The rises in the three intervals are , , , so the fastest rise is from 8 to 10 hours, which is also the steepest segment of the graph. (c) .

A time-temperature graph is a vertical line at hours, going from up to . Can this be a real graph?

Answer

No. It would say that at the same moment, 3 hours, the temperature was both and and every value between. At one time a quantity has one value, so a line graph against time can never have two dots above the same time.

Reading a graph by looking at the shape and ignoring the numbers on the axes. Two graphs of the same shape can show very different changes if their axes are numbered differently.

Linear graphs Class 8

A line graph whose dots all lie on one straight line is a linear graph. It tells us that the quantity changes by the same amount for every equal step of the other quantity. If the cost of 1 notebook is ₹10, then 2 notebooks cost ₹20, 3 cost ₹30: each extra notebook adds ₹10, and the graph is a straight line.

How to test a table. Look at the differences. If goes up by equal steps and goes up by the same amount each time, the points are on a line. If the differences change, the graph bends.

Example 3. Which table gives a linear graph?
(i) and . (ii) and .

Solution. (i) As goes up by 1 each time, goes up by , , : always 2, so the points lie on a straight line. (ii) The rises are and , which differ, so the graph is not a straight line. (The second table is , a curve.)

Two facts about a straight line are used all through the chapter. Two points are enough to draw it, so a third point is a free check on your plotting: if it does not fall on the line, something is wrong. And a line can be extended beyond the plotted points when the situation allows it (the first point of a distance-time graph, , is usually valid too).

You plot five points from a table and four lie on a line while the fifth is a little off. What should you do?

Answer

Check the fifth point first: recheck its row of the table and how you read the scale. If the table is right and it is still off, the relation is not exactly linear. Do not bend the line to catch it.

The Cartesian plane Class 8

To say where a point is on a flat sheet we need two numbers: one for how far across, one for how far up. For this we draw two number lines that cross at right angles.

  • The horizontal number line is the X axis (-axis); the vertical one is the Y axis (-axis).
  • They meet at the origin , where both numbers are zero. Its coordinates are .
  • On the X axis, numbers to the right of are positive and to the left are negative. On the Y axis, numbers above are positive and below are negative.
  • The axes split the plane into four quadrants, numbered I, II, III, IV anticlockwise, starting at the top right.
-5-4-3-2-112345-5-4-3-2-112345OXYQuadrant I (+, +)Quadrant II (−, +)Quadrant III (−, −)Quadrant IV (+, −)X′Y′
The two axes meet at the origin and cut the plane into four quadrants, numbered anticlockwise from the top right.
Quadrant Sign of Sign of Example
I
II
III
IV

A point on an axis belongs to no quadrant. A point on the X axis has ; a point on the Y axis has .

Example 4. Name the quadrant or axis of , , , , and .

Solution. : both positive, quadrant I. : negative, positive, quadrant II. : both negative, quadrant III. : positive, negative, quadrant IV. has , so it is on the Y axis. has , so it is on the X axis.

A point has and . In which quadrant is it?

Answer

means and have the same sign (quadrant I or III). rules out both positive. So both are negative: quadrant III.

Numbering the quadrants clockwise, or placing in quadrant IV. Anticlockwise from the top right: I , II , III , IV .

Coordinates and plotting points Class 8

A point is named by its coordinates , written in that order. The first number is the abscissa (the distance across, from the Y axis); the second number is the ordinate (the distance up, from the X axis). The order matters: and are different points.

To plot : start at the origin, move units along the X axis (right if positive, left if negative), then units parallel to the Y axis (up if positive, down if negative), and mark the point.

-5-4-3-2-112345-5-4-3-2-112345OXYA(3, 2)B(−2, 3)C(−4, −3)D(2, −4)E(0, 3)F(−4, 0)
Plotting : go 3 right, then 2 up. is 2 left and 3 up. and lie on the axes: on the Y axis, on the X axis. The dashed lines show the two distances that make each pair.

Two things the picture shows. The distance of a point from the Y axis is the size of its abscissa, , and the distance from the X axis is the size of its ordinate, . The signs only say on which side the point lies.

Example 5. (a) If lies on the Y axis, find . (b) If is the origin, find . (c) If is the origin, find .

Solution. (a) On the Y axis the abscissa is 0: , so . (The point is then .) (b) At the origin both coordinates are 0: gives , and gives , so . (c) Both zero: and . From the first, . Then , so and . Check: , and . ✓

Example 6. A point is 3 units from the X axis and 6 units from the Y axis. Give all its possible coordinates.

Solution. Distance from the X axis is , so . Distance from the Y axis is , so . There are four points: , , , , one in each quadrant. If the question also says the point is in the first quadrant, only remains.

A point has abscissa and ordinate . Where does it lie, and how far is it from each axis?

Answer

On the X axis (its ordinate is 0), 4 units to the left of the origin. Its distance from the Y axis is and from the X axis is .

Plotting as “5 across, 3 up”. The first number always goes along the X axis. Think “along the corridor, then up the stairs”.

Choosing a scale Class 8

Real data rarely fits one square to one unit. The scale says how much a square (or a centimetre) of the graph paper stands for on each axis. The two axes may have different scales, but each axis must use one scale throughout.

How to choose:

  1. Find the largest value for each quantity (and the smallest, if it is not near zero).
  2. Count how many squares you have for that axis, say 10.
  3. Pick a round step (1, 2, 5, 10, 50, 100, …) so that the largest value fits in those squares and each square is easy to read. Steps like 3 or 7 make the paper hard to read.
  4. Number the axes and write the scale on the graph, for example “1 square 5 litres”.
51015202530250500750100012501500Olitrescost (₹)(10, 500)(25, 1250)16 L₹800
Scale: one square across litres, one square up is ₹250. The line is straight, so ₹800 (3.2 squares up) meets the line at 3.2 squares across, which is 16 litres.

Example 7. The table gives petrol and its cost: litres cost ₹. Choose a scale and use the graph to find how much petrol can be bought for ₹800.

Solution. The largest litres is 25 and the largest cost is 1250. Take 1 square litres across (25 litres is 5 squares) and 1 square up (1250 is 5 squares). The points are , , , and they lie on a straight line through the origin. From ₹800 on the vertical axis go across to the line, then down: 16 litres. Check by arithmetic: the rate is per litre, and . ✓

For the table and , a student takes 1 square across and 1 square up. Is this a good choice?

Answer

It fits (4 and 4 squares) and is exact for the data, but a step of 3 makes it hard to read in-between values. A step of 2 or 5 up would be easier to read. The graph is correct either way, because each axis uses one scale throughout.

Changing the scale part-way along an axis, for example squares for and then jumping to , . This bends a straight line. Use one step on each axis, and if you must start away from zero, show a break mark.

Graphs of quantities Class 8

Many pairs of quantities in daily life are tied by a fixed rule. Plot a few pairs and the dots show the rule as a line. Three standard cases follow.

Distance and time at a steady speed

If a scooter goes at a steady 30 km/h, then distance . After 1 h it is 30 km away, after 2 h 60 km, and so on. The distance-time graph is a straight line through the origin, because at time 0 the distance is 0.

1234306090120Otime (hours)distance (km)2.5 h75speed 30 km/h
Distance against time at a steady 30 km/h: a straight line through the origin . At 2.5 h the graph reads 75 km.

Example 8. Ajit rides a scooter at a constant 30 km/h. From the time-distance graph, how far does he go in hours, and how long does he take to cover 105 km?

Solution. The points are . At h the graph reads 75 km; by calculation . ✓ For 105 km, h: the graph reaches 105 km halfway between (90 km) and (120 km). ✓

Simple interest

Simple interest is . At per year for 1 year this is . So a deposit of ₹100 earns ₹10, ₹200 earns ₹20, and so on: again a straight line through the origin, with across and up.

1002003004005001020304050Osum (₹)interest (₹)(300, 30)
Simple interest at for one year against the sum deposited. One square across is ₹100, one square up is ₹10.

Example 9. A bank gives simple interest a year to senior citizens. Using the graph, find the interest on ₹650 for a year, and the deposit that earns ₹45.

Solution. The graph is . For ₹650: , so ₹65. From the line, ₹650 lies between 600 (interest 60) and 700 (interest 70), halfway: 65. ✓ For an interest of ₹45: . ✓

Perimeter of a square

A square of side has perimeter . The pairs lie on a straight line through the origin.

1234564812162024Oside (cm)perimeter (cm)(4.5, 18)
Perimeter side. The points lie on one straight line through the origin; the point on it tells us a square of side 4.5 cm has perimeter 18 cm.

Example 10. A square has side 4.5 cm. Read its perimeter from the graph, and find the side of the square whose perimeter is 18 cm. Is the graph of the area of a square against its side also a straight line?

Solution. Perimeter cm; this is the red point , so a perimeter of 18 cm needs side cm. For the area the pairs are ; the rises are not equal, so the points are on a curve, not a straight line.

Why do all three graphs pass through the origin?

Answer

Each quantity is a constant times the other (distance , interest , perimeter ). Zero of one gives zero of the other, so is on the line. Such quantities are called directly proportional.

Slope as a rate Foundation

A straight line climbs by a fixed amount for each step across. That fixed amount is its slope (steepness). Take any two points on the line. The horizontal change between them is the run, the vertical change is the rise.

123451234567891011Oxyrun = 2rise = 4(1, 3)(3, 7)
Between and the line goes 2 across (run) and 4 up (rise): slope . Any two points on the line give the same slope.

On the graph the line goes through and : rise , run , slope . The same answer comes from and : . Slope does not depend on which two points we pick, which is exactly what makes the graph a straight line.

The reason slope matters is its meaning. It is the rate of change: how much changes per one unit of , in the units of the axes.

  • On a distance-time graph, slope is the speed. The scooter’s line has slope km/h.
  • On a simple-interest graph, slope , the interest per rupee.
  • On a perimeter graph, slope cm per cm: the 4 sides of a square.
  • A steeper line has a larger slope, so a faster rate. A line that rises has positive slope, one that falls has negative slope, and a horizontal line has slope 0.

Example 11. Rahul’s distance-time line goes from to and Sita’s from to (time in hours, distance in km). Who is faster, and by how much?

Solution. Rahul: km/h. Sita: km/h. Sita’s line is steeper and she is faster by km/h.

Example 12. The points , , give temperature in °F () against °C () and lie on a line. Find the slope, then the °F reading for C and the °C reading for F.

Solution. Slope , and with again , so the points are on one line. Each degree C is degrees F, starting from 32 at . At C: F. For F: and , so C. This agrees with the familiar .

A line goes through and . Is its slope positive or negative, and what is it?

Answer

As goes from 1 to 4, falls from 5 to 2, so the slope is negative: .

Computing slope as (run over rise), or subtracting the values in one order and the values in the other. Use the same order of points in both differences.

Distances on the plane Foundation

Points on a line parallel to an axis

If two points have the same , the line joining them is parallel to the X axis, and the distance between them is the difference of the values (the larger minus the smaller). If they have the same , the line is parallel to the Y axis, and the distance is the difference of the values.

-5-4-3-2-1123456-6-5-4-3-2-11234OXYA(−3, 2)B(4, 2)C(4, −5)D(−3, −5)77
and have the same , so is parallel to the X axis and its length is the difference of the values: . and have the same , so .

Example 13. Plot , , , . Show that is a square and find its perimeter and area.

Solution. and have the same : . and have the same : . and have the same : . and have the same : . The sides are along the axes directions, so the corners are right angles, and all four sides are 7: it is a square. Perimeter ; area square units.

A slanting line: Pythagoras

For a slanting line, draw a horizontal and a vertical line to make a right triangle. Its legs are and and the distance is the hypotenuse:

Example 14. Find (a) the distance of from the origin; (b) the distance between and ; (c) how far Nita walks if she goes 160 m north, then 630 m west, then returns straight home.

Solution. (a) Legs and : . (b) differs by , by : . (c) Put her house at the origin; her friend’s house is at . The straight way home is m. Her whole walk is m.

Is the distance of from the X axis 3 or 5? And from the origin?

Answer

From the X axis it is the size of the ordinate, 5. From the Y axis it is 3. From the origin it is , which is more than both.

Subtracting instead of adding when a coordinate is negative: the distance from to is , not . Count the gap across zero.

Area of figures from coordinates Foundation

Once the sides are known from coordinates, the usual area formulas work. When a side is parallel to an axis, its length and the height come straight from the coordinates.

  • Rectangle: . For : , , area .
  • Trapezium with parallel sides along the X axis direction: , where is the difference of the two values.
123456712345OXYP(0, 0)Q(6, 0)R(6, 4)S(2, 4)64h = 4
and are both parallel to the X axis, so they are the parallel sides: , , and the height is the difference of values, 4.

Example 15. Find the area of the quadrilateral .

Solution. and are both at constant ( and ), so they are parallel. , , height . Area square units. Check by cutting: the rectangle , has area 24 and the cut-off right triangle at the left (legs 2 and 4) has area ; . ✓

For a slanting triangle with no side parallel to an axis, enclose it in a rectangle whose sides are parallel to the axes, and subtract the corner triangles. Their legs are all read from the coordinates.

123456123456OXYA(1, 1)B(5, 2)C(2, 5)441
Fit the triangle in the square (area 16). Three right triangles are left over at the corners; take them away.

Example 16. Find the area of the triangle , , .

Solution. The enclosing square is from to , area . Three corner triangles are cut away:
between and (corner ): legs and , area ;
between and (corner ): legs and , area ;
between and (corner ): legs and , area .
The triangle’s area is square units.

A rectangle has corners and at opposite ends of a diagonal, with sides parallel to the axes. What is its area, and what are the other two corners?

Answer

Length , breadth , area . The other corners are and .

Reading a graph for intersection Foundation

Two lines drawn on the same axes cross at a point where both quantities have the same two values: that is a point common to both graphs. On a distance-time graph the crossing says when and where two travellers are at the same place, that is, when they meet. (If the lines never cross, the travellers never meet, as with two parallel lines of the same speed.)

123420406080100120Otime (hours)distance from town P (km)meet: 2 h, 80 kmcar Acar B
Car A leaves at 40 km/h. Car B leaves a town 120 km away, heading towards at 20 km/h. Their lines cross at .

Example 17. Car A leaves town at 40 km/h. At the same moment car B leaves a town 120 km from and drives towards at 20 km/h. Find from the graph, and check by calculation, when and where they meet.

Solution. Distances from after hours: car A: . Car B: . A’s line goes from to ; B’s from to . They cross at : after 2 hours, 80 km from . Check: A has gone , B is at . ✓ Equal when , , . B has gone 40 km, so they meet 40 km from B’s town.

A line also meets the axes. Those points are the intercepts: the point where (on the Y axis) and the point where (on the X axis).

12345671234567OXY(2, 4)(4, 2)(0, 6)(6, 0)
The line through and , extended both ways, meets the Y axis at and the X axis at .

Example 18. Plot and , join them and extend the line to meet the axes. Find where it meets them and the area of the triangle it makes with the axes.

Solution. The slope is : every step 1 across takes the line 1 down. Going back 2 across from gives ; going on 2 across from gives . So it meets the Y axis at and the X axis at . Every point on it has coordinates adding to 6 (the midpoint does too). The triangle with the origin has legs 6 and 6, area square units. Extended further the line enters quadrant IV, for example .

Two cyclists’ distance-time lines are parallel. Do they ever meet?

Answer

Never. Parallel lines have the same slope, so the cyclists have the same speed, and the gap between them stays the same.

The chapter on one page

  • Bar graph: separate items, gaps. Pie chart: part whole. Histogram: grouped data, bars touch.
  • Line graph: continuous change over time; read the axes and their start first. Linear graph: all points on one straight line, equal steps in give equal steps in .
  • Two perpendicular number lines meet at the origin : X axis horizontal, Y axis vertical. Quadrants I , II , III , IV , anticlockwise.
  • A point is : abscissa first, ordinate second. On the X axis ; on the Y axis . Distance from the Y axis , from the X axis .
  • Scale: one round step per axis, chosen so the largest value fits; write it on the graph.
  • Distance-time at constant speed, simple interest at a fixed rate, and perimeter of a square are straight lines through the origin.
  • Slope , the rate of change; steeper means faster; the same for every pair of points on a line.
  • Distance on a parallel to an axis is the difference of coordinates; in general ; from the origin .
  • Areas: use lengths from coordinates; for a slanting triangle enclose it in an axis-parallel rectangle and subtract the corners.
  • The crossing of two graphs gives the common values: when and where two travellers meet.

Ten mistakes to avoid

  1. Writing for : plotting as 5 across and 3 up.
  2. Numbering the quadrants clockwise.
  3. Calling a point on an axis a point of some quadrant.
  4. Forgetting that the distance from the X axis is the ordinate, and from the Y axis the abscissa.
  5. Using one square for one unit when the data are far larger, or changing the scale part-way along an axis.
  6. Reading a graph that does not start at zero as if it did.
  7. Joining points that should not be joined, or bending a line through a stray point.
  8. Subtracting wrongly across zero: the gap from to is 7, not 1.
  9. Slope as run over rise, or mixing the order of the two points.
  10. Reading a distance-time graph for position but taking its height as speed: speed is the slope.

Questions to try

Class 8

Practice question · 1 mark

In which quadrant is the sign of the x coordinate and the y coordinate of a point the same?

  1. I
  2. III
  3. (A) and (B) both
  4. None of these
Answer

Answer: (c) (A) and (B) both

Practice question · 1 mark

In which of the following quadrants does the point lie?

  1. I
  2. II
  3. III
  4. IV
Answer

Answer: (c) III

NCERT · 1 mark

For the point , the distance from the -axis is __________ units.

Answer

Answer: 2

The distance from the -axis is the -coordinate, which is 2.

Our question · 1 mark

The monthly maximum temperature of a city is recorded for every month of a year. Which kind of graph is generally used to show how such a quantity changes over time?

  1. A pictograph with one symbol per city
  2. A line graph joining the monthly values
  3. A table with no graph
  4. A pie chart of the twelve values
Answer

Answer: (b) A line graph joining the monthly values

Line graphs join the values for successive months with lines, so they are generally used to visualise data across time. Answer: B.

NCERT · 3 marks

Plot the points , , and on a graph paper and connect them with line segments. Name the shape formed by these points.

Answer

Answer: rhombus

Joining the points in order , the diagonals are the vertical segment from to of length 2 and the horizontal segment from to of length 6. They cross at , which is the midpoint of each, and they are perpendicular. A quadrilateral whose diagonals bisect each other at right angles is a rhombus. Each side is , which confirms this.

NCERT · 1 mark

The coordinates of a point at a distance of 3 units from the axis and 6 units from the axis is

  1. (0, 3)
  2. (6, 0)
  3. (3, 6)
  4. (6, 3)
Answer

Answer: (d) (6, 3)

The distance from the x-axis is the y-coordinate, so y = 3. The distance from the y-axis is the x-coordinate, so x = 6. The point is (6, 3), option (d).

Practice question · 1 mark

The distance of the point from the X-axis is:

  1. None of these
Answer

Answer: (c)

Practice question · 1 mark

The y – coordinate in are:

Answer

Answer: (c)

Foundation

Practice question · 1 mark

If lies on the Y axis, then find the value of .

  1. 1
  2. 2
  3. 3
  4. 4
Answer

Answer: (b) 2

Practice question · 1 mark

If lies on the origin, then find the value of .

  1. 3
  2. 4
  3. 7
  4. 10
Answer

Answer: (c) 7

Practice question · 1 mark

If lies on the origin, then find the value of .

  1. 2
  2. 3
Answer

Answer: (a) 2

Practice question · 1 mark

The distance of the point from the origin is:

  1. 4
  2. 3
  3. 5
  4. 6
Answer

Answer: (c) 5

Practice question · 1 mark

There are 2 points and . Find the distance between and .

  1. 5
  2. 6
  3. 10
  4. 11
Answer

Answer: (c) 10

Practice question · 1 mark

The points , and give temperature in °F against temperature in °C (°C on the x-axis, °F on the y-axis). They lie on a straight line. Reading from this line graph, what is the temperature in °F when it is C?

Answer

Answer: 59

When the temperature is 15°C, the corresponding temperature is 59°F.

Practice question · 1 mark

Nita walks from her house 160 metres north and from there 630 metres west to visit her friend. While coming back, she walked diagonally from her friend’s house back to her home. What distance did she walk while returning?

  1. 730 m
  2. 800 m
  3. 1250 m
  4. 650 m
Answer

Answer: (d) 650 m

Read the notes? Test yourselfA short quiz on this chapter, free, no sign-in needed. Sign in free afterwards to keep your score and try the JEE Foundation test. Your score at once.