Algebra 1Linear Functions1 of 7
Linear Functions · 1

Slope and Rate of Change

We want a single number to measure how steep a line is and how fast one amount changes compared to another.

1

What Slope and Rate of Change Mean

To measure steepness or speed of change, we compare how much the vertical amount changes for every 11 unit the horizontal amount moves forward.

What Slope and Rate of Change Mean
Ramp\text{Ramp}
Staircase\text{Staircase}
Text solution
Divide vertical change by horizontal change for the staircaseComparing the 6 feet\outputquantity{6}\text{ feet} of height gained to the 3 feet\inputquantity{3}\text{ feet} walked forward gives the height gained per 1 foot\inputquantity{1}\text{ foot} across.
Slope=UpAcross=63=2\displaystyle \begin{aligned}\sloperate{\text{Slope}} &= \frac{\outputquantity{\text{Up}}}{\inputquantity{\text{Across}}} \\ &= \frac{\outputquantity{6}}{\inputquantity{3}} \\ &= 2\end{aligned}
Include the units for the job graphDividing the 60 dollars\outputquantity{60}\text{ dollars} earned by the 3 hours\inputquantity{3}\text{ hours} worked uses the exact same fraction to find the earnings per 1 hour\inputquantity{1}\text{ hour}.
Rate of change=60 dollars3 hours=20 dollars per hour\displaystyle \begin{aligned}\sloperate{\text{Rate of change}} &= \frac{\outputquantity{60}\text{ dollars}}{\inputquantity{3}\text{ hours}} \\ &= 20\text{ dollars per hour}\end{aligned}

So a slope of 2\sloperate{2} means the staircase rises 2 feet\outputquantity{2}\text{ feet} for every 1 foot\inputquantity{1}\text{ foot} forward, and a rate of change of 20 dollars per hour\sloperate{20}\text{ dollars per hour} means earnings increase by 20 dollars\outputquantity{20}\text{ dollars} for every 1 hour\inputquantity{1}\text{ hour} worked.

2

Finding Slope on a Graph

When a line is drawn on a coordinate grid, we can find its slope by counting the grid squares, whether the line goes uphill, goes downhill, lies flat, or goes straight up and down.

Uphill\text{Uphill}
Up 2\htmlClass{lc-blue}{\text{Up }2}
Right 3\htmlClass{lc-orange}{\text{Right }3}
(1,1)(1,1)
(4,3)(4,3)
Downhill\text{Downhill}
Down 4\htmlClass{lc-blue}{\text{Down }4}
(−4)\htmlClass{lc-blue}{(-4)}
Right 5\htmlClass{lc-orange}{\text{Right }5}
Horizontal\text{Horizontal}
Up 0\htmlClass{lc-blue}{\text{Up }0}
Right 4\htmlClass{lc-orange}{\text{Right }4}
Vertical\text{Vertical}
Up 5\htmlClass{lc-blue}{\text{Up }5}
Right 0\htmlClass{lc-orange}{\text{Right }0}
Finding Slope on a Graph
(1,1)(1,1)
(4,3)(4,3)
x\htmlClass{lc-orange}{x}
y\htmlClass{lc-blue}{y}
Text solution
Count the step between two grid corners on the uphill lineGoing left to right from (1,1)(1, 1) to (4,3)(4, 3) goes up 2\outputquantity{2} boxes and right 3\inputquantity{3} boxes. We leave this as a fraction rather than a repeating decimal so it is easy to see the steps up and right.
Slope=UpRight=23\displaystyle \begin{aligned}\sloperate{\text{Slope}} &= \frac{\outputquantity{\text{Up}}}{\inputquantity{\text{Right}}} \\ &= \frac{\outputquantity{2}}{\inputquantity{3}}\end{aligned}
Check a wider step on the same linePicking (1,1)(1, 1) and (7,5)(7, 5) gives a larger stair step that reduces to the same fraction, because a straight line's steepness never changes.
Slope=46=23\displaystyle \begin{aligned}\sloperate{\text{Slope}} &= \frac{\outputquantity{4}}{\inputquantity{6}} \\ &= \frac{\outputquantity{2}}{\inputquantity{3}}\end{aligned}
Go left to right on the downhill lineStepping down 4\outputquantity{4} boxes is written as −4\outputquantity{-4}, while the step of 5\inputquantity{5} boxes to the right stays positive.
Slope=−45=−45\displaystyle \begin{aligned}\sloperate{\text{Slope}} &= \frac{\outputquantity{-4}}{\inputquantity{5}} \\ &= \outputquantity{-}\frac{\outputquantity{4}}{\inputquantity{5}}\end{aligned}
Check the horizontal and vertical linesA flat horizontal line has 0\outputquantity{0} vertical change over 4\inputquantity{4} steps right, while a vertical line has 0\inputquantity{0} horizontal steps on the bottom of the fraction, and we cannot divide by zero.
Horizontal slope=04=0,Vertical slope=50 (undefined)\displaystyle \begin{aligned}\sloperate{\text{Horizontal slope}} &= \frac{\outputquantity{0}}{\inputquantity{4}} = 0, \\ \sloperate{\text{Vertical slope}} &= \frac{\outputquantity{5}}{\inputquantity{0}}\text{ (undefined)}\end{aligned}

