Skip to main content

Section 1.3 Equations and Graphs in Two Variables

Figure 1.3.1. The Cartesian coordinate system with labeled axes and origin
Cartesian Coordinate System: Each point matches a pair \((a,b)\text{.}\)
  • \(O\) is the origin, it matches \((0,0)\text{.}\)
  • \(a\) is the "\(x\)-coordinate".
  • \(b\) is the "\(y\)-coordinate".

Example 1.3.2.

Figure 1.3.4. The four labeled quadrants of the plane with inequalities describing the coordinate pairs in each.
  • Points on \(x\)-axis: \(y\)-coordinate is \(0\text{.}\)
  • Points on \(y\)-axis: \(x\)-coordinate is \(0\text{.}\)

Subsection 1.3.1 Distance and Midpoint Formulas

The distance \((d)\) between the points \((x_1,y_1)\) and \((x_2,y_2)\) is given by
\begin{equation*} d=\sqrt{(x_2-x_1)^2 + (y_2-y_1)^2} \end{equation*}
Note: This formula can be derived from the Pythagorean Theorem (see text).

Example 1.3.5.

Find the distance between each pair of points.
\begin{equation*} \text{(a) } \text{ }(2,-3), (4,2) \quad \quad \quad \quad \quad \text{(b) }\text{ }(-4,-3), (6,2) \quad \quad \quad \end{equation*}
Solution
(a) Let \((x_1,y_1)=(2,-3)\) and \((x_2,y_2)=(4,2)\text{.}\)
\begin{align*} d \amp = \sqrt{(x_2-x_1)^2 + (y_2-y_1)^2} \\[0.25em]\\ \amp = \sqrt{(4-2)^2 + (2--3)^2} \\[0.25em]\\ \amp =\sqrt{2^2 +5^2} \\ \amp =\sqrt{29} \end{align*}
(b) Let \((x_1,y_1)=(-4,-3)\) and \((x_2,y_2)=(6,2)\text{.}\)
\begin{align*} d \amp =\sqrt{(x_2-x_1)^2 + (y_2-y_1)^2} \\[0.25em]\\ \amp =\sqrt{(6--4)^2 + (2--3)^2} \\[0.25em]\\ \amp =\sqrt{10^2 +5^2} \\ \amp =\sqrt{125} \\ \amp =\sqrt{5 \cdot5 \cdot5} \\ \amp =\sqrt{5 \cdot 5} \cdot \sqrt{5} \\ \amp =5\sqrt{5} \end{align*}
The midpoint of the line segment with endpoints \((x_1, y_1)\) and \((x_2,y_2)\) is
\begin{equation*} M= \left(\frac{x_1+x_2}{2}, \frac{y_1+y_2}{2} \right) \end{equation*}

Example 1.3.6.

Find the midpoint of the line segment whose endpoints are
\begin{equation*} \text{(a) } \text{ }(2,-3), (4,2) \quad \quad \quad \quad \quad \text{(b) }\text{ }(3,-6), (7,-2) \quad \quad \quad \end{equation*}
Solution: Β  Add the corresponding coordinates and divide by \(2\text{.}\)
\begin{equation*} \text{(a) } M= \left(\frac{2+4}{2}, \frac{-3+2}{2} \right) = \left(\frac{6}{2}, -\frac{1}{2} \right) = \left( 3, -\frac{1}{2} \right) \quad \quad \quad \quad \quad \quad \end{equation*}
\begin{equation*} \text{(b) } M = \left( \frac{3+7}{2}, \frac{-6+(-2)}{2} \right) = \left( \frac{10}{2}, \frac{-8}{2} \right) = (5,-4) \quad \quad \quad \quad \quad \quad \quad \end{equation*}

Subsection 1.3.2 Circles

A circle is the set of all points that lie a fixed distance \(r\) from a fixed point \((h,k)\text{.}\)
The standard form of a circle with radius \(r\) and center \((h,k)\) is
\begin{equation*} (x-h)^2 + (y-k)^2 = r^2. \end{equation*}

Example 1.3.7.

Write the standard form of the equation of the circle with radius \(7\) and center \((-3,6)\text{.}\)
Solution: Β  We’re given the radius \(r=7\) and the center \((h,k)=(-3,6)\text{.}\) Thus,
\begin{equation*} h=-3, \quad k=6. \end{equation*}
Substitute these values into the standard form:
\begin{align*} (x-h)^2 + (y-k)^2 \amp = r^2 \\ (x--3)^2 + (y-6)^2 \amp =7^2 \\ (x+3)^2 + (y-6)^2 \amp =49 \end{align*}

Example 1.3.8.

Determine the center and radius of the circle
\begin{equation*} (x-1)^2 + (y+1)^2=20 \end{equation*}
Solution: Β  Rewrite the equation so it matches the standard form of a circle.
\begin{equation*} (x-1)^2 + (y-(-1))^2 = 20 \end{equation*}
Since the standard form is \((x-h)^2 + (y-k)^2 = r^2\text{,}\) we identify
\begin{equation*} h=1, \quad k=-1, \quad r = \sqrt{20} = 2\sqrt{5}. \end{equation*}
Therefore, the center is \((1,-1)\) and the radius is \(2\sqrt{5}\text{.}\)

Example 1.3.9.

