1.1: Graphing a Linear Equation
- Page ID
- 32416
\( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)
\( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)
\( \newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\)
( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\)
\( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)
\( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\)
\( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)
\( \newcommand{\Span}{\mathrm{span}}\)
\( \newcommand{\id}{\mathrm{id}}\)
\( \newcommand{\Span}{\mathrm{span}}\)
\( \newcommand{\kernel}{\mathrm{null}\,}\)
\( \newcommand{\range}{\mathrm{range}\,}\)
\( \newcommand{\RealPart}{\mathrm{Re}}\)
\( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)
\( \newcommand{\Argument}{\mathrm{Arg}}\)
\( \newcommand{\norm}[1]{\| #1 \|}\)
\( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)
\( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\AA}{\unicode[.8,0]{x212B}}\)
\( \newcommand{\vectorA}[1]{\vec{#1}} % arrow\)
\( \newcommand{\vectorAt}[1]{\vec{\text{#1}}} % arrow\)
\( \newcommand{\vectorB}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)
\( \newcommand{\vectorC}[1]{\textbf{#1}} \)
\( \newcommand{\vectorD}[1]{\overrightarrow{#1}} \)
\( \newcommand{\vectorDt}[1]{\overrightarrow{\text{#1}}} \)
\( \newcommand{\vectE}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash{\mathbf {#1}}}} \)
\( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)
\( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)
\(\newcommand{\avec}{\mathbf a}\) \(\newcommand{\bvec}{\mathbf b}\) \(\newcommand{\cvec}{\mathbf c}\) \(\newcommand{\dvec}{\mathbf d}\) \(\newcommand{\dtil}{\widetilde{\mathbf d}}\) \(\newcommand{\evec}{\mathbf e}\) \(\newcommand{\fvec}{\mathbf f}\) \(\newcommand{\nvec}{\mathbf n}\) \(\newcommand{\pvec}{\mathbf p}\) \(\newcommand{\qvec}{\mathbf q}\) \(\newcommand{\svec}{\mathbf s}\) \(\newcommand{\tvec}{\mathbf t}\) \(\newcommand{\uvec}{\mathbf u}\) \(\newcommand{\vvec}{\mathbf v}\) \(\newcommand{\wvec}{\mathbf w}\) \(\newcommand{\xvec}{\mathbf x}\) \(\newcommand{\yvec}{\mathbf y}\) \(\newcommand{\zvec}{\mathbf z}\) \(\newcommand{\rvec}{\mathbf r}\) \(\newcommand{\mvec}{\mathbf m}\) \(\newcommand{\zerovec}{\mathbf 0}\) \(\newcommand{\onevec}{\mathbf 1}\) \(\newcommand{\real}{\mathbb R}\) \(\newcommand{\twovec}[2]{\left[\begin{array}{r}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\ctwovec}[2]{\left[\begin{array}{c}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\threevec}[3]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\cthreevec}[3]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\fourvec}[4]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\cfourvec}[4]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\fivevec}[5]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\cfivevec}[5]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\mattwo}[4]{\left[\begin{array}{rr}#1 \amp #2 \\ #3 \amp #4 \\ \end{array}\right]}\) \(\newcommand{\laspan}[1]{\text{Span}\{#1\}}\) \(\newcommand{\bcal}{\cal B}\) \(\newcommand{\ccal}{\cal C}\) \(\newcommand{\scal}{\cal S}\) \(\newcommand{\wcal}{\cal W}\) \(\newcommand{\ecal}{\cal E}\) \(\newcommand{\coords}[2]{\left\{#1\right\}_{#2}}\) \(\newcommand{\gray}[1]{\color{gray}{#1}}\) \(\newcommand{\lgray}[1]{\color{lightgray}{#1}}\) \(\newcommand{\rank}{\operatorname{rank}}\) \(\newcommand{\row}{\text{Row}}\) \(\newcommand{\col}{\text{Col}}\) \(\renewcommand{\row}{\text{Row}}\) \(\newcommand{\nul}{\text{Nul}}\) \(\newcommand{\var}{\text{Var}}\) \(\newcommand{\corr}{\text{corr}}\) \(\newcommand{\len}[1]{\left|#1\right|}\) \(\newcommand{\bbar}{\overline{\bvec}}\) \(\newcommand{\bhat}{\widehat{\bvec}}\) \(\newcommand{\bperp}{\bvec^\perp}\) \(\newcommand{\xhat}{\widehat{\xvec}}\) \(\newcommand{\vhat}{\widehat{\vvec}}\) \(\newcommand{\uhat}{\widehat{\uvec}}\) \(\newcommand{\what}{\widehat{\wvec}}\) \(\newcommand{\Sighat}{\widehat{\Sigma}}\) \(\newcommand{\lt}{<}\) \(\newcommand{\gt}{>}\) \(\newcommand{\amp}{&}\) \(\definecolor{fillinmathshade}{gray}{0.9}\)In this section, you will learn to:
- Graph a line when you know its equation
- Graph a line when you are given its equation in parametric form
- Graph and find equations of vertical and horizontal lines
Graphing a Line from it Equation
Equations whose graphs are straight lines are called linear equations. The following are some examples of linear equations:
\(2 x-3 y=6, \quad 3 x=4 y-7, \quad y=2 x-5, \quad 2 y=3, \quad \text { and } \quad x-2=0\)
A line is completely determined by two points. Therefore, to graph a linear equation we need to find the coordinates of two points. This can be accomplished by choosing an arbitrary value for x or y and then solving for the other variable.
Graph the line: \(y = 3x + 2\)
Solution
We need to find the coordinates of at least two points. We arbitrarily choose x = - 1, x = 0, and x = 1.
- If x = -1, then y = 3(-1) + 2 or -1. Therefore, (-1, -1) is a point on this line.
- If x = 0, then y = 3(0) + 2 or y = 2. Hence the point (0, 2).
- If x = 1, then y = 5, and we get the point (1, 5).
Below, the results are summarized, and the line is graphed.
x | -1 | 0 | 1 |
y | -1 | 2 | 5 |
Graph the line: \(2x + y = 4\)
Solution
Again, we need to find coordinates of at least two points.
We arbitrarily choose x = -1, x = 0, and y = 2.
- If x = -1, then 2(-1) + y = 4 which results in y = 6. Therefore, (-1, 6) is a point on this line.
- If x = 0, then 2(0) + y = 4, which results in y = 4. Hence the point (0, 4).
- If y = 2, then 2x + 2 = 4, which yields x = 1, and gives the point (1, 2).
The table below shows the points, and the line is graphed.
x | -1 | 0 | 1 |
y | 6 | 4 | 2 |
Intercepts
The points at which a line crosses the coordinate axes are called the intercepts.
When graphing a line by plotting two points, using the intercepts is often preferred because they are easy to find.
- To find the value of the x-intercept, we let y = 0
- To find the value of the y-intercept, we let x = 0.
Find the intercepts of the line: \(2x - 3y = 6\), and graph.
Solution
To find the x-intercept, let y = 0 in the equation, and solve for x.
\[\begin{align*} 2x - 3(0) &= 6 \\[4pt] 2x - 0 &= 6 \\[4pt] 2x &= 6 \\[4pt] x &= 3 \end{align*} \nonumber \]
Therefore, the x-intercept is the point (3,0).
To find the y-intercept, let x = 0 in the equation, and solve for y.
\[\begin{align*} 2(0) - 3y &= 6 \\[4pt] 0 - 3y &= 6 \\[4pt] -3y &= 6 \\[4pt] y &= -2 \end{align*} \nonumber \]
Therefore, the y-intercept is the point (0, -2).
To graph the line, plot the points for the x-intercept (3,0) and the y-intercept (0, -2), and use them to draw the line.
Graphing a Line from its Equation in Parametric Form
In higher math, equations of lines are sometimes written in parametric form. For example, \(x = 3 + 2t\), \(y = 1 + t\). The letter \(t\) is called the parameter, or the dummy variable.
Parametric lines can be graphed by finding values for x and y by substituting numerical values for t. Plot the points using their (x,y) coordinates and use the points to draw the line.
Graph the line given by the parametric equations: \(x = 3 + 2t\), \(y = 1 + t\)
Solution
Let t = 0, 1 and 2; for each value of t find the corresponding values for x and y.
The results are given in the table below.
t | x | y | Point on Line |
---|---|---|---|
0 | 3 | 1 | (3, 1) |
1 | 5 | 2 | (5, 2) |
2 | 7 | 3 | (7, 3) |
Horizontal and Vertical Lines
When an equation of a line has only one variable, the resulting graph is a horizontal or a vertical line.
- The graph of the line \(x = a\), where \(a\) is a constant, is a vertical line that passes through the point \((a, 0)\). Every point on this line has the x-coordinate equal to a, regardless of the y-coordinate.
- The graph of the line \(y = b\), where \(b\) is a constant, is a horizontal line that passes through the point \((0, b)\). Every point on this line has the y-coordinate equal to b, regardless of the x-coordinate.
Graph the lines: x = -2 , and y = 3.
Solution
The graph of the line x = -2 is a vertical line that has the x-coordinate -2 no matter what the y-coordinate is. The graph is a vertical line passing through point (-2, 0).
The graph of the line y = 3, is a horizontal line that has the y-coordinate 3 regardless of what the x-coordinate is. Therefore, the graph is a horizontal line that passes through point (0, 3).
Note: Most students feel that the coordinates of points must always be integers. This is not true, and in real life situations, not always possible. Do not be intimidated if your points include numbers that are fractions or decimals.