So an uphill line has a positive slope, a downhill line has a negative slope, a flat horizontal line has a slope of 0\sloperate{0}, and a vertical line has an undefined slope.

In this grid, the slope fraction updates with the vertical and horizontal step counts as the line tilts through uphill, downhill, horizontal, and vertical positions:

The slope of a line comes from its stair step: the vertical change (up or down) divided by the horizontal change (across).
3

Finding Slope from Two Points

When we are given two points like (3,5)(3, 5) and (7,17)(7, 17) with no graph, we can find the slope directly from the coordinates without drawing a grid and counting boxes.

Finding Slope from Two Points
(3,5)(7,17)\displaystyle (3,5)\qquad(7,17)
m\displaystyle \sloperate{m}=  ?\displaystyle =\;?
Text solution
Find how much the coordinates change from (3,5)(3, 5) to (7,17)(7, 17)Stacking the points shows that y\outputquantity{y} goes up from 55 to 1717 while x\inputquantity{x} goes up from 33 to 77.
Slope=+12+4=3\displaystyle \begin{aligned}\sloperate{\text{Slope}} &= \frac{\outputquantity{+12}}{\inputquantity{+4}} \\ &= 3\end{aligned}
Count past zero from (−2,8)(-2, 8) to (3,−7)(3, -7)Going from 88 down to 00 (8\outputquantity{8}) and then to −7-7 (7\outputquantity{7}) gives a vertical change of −15\outputquantity{-15}, while going from −2-2 up to 00 (2\inputquantity{2}) and then to 33 (3\inputquantity{3}) gives a horizontal change of +5\inputquantity{+5}.
Slope=−15+5=−3\displaystyle \begin{aligned}\sloperate{\text{Slope}} &= \frac{\outputquantity{-15}}{\inputquantity{+5}} \\ &= -3\end{aligned}

So the line through (3,5)(3, 5) and (7,17)(7, 17) has a slope of 3\sloperate{3}, and the line through (−2,8)(-2, 8) and (3,−7)(3, -7) has a slope of −3\sloperate{-3}.

Subtracting the starting coordinate from the ending coordinate writes this exact same comparison as the slope formula:

m⏟slope=y2−y1⏞ending y minus starting yx2−x1⏟ending x minus starting x=Δy⏞change in yΔx⏟change in x\displaystyle \begin{aligned}\underbrace{\sloperate{m}}_{\text{slope}} &= \frac{\overbrace{\outputquantity{y_2 - y_1}}^{\begin{gathered}\text{ending } y\\\text{ minus starting } y\end{gathered}}}{\underbrace{\inputquantity{x_2 - x_1}}_{\begin{gathered}\text{ending } x\\\text{ minus starting } x\end{gathered}}} \\ &= \frac{\overbrace{\outputquantity{\Delta y}}^{\text{change in } y}}{\underbrace{\inputquantity{\Delta x}}_{\text{change in } x}}\end{aligned}

Using subtraction on (−2,8)(-2, 8) and (3,−7)(3, -7) turns subtracting a negative into addition:

m=−7−83−(−2)=−153+2=−155=−3\displaystyle \begin{aligned}\sloperate{m} &= \frac{\outputquantity{-7 - 8}}{\inputquantity{3 - (-2)}} \\ &= \frac{\outputquantity{-15}}{\inputquantity{3 + 2}} \\ &= \frac{\outputquantity{-15}}{\inputquantity{5}} \\ &= -3\end{aligned}

