Topics in this sectionGraphing Functions6 topics
Linear Graphs: Drawing and Understanding y = mx + c
When we add a constant to an x-term in an expression, we get a straight-line graph. In this lesson you will learn how to draw such graphs and how to read important information from them.
A linear function is a rule that produces a straight line when we plot it on a graph. Every linear function can be written in the form:
y=mx+c
Here, m is the gradient (or slope), which tells us how steep the line is. The letter c is the y-intercept, which is the point where the line crosses the vertical y-axis. When we increase x by 1, the value of y changes by m.
In South Sudan, we can think of this like pricing sorghum at the boma market. If a bag costs 200 SSP plus 50 SSP for each kilogram, the total cost y = 50x + 200. The 200 is the y-intercept (the starting price) and 50 is the gradient (price per kilogram).
To draw any graph, we first need to find pairs of x and y values that satisfy the equation. We do this by choosing x-values, substituting them into the equation, and working out the corresponding y-values.
Let us work with the function:
y=2x+3
Choose three simple x-values. The numbers −1, 0, and 1 are usually the easiest to calculate with.
When x = -1: y=2(−1)+3=−2+3=1 So the ordered pair is (−1,1)
When x = 0: y=2(0)+3=0+3=3 So the ordered pair is (0,3)
When x = 1: y=2(1)+3=2+3=5 So the ordered pair is (1,5)
We can write these pairs in a small table:
| x | y |
|---|---|
| -1 | 1 |
| 0 | 3 |
| 1 | 5 |
These three points are enough to draw the entire line, because any two points define a straight line, and three points help us check that we have not made a mistake.
- Draw a horizontal number line for x and a vertical number line for y. Make sure they cross at the centre of your page so you can show both positive and negative values.
- Find the position of each ordered pair on your grid. For example, the point (-1, 1) is one unit left of the centre and one unit up.
- Mark each of the three points clearly with a small cross or dot.
- Use a ruler to draw a straight line passing through all three points. Extend the line to the edges of your grid.
- Label the line with its equation, y=2x+3.
If your three points do not lie on exactly the same straight line, check your calculations in the table.
The y-intercept is the point where the line crosses the vertical y-axis. At this point, the value of x is always zero.
Looking at our table, when x = 0 we got y = 3. Therefore, the line crosses the y-axis at the point (0, 3). We say the y-intercept is 3, which is the c-value in the equation y=2x+3.
You can verify this on your graph: the line meets the vertical axis at the mark labelled 3.
The gradient (or slope) tells us how the line tilts. In the equation y=2x+3, the gradient is 2. This means that for every step of 1 unit to the right along the x-axis, the line goes up by 2 units.
A positive gradient produces a line that tilts upward from left to right. If the gradient were negative, the line would tilt downward.
- A linear function has the form y=mx+c.
- The letter m is the gradient (slope); c is the y-intercept.
- To draw the graph, make a table of ordered pairs, plot the points, and join them with a straight line.
- The y-intercept is the value of y when x = 0; it is where the line crosses the y-axis.
- The gradient tells you how much y changes when x increases by 1.
Now try drawing the graph of y=−x+4 using three points of your own choosing. Select x = 0, x = 1, and x = 2. Calculate the y-values, plot the points, and draw the line. What is the y-intercept? Is the gradient positive or negative? Describe how the line tilts.
In everyday life in South Sudan, linear graphs appear when counting costs at a market in Juba or Wau. For example, if you buyemba (sorghum) at 150 SSP per kilogram plus a 300 SSP transport cost, the total cost y = 150x + 300 is a linear function. Drawing the graph helps you see how the total cost increases as you buy more emma, and the y-intercept (300 SSP) shows the fixed transport cost even before you buy any grain.
Question
In the linear equation y=50x+200, what do the numbers 50 and 200 represent?
Sign in to submit your answer and have it count toward your mastery.
Sign in to practiceTutor
Stuck? Ask me anything about this topic.
Sign in to ask the Sonza AI Tutor about this question.
Sign in to askDiscussions
No questions yet