Graph of y = 5x + 2
The graph of y = 5x + 2 is a straight line with slope 5 and y-intercept 2. It crosses the y-axis at (0, 2) and the x-axis at (-2/5, 0).
Type any function of x; the derivative is computed symbolically in your browser.
How to work it out
- 1
Read the slope and the y-intercept. A line is y = mx + b, where m is the slope and b is where it crosses the y-axis. Here m = 5 and b = 2.
- 2
Plot the y-intercept: the point (0, 2) is on the line because x = 0 gives y = 2.
- 3
Use the slope 5 = 5/1 as rise over run: from any point, go 1 to the right and up 5. From (0, 2) that gives the point (1, 7).
- 4
Find where it crosses the x-axis by setting y = 0 and solving for x.
- 5
Draw the straight line through these points and extend it both ways. It rises from left to right (it is increasing).
LaTeX source of the formulas on this page
\[ y = 5x + 2 \]
\[ y = 5\cdot 0 + 2 = 2 \]
\[ (0,\;2) \to (1,\;7) \]
\[ 0 = 5x + 2 \;\Rightarrow\; x = -\frac{2}{5} \]Table of values
| x | y |
|---|---|
| -3 | -13 |
| -2 | -8 |
| -1 | -3 |
| 0 | 2 |
| 1 | 7 |
| 2 | 12 |
| 3 | 17 |
Questions
What is the slope of y = 5x + 2?
The slope is 5. For every 1 step to the right the line goes up 5.
What is the y-intercept of y = 5x + 2?
The y-intercept is 2: the line crosses the y-axis at (0, 2).
What is the x-intercept of y = 5x + 2?
Set y = 0: 5x + 2 = 0, so x = -2/5 (about -0.4). The line crosses the x-axis at (-2/5, 0).
Is y = 5x + 2 increasing or decreasing?
Increasing, because the slope 5 is positive. The line makes an angle of about 78.7° with the x-axis.
What is the slope of a line perpendicular to y = 5x + 2?
-1/5, the negative reciprocal of 5. A line parallel to it has the same slope 5.