Counting the distance to 00 and past 00 in a stacked table is faster to do in your head, while writing out y2−y1x2−x1\tfrac{\outputquantity{y_2 - y_1}}{\inputquantity{x_2 - x_1}} is useful when you want to write out each algebra step.

4

Rate of Change and Linear Tables

When we have a table with several rows of numbers, we can find the rate of change and check whether the points all lie on a single straight line.

Rate of Change and Linear Tables
x\htmlClass{lc-orange}{x}
y\htmlClass{lc-blue}{y}
Hours\text{Hours}
Miles\text{Miles}
11
5050
33
150150
44
200200
77
350350
Text solution
Divide Δy\outputquantity{\Delta y} by Δx\inputquantity{\Delta x} from the first row to the secondFrom (1,50)(1, 50) to (3,150)(3, 150), the distance increases by 100 miles\outputquantity{100}\text{ miles} over 2 hours\inputquantity{2}\text{ hours}.
ΔyΔx=+100+2=50 miles per hour\displaystyle \begin{aligned}\frac{\outputquantity{\Delta y}}{\inputquantity{\Delta x}} &= \frac{\outputquantity{+100}}{\inputquantity{+2}} \\ &= 50\text{ miles per hour}\end{aligned}
Check the remaining rowsFrom (3,150)(3, 150) to (4,200)(4, 200) is 50 miles\outputquantity{50}\text{ miles} in 1 hour\inputquantity{1}\text{ hour}, and from (4,200)(4, 200) to (7,350)(7, 350) is 150 miles\outputquantity{150}\text{ miles} in 3 hours\inputquantity{3}\text{ hours}.
ΔyΔx=+50+1=50 miles per hour,ΔyΔx=+150+3=50 miles per hour\displaystyle \begin{aligned}\frac{\outputquantity{\Delta y}}{\inputquantity{\Delta x}} &= \frac{\outputquantity{+50}}{\inputquantity{+1}} = 50\text{ miles per hour}, \\ \frac{\outputquantity{\Delta y}}{\inputquantity{\Delta x}} &= \frac{\outputquantity{+150}}{\inputquantity{+3}} = 50\text{ miles per hour}\end{aligned}

Because every step from one row to the next simplifies to the same rate of 50 miles per hour\sloperate{50}\text{ miles per hour}, the table is linear and its slope is 50\sloperate{50}.

5

Rate of Change Over an Interval on a Curve

On a curve f(x)\outputquantity{f(x)}, the steepness changes from point to point, so instead of finding one slope for the whole graph, we find the rate of change over a specific interval [x1,x2]\selectedinterval{[x_1, x_2]}.

00
22
55
1616
2525
Height (feet)\text{Height (feet)}
x (seconds)\htmlClass{lc-orange}{x}\text{ (seconds)}
f(x)\htmlClass{lc-blue}{f(x)}
8 feet per second\htmlClass{lc-pink}{8}\text{ feet per second}
3 feet per second\htmlClass{lc-violet}{3}\text{ feet per second}
Rate of Change Over an Interval on a Curve
f(x) (feet)\htmlClass{lc-blue}{f(x)}\text{ (feet)}
(0,0)(0,0)
(2,16)(2,16)
(5,25)(5,25)
x (seconds)\htmlClass{lc-orange}{x}\text{ (seconds)}
Text solution
Find the rate of change over [0,2]\selectedinterval{[0, 2]}From f(0)=0\outputquantity{f(0)} = 0 to f(2)=16\outputquantity{f(2)} = 16, the height rises 16 feet\outputquantity{16}\text{ feet} in 2 seconds\inputquantity{2}\text{ seconds}.
ΔyΔx=+16 feet+2 seconds=8 feet per second\displaystyle \begin{aligned}\frac{\outputquantity{\Delta y}}{\inputquantity{\Delta x}} &= \frac{\outputquantity{+16}\text{ feet}}{\inputquantity{+2}\text{ seconds}} \\ &= 8\text{ feet per second}\end{aligned}
Find the rate of change over [2,5]\selectedinterval{[2, 5]}From f(2)=16\outputquantity{f(2)} = 16 to f(5)=25\outputquantity{f(5)} = 25, the curve becomes less steep and rises 9 feet\outputquantity{9}\text{ feet} in 3 seconds\inputquantity{3}\text{ seconds}.
ΔyΔx=+9 feet+3 seconds=3 feet per second\displaystyle \begin{aligned}\frac{\outputquantity{\Delta y}}{\inputquantity{\Delta x}} &= \frac{\outputquantity{+9}\text{ feet}}{\inputquantity{+3}\text{ seconds}} \\ &= 3\text{ feet per second}\end{aligned}