Write the standard equation for the circle with center at \((-2,-3)\) and passing through \((2,5)\text{.}\)
Solution: Β  Since we know the center, we only need the radius.
The radius is the distance from the center to a point on the circle, so we compute the distance from \((-2,-3)\) to \((2,5)\text{.}\)
\begin{align*} r \amp =\sqrt{(2--2)^2 + (5--3)^2} \\[0.25em]\\ \amp =\sqrt{4^2 + 8^2} \\[0.25em]\\ \amp =\sqrt{16+64} \\[0.25em]\\ \amp =\sqrt{80} \end{align*}
Substitute into the standard form of a circle:
\begin{align*} (x-h)^2 + (y-k)^2 \amp = r^2. \\[0.25em]\\ (x--2)^2+ (y--3)^2 \amp = \left( \sqrt{80} \right)^2 \\[0.25em]\\ (x+2)^2 + (y+3)^2 \amp = 80 \end{align*}
Therefore, the equation of the circle is
\begin{equation*} (x+2)^2 + (y+3)^2 = 80 \end{equation*}

Subsection 1.3.3 Completing the Square

For polynomials, a perfect square has the form
\begin{equation*} x^2+2ax+a^2=(x+a)^2 \end{equation*}
Q. How do we adjust \(x^2+bx\) to make a perfect square?
A. Add \(\left(\frac{1}{2}b \right)^2\) and then factor. We get \(\left(x+\frac{1}{2}b \right)^2\)

Example 1.3.10.

Start Add Result Factored form
\(x^2+12x \) \(36\) \(x^2+12x+36 \) \((x+6)^2 \)
\(x^2-20x\) \(100\) \(x^2-20x+100\) \((x-10)^2\)
\(x^2 +5x\) \(\frac{25}{4}\) \(x^2+5x+\frac{25}{4}\) \(\left(x+\frac{5}{2} \right)^2\)
How the numbers in the "Add" column were found:
\begin{align*} x^2 +12x \amp: \text{ Add } \left( \frac{1}{2} \cdot12 \right)^2 = 6^2 = 36. \\[0.25em]\\ x^2-20x \amp: \text{ Add } \left( \frac{1}{2}(-20) \right)^2 = (-10)^2=100. \\[0.25em]\\ x^2 +5x \amp: \text{ Add } \left( \frac{1}{2} \cdot 5 \right)^2 = \left( \frac{5}{2} \right)^2=\frac{25}{4}. \end{align*}

Example 1.3.11.

Find the center and radius of the circle
\begin{equation*} x^2 +y^2 +4x-6y+12=0. \end{equation*}
Solution: Β  Put the equation in standard form:
\begin{equation*} (x-h)^2 + (y-k)^2=r^2 \end{equation*}
First, group the \(x\)-terms and the \(y\)-terms.
\begin{align*} (x^2+4x) + (y^2-6y) +12 \amp = 0 \\ (x^2+4x) + (y^2-6y) \amp = -12 \end{align*}
Now complete the squares by adding the appropriate constants to both sides.
\begin{align*} (x^2+4x +\underline{4}) + (y^2-6y +\underline{9}) \amp =-12+\underline{4} + \underline{9} \\ (x^2+4x + 4) + (y^2-6y + 9) \amp =1\\ (x+2)^2 + (y-3)^2 \amp =1 \end{align*}
Rewrite the equation so it matches the standard form for a circle:
\begin{equation*} (x--2)^2 + (y-3)^2=1^2 \end{equation*}
Therefore, the center is \((-2,3)\) and the radius is \(1\text{.}\)

Subsection 1.3.4 Standard Form for a Line

  • Standard Form: Β  \(Ax+By=C\) where \(A\text{,}\) \(B\text{,}\) \(C\) are real and \(A\text{,}\) \(B\) aren’t both \(0\text{.}\)
  • For two distinct points, there is only one line that contains them.
  • Graphing a line: Β  find \(2\) points that satisfy the equation and draw a straight line through them.
    • \(x\)-intercept: Β  (if any) the point where it crosses the \(x\)-axis. We find it by setting \(y=0\) and solving for \(x\text{.}\)
    • \(y\)-intercept: Β  (if any) the point where it crosses the \(y\)-axis. We find it by setting \(x=0\) and solving for \(y\text{.}\)

Example 1.3.12.

Graph the linear equation \(5x-2y=10\text{.}\)
Solution: Β  Find the \(x-\) and \(y-\)intercepts, then draw the line through them.
To find the \(x\)-intercept, set \(y=0\) and find \(x\text{.}\)
\begin{equation*} 5x-2(0)=10 \implies 5x=10 \implies x=2 \end{equation*}
We have the point \((2, 0)\text{.}\)
To find the \(y\)-intercept, set \(x=0\) and find \(y\text{.}\)
\begin{equation*} 5(0)-2y=10 \implies -2y=10 \implies y=-5 \end{equation*}
We have the point \((0,-5)\text{.}\)
Draw a straight line through these points to obtain the graph shown in FigureΒ 1.3.13.
Figure 1.3.13. The graph of \(5x-2y=10\text{.}\) It’s a line with positive slope.

Subsection 1.3.5 Horizontal and Vertical Lines

  • Vertical lines have standard form \(x=a\) and go through \((a,0)\text{.}\)
  • Horizontal lines have standard form \(y=b\) and go through \((0,b)\text{.}\)
Figure 1.3.14. The graph of the horizontal line \(y=2\) alongside the vertical line \(x=-3\text{.}\) Both are labeled.