7.01b, 7.01c, 7.02a - Straight-line graphs

7.01b, 7.01c, 7.02a - Straight-line graphs

How can five calculated points describe infinitely many answers? Learn to plot and sketch straight lines, distinguish horizontal from vertical lines, and read what a gradient and an intercept tell you.

Plotting from a table

If a machine follows the rule y=2x+1y=2x+1, can you show every possible input and output without writing an endless table?

Start by substituting a few inputs. Each pair (x,y)(x,y) gives one point: move along the horizontal xx-axis first, then up or down parallel to the vertical yy-axis. Label both axes and choose a scale with equal numerical steps at equal distances along each axis. The two axes may use different scales.

Graph of an equation

The graph of an equation is the set of points whose coordinates satisfy it. A linear equation in xx and yy gives a straight line. A table supplies sample points on that line.

A plot uses calculated coordinates on a scale. For a straight line, two distinct correct points determine its position; a third is a useful error check. If a range is specified, draw the line across that range. Otherwise show its continuation, rather than treating the table's first and last points as mathematical endpoints.

Worked example 1: positive changes

Question. Complete a table for y=2x+1y=2x+1 at x=−2,−1,0,1,2x=-2,-1,0,1,2, then plot the graph for −2≤x≤2-2\le x\le2.

Plan. Substitute each input, plot the five coordinate pairs, and use a ruler to join them.

x=−2: y=2(−2)+1=−3substitute with bracketsx=−1: y=2(−1)+1=−1x=0: y=1x=1: y=3x=2: y=5\begin{aligned} x=-2&:\ y=2(-2)+1=-3 &&\text{substitute with brackets}\\ x=-1&:\ y=2(-1)+1=-1\\ x=0&:\ y=1\\ x=1&:\ y=3\\ x=2&:\ y=5 \end{aligned}

Answer. Plot (−2,−3),(−1,−1),(0,1),(1,3),(2,5)(-2,-3),(-1,-1),(0,1),(1,3),(2,5), then draw the straight line through them over the requested range.

Check. Each increase of 11 in xx increases yy by 22. All five points follow that same change, so they line up.

Change only the sign of the coefficient of xx. The graph will now fall as you move right.

Worked example 2: negative changes

Question. Complete and plot the corresponding table for y=−2x+1y=-2x+1 over the same range.

Plan. Keep the inputs and calculate each new output before drawing the line.

x=−2: y=−2(−2)+1=5negative times negative is positivex=−1: y=3x=0: y=1x=1: y=−1x=2: y=−3\begin{aligned} x=-2&:\ y=-2(-2)+1=5 &&\text{negative times negative is positive}\\ x=-1&:\ y=3\\ x=0&:\ y=1\\ x=1&:\ y=-1\\ x=2&:\ y=-3 \end{aligned}

Answer. Plot (−2,5),(−1,3),(0,1),(1,−1),(2,−3)(-2,5),(-1,3),(0,1),(1,-1),(2,-3) and join with a ruled line.

Check. At x=12x=\frac12, the equation gives y=0y=0. The drawn line crosses the xx-axis halfway between 00 and 11, consistent with this extra point.

[DIAGRAM: asset_name: Tables produce rising and falling lines; asset_slug: linear-tables; caption: Changing the coefficient from positive two to negative two reverses the direction.; description: Two scaled coordinate grids show y equals two x plus one and y equals negative two x plus one for x from negative two to two. All five calculated points are marked on each straight line.]
Changing the coefficient from positive two to negative two reverses the direction.

The infinite set of solutions has a simple picture: a constant change in output for each fixed change in input produces a straight line.

Horizontal and vertical lines

An equation can fix one coordinate while allowing the other to vary freely.

For y=3y=3, points such as (−2,3),(0,3),(5,3)(-2,3),(0,3),(5,3) all have height 33: the graph is horizontal. For x=3x=3, points such as (3,−2),(3,0),(3,5)(3,-2),(3,0),(3,5) all have horizontal position 33: the graph is vertical. Say which coordinate is fixed before choosing a direction.

Worked example 3: a fixed height

Question. Sketch y=−2y=-2, giving two points on it.

Plan. Keep the yy-coordinate at −2-2 and choose two different xx-coordinates.

x=0⇒(0,−2)height is fixedx=3⇒(3,−2)only horizontal position changes\begin{aligned} x=0&\Rightarrow(0,-2) &&\text{height is fixed}\\ x=3&\Rightarrow(3,-2) &&\text{only horizontal position changes} \end{aligned}

Answer. Draw a horizontal line through (0,−2)(0,-2), continuing in both directions.

Check. Every point on this line is two units below the xx-axis, so every point has y=−2y=-2.

Keep the number −2-2, but change which coordinate is fixed. That changes the orientation.

Worked example 4: a fixed horizontal position

Question. Sketch x=−2x=-2, giving two points on it.

Plan. Keep the xx-coordinate at −2-2 and vary yy.

y=0⇒(−2,0)horizontal position is fixedy=3⇒(−2,3)only height changes\begin{aligned} y=0&\Rightarrow(-2,0) &&\text{horizontal position is fixed}\\ y=3&\Rightarrow(-2,3) &&\text{only height changes} \end{aligned}

Answer. Draw a vertical line through (−2,0)(-2,0), continuing in both directions.

Check. Every point is two units left of the yy-axis. A point such as (0,−2)(0,-2) is not on it because its xx-coordinate is 00.

[DIAGRAM: asset_name: Fixed height and fixed horizontal position; asset_slug: horizontal-vertical; caption: The equation names the coordinate that stays fixed.; description: Separate grids show the horizontal line y equals negative two and the vertical line x equals negative two, each with two labelled points.]
The equation names the coordinate that stays fixed.

Watch out

x=0x=0 is the vertical yy-axis; y=0y=0 is the horizontal xx-axis. The equation gives the coordinate that is zero, not the name of the axis.

Use the coordinate condition to decide the next pair of lines.

Gradient and intercept

A sloping straight line has a fixed rate of change, measured using coordinate values rather than the apparent angle of the drawing.

From (0,−2)(0,-2) to (2,1)(2,1), the horizontal change is 22 and the vertical change is 33. The gradient is 3÷2=323\div2=\frac32. Make a large right-angled step between convenient points on a graph: it reduces reading error. Use the numerical scales, since counting squares alone fails when the axes have different scales.

Continue this lesson.

You’re previewing NovaLearn without an account. Create a free account to read the rest.

Create free account