So the drone climbs at an average rate of 8 feet per second\sloperate{8}\text{ feet per second} over the interval [0,2]\selectedinterval{[0, 2]}, and at an average rate of 3 feet per second\comparedrate{3}\text{ feet per second} over [2,5]\selectedinterval{[2, 5]}.

Along this curve, the slope of the dashed line connecting the two endpoints changes whenever the interval moves to a steeper or flatter part of the graph:

On a curve, different intervals can have lines of different steepness between their endpoints, so their average rates of change can differ.
6

Finding a Missing Coordinate from the Slope

Sometimes we already know the slope of a line and need to work backwards to find a missing x\inputquantity{x} or y\outputquantity{y} coordinate in one of the points.

Finding a Missing Coordinate from the Slope
(2,5)(6,y)\displaystyle (2,5)\qquad(6,y)
m=3y=  ?\displaystyle \begin{aligned}\sloperate{m}&=\sloperate{3}\\[.35em]\outputquantity{y}&=\;?\end{aligned}
Text solution
Scale the slope for (2,5)(2, 5) and (6,y)(6, y) with slope 3\sloperate{3}Since x\inputquantity{x} goes from 22 to 66 (Δx=+4\inputquantity{\Delta x} = \inputquantity{+4}) and a slope of 31\tfrac{\outputquantity{3}}{\inputquantity{1}} goes up 3\outputquantity{3} for every 1\inputquantity{1} step right, y\outputquantity{y} must go up 44 times as much from 55.
Δy=3×4=12  ⟹  y=5+12=17\displaystyle \begin{aligned}\outputquantity{\Delta y} &= \sloperate{3} \times \inputquantity{4} = \outputquantity{12} \\ \implies \outputquantity{y} &= 5 + \outputquantity{12} \\ & = 17\end{aligned}
Scale the slope for (−1,4)(-1, 4) and (x,−2)(x, -2) with slope −23\outputquantity{-}\tfrac{\outputquantity{2}}{\inputquantity{3}}Since y\outputquantity{y} drops from 44 to −2-2 (Δy=−6\outputquantity{\Delta y} = \outputquantity{-6}), which is 33 times the −2\outputquantity{-2} in −23\tfrac{\outputquantity{-2}}{\inputquantity{3}}, the horizontal step must be 3×3=+9\inputquantity{3} \times 3 = \inputquantity{+9} added to x=−1\inputquantity{x} = -1.
Δx=3×3=+9  ⟹  x=−1+9=8\displaystyle \begin{aligned}\inputquantity{\Delta x} &= \inputquantity{3} \times 3 = \inputquantity{+9} \\ \implies \inputquantity{x} &= -1 + \inputquantity{9} \\ & = 8\end{aligned}
Or solve the slope equation directly for x\inputquantity{x}Setting ΔyΔx\tfrac{\outputquantity{\Delta y}}{\inputquantity{\Delta x}} equal to −23\outputquantity{-}\tfrac{\outputquantity{2}}{\inputquantity{3}} and cross-multiplying gives the same coordinate.
−2−4x−(−1)=−6x+1=−23  ⟹  −2(x+1)=−18  ⟹  −2x−2=−18  ⟹  −2x=−16  ⟹  x=8\displaystyle \begin{aligned}\frac{\outputquantity{-2 - 4}}{\inputquantity{x - (-1)}} &= \frac{\outputquantity{-6}}{\inputquantity{x + 1}} \\ &= \outputquantity{-}\frac{\outputquantity{2}}{\inputquantity{3}} \\ \implies -2(\inputquantity{x} + 1) &= -18 \\ \implies -2\inputquantity{x} - 2 &= -18 \\ \implies -2\inputquantity{x} &= -16 \\ \implies \inputquantity{x} &= 8\end{aligned}

So the missing coordinate is y=17y = 17 in the first line and x=8x = 8 in the second line.

Key concepts

Finding slope or rate of change always comes down to comparing the vertical change to the horizontal change:

m=ΔyΔx=y2−y1x2−x1\displaystyle \begin{aligned}\sloperate{m} &= \frac{\outputquantity{\Delta y}}{\inputquantity{\Delta x}} \\ &= \frac{\outputquantity{y_2 - y_1}}{\inputquantity{x_2 - x_1}}\end{aligned}
On a graph

choose two distinct points on the line, using grid corners when you can. For a nonvertical line, go from left to right so Δx\inputquantity{\Delta x} is positive. Going up 2\outputquantity{2} and right 3\inputquantity{3} gives 23\tfrac{\outputquantity{2}}{\inputquantity{3}}, while going down 4\outputquantity{4} and right 5\inputquantity{5} gives −45\outputquantity{-}\tfrac{\outputquantity{4}}{\inputquantity{5}}. If the line is flat horizontal, Δy=0\outputquantity{\Delta y} = \outputquantity{0} so the slope is 04=0\tfrac{\outputquantity{0}}{\inputquantity{4}} = 0; if the line is vertical, Δx=0\inputquantity{\Delta x} = \inputquantity{0} so 50\tfrac{\outputquantity{5}}{\inputquantity{0}} is undefined.

From two points or a missing coordinate

stack the points to track how each column changes, counting to 00 and past 00 when signs change (from 88 down to −7-7 is −15\outputquantity{-15}). When the slope is already given, you don't need a new formula: find the change in the known column first and scale the slope fraction to match (if ΔyΔx=−23\tfrac{\outputquantity{\Delta y}}{\inputquantity{\Delta x}} = \outputquantity{-}\tfrac{\outputquantity{2}}{\inputquantity{3}} and Δy=−6\outputquantity{\Delta y} = \outputquantity{-6}, multiply the top and bottom by 33 to get Δx=+9\inputquantity{\Delta x} = \inputquantity{+9}).

Across tables and curves

check whether the graph is a single straight line. On a straight line, one pair of points is enough because the slope never changes. In a table with several rows where you are checking if the points form a line, don't stop after one pair or look at Δy\outputquantity{\Delta y} alone. Instead, check ΔyΔx\tfrac{\outputquantity{\Delta y}}{\inputquantity{\Delta x}} for every step from one row to the next (+100+2=50\tfrac{\outputquantity{+100}}{\inputquantity{+2}} = 50 and +50+1=50\tfrac{\outputquantity{+50}}{\inputquantity{+1}} = 50). On a curve f(x)\outputquantity{f(x)}, the rate of change applies only to the given interval [a,b]\selectedinterval{[a, b]}, using (a,f(a))(a, f(a)) and (b,f(b))(b, f(b)).

7

Practice

1

A line on a coordinate grid passes through the grid corners (1,2)(1, 2) and (5,5)(5, 5). What is the slope of the line?

Go from (1,2)(1, 2) to (5,5)(5, 5) and count how many units y\outputquantity{y} goes up compared to how many units x\inputquantity{x} goes right. Warning: Putting the horizontal step on top (ΔxΔy\tfrac{\inputquantity{\Delta x}}{\outputquantity{\Delta y}}) gives 43\tfrac{\inputquantity{4}}{\outputquantity{3}}; make sure the vertical change (5−2=3\outputquantity{5 - 2} = \outputquantity{3}) is on top and the horizontal change (5−1=4\inputquantity{5 - 1} = \inputquantity{4}) is on the bottom.

34\tfrac{3}{4}
2

A line on a coordinate grid goes downhill from (−3,6)(-3, 6) to (3,2)(3, 2). What is the slope of the line in simplest form?

Going left to right from (−3,6)(-3, 6) to (3,2)(3, 2), find the vertical drop and the horizontal step across 00, then reduce the fraction. Warning: Forgetting the negative sign on a downward step gives 23\tfrac{\outputquantity{2}}{\inputquantity{3}}, and forgetting to divide top and bottom by 22 leaves −46\outputquantity{-}\tfrac{\outputquantity{4}}{\inputquantity{6}}.

−23-\tfrac{2}{3}
3

Find the slope of the line that passes through (−4,9)(-4, 9) and (2,−15)(2, -15).

Stack the points and count how far y\outputquantity{y} drops from 99 past 00 to −15-15, and how far x\inputquantity{x} goes up from −4-4 past 00 to 22. Warning: Subtracting without tracking the signs (−15+9=−6-15 + 9 = -6 or 2−4=−22 - 4 = -2) gives −1-1 or 1212; going from 99 down to −15-15 is Δy=−24\outputquantity{\Delta y} = \outputquantity{-24}, and from −4-4 up to 22 is Δx=+6\inputquantity{\Delta x} = \inputquantity{+6}.

−4-4
4

Find the slope of: (a) the line passing through (−5,3)(-5, 3) and (4,3)(4, 3), and (b) the line passing through (6,−2)(6, -2) and (6,5)(6, 5).

Check which coordinate stays the same in each pair so you can see whether 00 goes on the top (Δy\outputquantity{\Delta y}) or the bottom (Δx\inputquantity{\Delta x}). Warning: Mixing up the two cases gives undefined for (a) and 00 for (b); in (a), 09=0\tfrac{\outputquantity{0}}{\inputquantity{9}} = 0, whereas in (b), 70\tfrac{\outputquantity{7}}{\inputquantity{0}} divides by zero.

(a) 00, (b) undefined
5

A table tracks the water in a tank over time: (2 minutes,30 gallons)(2\text{ minutes}, 30\text{ gallons}), (5 minutes,75 gallons)(5\text{ minutes}, 75\text{ gallons}), (6 minutes,90 gallons)(6\text{ minutes}, 90\text{ gallons}), and (10 minutes,150 gallons)(10\text{ minutes}, 150\text{ gallons}). Is this relationship linear, and what is the rate of change (including units)?

Compare each jump in gallons (Δy\outputquantity{\Delta y}) to its matching jump in minutes (Δx\inputquantity{\Delta x}) across all three steps. Warning: Looking only at the gallon jumps (+45,+15,+60\outputquantity{+45}, \outputquantity{+15}, \outputquantity{+60}) makes the table look non-linear, because it ignores that the minute jumps (+3,+1,+4\inputquantity{+3}, \inputquantity{+1}, \inputquantity{+4}) scale by the same amount.

Yes, it is linear; the rate of change is 15 gallons per minute15\text{ gallons per minute}.
6

A flare's height in meters after x\inputquantity{x} seconds is given by a curve f(x)\outputquantity{f(x)}, where f(0)=0\outputquantity{f(0)} = 0, f(2)=36\outputquantity{f(2)} = 36, and f(6)=60\outputquantity{f(6)} = 60. Find the rate of change over the interval [0,2]\selectedinterval{[0, 2]} and over the interval [2,6]\selectedinterval{[2, 6]}.

Use (0,0)(0, 0) and (2,36)(2, 36) for the first interval, then start fresh at (2,36)(2, 36) and (6,60)(6, 60) for the second interval. Warning: On [2,6]\selectedinterval{[2, 6]}, using the total height 6060 instead of the change 60−36=24\outputquantity{60 - 36} = \outputquantity{24} gives 15 meters per second15\text{ meters per second}, or dividing by 66 instead of the time change 6−2=4\inputquantity{6 - 2} = \inputquantity{4} gives 4 meters per second4\text{ meters per second}.

18 meters per second18\text{ meters per second} on [0,2]\selectedinterval{[0, 2]}, and 6 meters per second6\text{ meters per second} on [2,6]\selectedinterval{[2, 6]}.
7

The slope between (−3,5)(-3, 5) and (x,−3)(x, -3) is −25\outputquantity{-}\tfrac{\outputquantity{2}}{\inputquantity{5}}. Find x\inputquantity{x}.

Find how much y\outputquantity{y} changes from 55 to −3-3, then multiply the top and bottom of the −25\outputquantity{-}\tfrac{\outputquantity{2}}{\inputquantity{5}} slope fraction by the same number to find Δx\inputquantity{\Delta x}. Warning: Scaling Δy=−8\outputquantity{\Delta y} = \outputquantity{-8} (which is 4×−24 \times \outputquantity{-2}) gives Δx=4×5=+20\inputquantity{\Delta x} = 4 \times \inputquantity{5} = \inputquantity{+20}, so stopping at x=20x = 20 forgets to add that +20\inputquantity{+20} change to the starting coordinate x=−3\inputquantity{x} = -3.

x=17x = 17