Skip to main content

Section 1.1 Lines and Planes

I’m guessing that if you are reading this book (either you picked it up or have been assigned it) that you have a fair bit of mathematical background. That being said, I’m guessing that you are quite familiar with linesβ€”you may even be embarrassed if you are seen reading a section on lines. However, review is nearly always good and seeing the context of old material in a new way expands your thinking. In short, it will be worth your while to read through this chapter.

Subsection 1.1.1 Lines

When most mathematics students are asked about lines, the response is \(y=mx+b\text{,}\) the slope-intercept form of the line. This is often presented in a Precalculus class in which linear functions fall from this naturally. However, not all lines can be written in this form. The exception is vertical lines, like \(x=1\text{.}\)
Instead, we will use the general form of the line or
\begin{equation} ax + by = c\tag{1.1.1} \end{equation}
as long as \(a\) and \(b\) are both not zero,
 1 
A nice way to ensure this is \(ab \neq 0\text{.}\)
and the \(b\) in this formula is not the \(y\)-intercept. This form allows horizontal, vertical and any oblique lines.
This form is quite nice in that if \(a\) is zero, then the line is horizontal, if \(b\) is zero, then the line is vertical and if both are non-zero then the line is oblique with \(x\)-intercept of \(c/a\text{,}\) \(y\)-intercept of \(c/b\) and slope of \(-a/b\text{.}\) If we take the line in (1.1.1) with \(ab \neq 0\) and divide through by \(c\text{,}\) this can take on the intercept form of the line:
\begin{equation} \frac{x}{x_0} + \frac{y}{y_0} = 1\tag{1.1.2} \end{equation}
and in this form the \(x\)-intercept is \(x_0\) and the \(y\)-intercept is \(y_0\) .

Example 1.1.1.

Put the line given by \(3x+5y = 30\) into intercept form and find the intercepts.
Solution.
Divide through by 30 to get
\begin{align*} \frac{3x}{30} + \frac{5y}{30} \amp = 1 \amp\amp\text{or} \amp\amp \frac{x}{10} + \frac{y}{6} = 1 \end{align*}
This shows that the \(x\)-intercept is 10 and the \(y\)-intercept is 6.
The above example showed how we can use the intercept form to easily read off the intercepts. The following exercise will use these to plot the lines.

Checkpoint 1.1.2.

Plot the following lines: \(x=3\text{,}\) \(y= 4\text{,}\) \(2x+ 3y = 24\) and \(-3x+4y = 12\) on the same axes. Note: do this by hand instead of graphing calculator/website/software.
Hint.
Use the information above to note if it is horizontal, vertical or oblique and in the latter case, use intercepts to plot the line.
Solution.
In this case, note that the first line is vertical, the second is horizontal. For the third line, divide through by \(24\) and simplify to
\begin{equation*} \frac{x}{12} + \frac{y}{8} = 1 \end{equation*}
which will have the intercepts \((12,0)\) and \((0,8)\)and the last line can be simplified to
\begin{equation*} -\frac{x}{4} + \frac{y}{3} = 1 \end{equation*}
which will have the intercepts \((-4,0)\) and \((0,3)\text{.}\)
The graph of the equation \(x=3\) is a vertical line passing through the point \((3,0)\) and extending in both directions. The graph of the  equation \(y=4\) is a horizontal line passing through the point \((0,4)\) and extending in both directions. The graph of the  equation \(-3x+4y = 12\) is a line passing through the intercepts \((-4,0)\)and \((0,3)\text{.}\) The graph of the  equation \(2x+3y=24\) is a line passing through the intercepts \((12,0)\) and \((0,8)\text{.}\)
Figure 1.1.3. A graph of the lines \(x=3, y=4, 2x+3y=24\) and \(-3x+4y = 12\) with the result shaded.

Subsection 1.1.2 Linear Inequalities

Related to lines is that of linear inequalities. Consider the inequality \(3x+ 4y \leq 12\) and let \(S\) be the set of all points that satisfy the inequality. The line \(3x+4y=12\) cuts the \(xy\)-plane into two regions and in this case, the line is included in the set \(S\text{.}\)
Which side of the line satisfies the inequality? Since every point that is not on the line either satisfies the inequality or not, we can pick any point to determine this. For example in the line \(3x+4y=12\) above, an easy point to pick is \((0,0)\) and since \(3(0)+4(0) \leq 12\) is true, then the side of the line containing the origin is in the set. The following is plot:
A graph of \(3x+4y=12\) that passes through the points \((4,0)\) and \((0,3)\) as well as shading the plane below and left of the line.
Figure 1.1.4. A plot of the inequality \(3x+4y \leq 12\) and the shaded part is the set of points that satisfy the inequality.
The set that satisfies the inequality we have labelled \(F\) and shaded in light gray. When combined with other inequalities, we often call the set a feasible set, hence labelling it as \(F\text{.}\)
As we will see throughout this book, it is common that there are multiple inequalities. For example, let’s add the inequality \(y \geq x+1\) to the inequality above and determine the set of points that satisfy both inequalities. There are two techniques that can be used.
Technique 1: Graph and Choose. First, let’s plot the two lines (ignoring the inequality) \(y=x+1\) and \(3x+4y=12\text{.}\) The first line is in slope-intercept form and the second was plotted above. A plot with both graphs is
The line \(y=x+1\) and \(3x+4y=12\) cuts the \(xy\)-plane into four regions numbered 1 through four where 1 is in the south part of the plot, and continues clockwise to 4, in the east side of the plot.
Figure 1.1.5. A graph of the lines \(y=x+1\) and \(3x+4y=12\text{,}\) which cuts the plane into four regions. These are numbered 1 through 4.
The 2 lines split the plane into four regions and only one of these satisfies both inequalities. If we pick four points (one for each region), we can determine the feasible set. The following table does this formally.
Table 1.1.6. Evaluation of inequalities
Region # Point \(3x+4y\leq 12\) \(y \geq x+1\)
1 (0,0) true false
2 (0,2) true true
3 (1,4) true false
4 (3,2) false false
From TableΒ 1.1.6, region 2 satisfies both inequalities. Therefore this is the feasible set together with the lines that are the boundary of region 2.
This technique will work however, as the number of lines increases it become increasingly difficult to plot and determine all of th inequalities. The next technique is often more desirable.
Technique #2: Cross Out Regions Instead, we start with one line and then cross out the region not in the feasible set. Each subsequent inequality, we repeat. After all inequalities are examined, the region (if one exists) that is not crossed out is the feasible set. Performing this technique with the same pair of equalities, we’ll start with the inequality \(3x+4y \leq 12\text{.}\) We’ve already seen this and will cross out the region in the northeast part.
A graph of the line \(3x+4y=12\) (running northweast to southeast) and the side of the line that does not satisfy the inequality \(3x+4y \leq 12\) is crossed out on the northeast side.
Figure 1.1.7. A graph of the line \(3x+4y=12\) and the side of the line that does not satisfy the inequality \(3x+4y \leq 12\) is crossed out.
Now we will add the second inequality, \(y \geq x+1\text{.}\) Graph the line and then cross out the region that does not satisfy the inequality. Note that this is the southeast side of the line.
A graph of the line \(3x+4y=12\) (running northweast to southeast) and the side of the line that does not satisfy the inequality \(3x+4y \leq 12\) is crossed out on the northeast side. Also, included is a graph of the line \(y=x+1\) which runs southwest to northeast. The side the line that does not satisfy the inequality is on the southeast side. The feasible set is the part of the plane to the west that is not crossed out.
Figure 1.1.8. A graph of the lines \(3x+4y=12\) and \(y=x+1\) with the corresponding inequalities crossed out. The feasible set is labelled \(\boldsymbol{F}\)
From FigureΒ 1.1.8, the region not crossed out is the feasible set and is the same that was found with Technique #1 as shown in FigureΒ 1.1.5. Although either technique will result in the correct answer, this one is generally faster to perform with a large number of inequalities.

Checkpoint 1.1.9.

Find the feasible set for the following set of inequalities
\begin{align*} x \geq \amp 0, \\ y \geq \amp 0,\\ x+y \geq \amp 6, \\ 5x+8y \geq \amp 40. \end{align*}
Solution.
In this case, we’ll graph and cross out the false side of each line. The first two lines are the coordinate axes. The 3rd and 4th lines can be written in intercept form as
\begin{equation*} \frac{x}{6} + \frac{y}{6} = 1 \qquad \frac{x}{8} + \frac{x}{5} = 1 \end{equation*}
So the 3rd line has the intercepts \((6,0)\) and \((0,6)\text{.}\) The 4th line has the intercepts \((8,0)\) and \((0,5)\text{.}\)
Figure 1.1.10. The feasible set of the given inequalities. The side of the line not in the feasible set is crossed out and the remaining region is the feasible set and labelled \(\boldsymbol{F}.\)
and from the plot, the region in the northeast section that is not crossed out is the feasible set.
Note: as we will see throughout this book, it is common that we have a nonnegative constraint, like \(x \geq 0\) and \(y \geq 0\text{.}\) With only two variables, this means outside the first quadrant is crossed out.

Subsection 1.1.3 Bounded and Unbounded Feasible Sets

Another feature of feasible sets is that of being bounded. For feasible sets in the plane, a feasible set that is a polygon (interior as well as its boundary), is bounded. For example, in SectionΒ 2.3, we will see the feasible set \(F\) be set defined by
\begin{equation*} \begin{aligned} x+ y \leq 7, \\ 2x + 3y \leq 18, \\ x \geq 0, \\ y \geq 0. \end{aligned} \end{equation*}
which can be plotted as
Figure 1.1.11. A graph of the feasible set of the above problem. For each inequality, the side of the line not in the feasible set is crossed out. The set of points left is the feasible set for the inequalities and labelled \(\boldsymbol{F}\text{.}\)
The feasible set is the interior of the polygon together with its boundary and appears to be bounded. In contrast, the feasible set in CheckpointΒ 1.1.9 is not a polygon and the feasible set extends without bound. The definition below is more general for a feasible set in any dimension.
Before defining a bounded feasible set, we need the following:

Definition 1.1.12.

A ball in \(\mathbb{R}^n\) centered at the origin is the set points
\begin{equation*} B = \{ (x_1, x_2, \ldots x_n) \; | \; x_1^2 + x_2^2 + \cdots + x_n^2 \leq r^2 \} \end{equation*}
A ball in \(\mathbb{R}^2\) is the circle with its interior. In \(\mathbb{R}^3\text{,}\) it is a sphere with its interior.
With the knowledge of a ball, we can now define a bounded feasible set.

Definition 1.1.13.

A feasible set, \(F\) in \(\mathbb{R}^n\) is bounded, if there exists a ball centered at the origin, \(B\) such that \(F \subset B\text{.}\) If no ball exists, the set \(F\) is unbounded.
The feasible set in FigureΒ 1.1.11 is bounded because the ball with radius 8 would encompass the feasible set. The feasible set in CheckpointΒ 1.1.9 has no ball that encompasses it, so is unbounded.

Subsection 1.1.4 Planes and Hyperplanes

A linear equation in three variables is a plane. For example the equation \(x+2y-3z = 12\) describes points in \(\mathbb{R}^3\text{,}\) the set of all three-dimensional space. Like a line in \(\mathbb{R}^2\text{,}\) it extends indefinitely and is flat. The following shows a plot of the plane \(2x+3y + 4z = 24\text{.}\)
Figure 1.1.14. A plot of the plane \(2x+3y + 4z = 24\) in \(\mathbb{R}^3\text{.}\) If reading on the web, this figure is interactive and the orientation can be changed.
We will encounter inequalities involving three variables. As seen in two dimensions, the feasible set will be the set of all points satisfying all of inequalities. It is difficult to graph this, but one can imagine that in three dimensions, the same ideas hold as those above. For example, one can cross out the side of the plane that is not in the feasible set and then the region in \(\mathbb{R}^3\) is the region not crossed out.
Figure 1.1.15. A plot of a feasible set of in \(\mathbb{R}^3\text{.}\) If this is being viewed in a web browser, the graph should be interactive in that it can be rotated.
Linear equations with more than 3 variables are often called hyperplanes. Although impossible to graph, these work the same ways as lines and planes in that the cut the Euclidean space in half.

Subsection 1.1.5 Convex Sets

As we will see later, a convex feasible set is key to the simplex method working. What does convex mean? We will explore this and show that a feasible set constructed of linear inequalities is always convex.

Definition 1.1.16.

A set \(S\) in \(\mathbb{R}^n\) is convex if for any two points \(\boldsymbol{x}\) and \(\boldsymbol{y}\) in \(S\) that all points in the line segment connecting \(\boldsymbol{x}\) and \(\boldsymbol{y}\) is in \(S\)

Note 1.1.17.

Note: a line segment between points \(\boldsymbol{x}\) and \(\boldsymbol{y}\) can be written
\begin{equation*} L = \{ \boldsymbol{x} (1-t) + \boldsymbol{y}t \; | \; t \in [0,1]\}. \end{equation*}
As \(t\) moves from 0 to 1, a point on \(L\) moves from \(\boldsymbol{x}\) to \(\boldsymbol{y}\text{.}\)
In two dimensions, a convex set is a set in \(\mathbb{R}^2\) such that its boundary is convex in the standard sense. Sets like the interior of circles, rectangles and the β€œinside” of parabolas are examples. To get a sense of this, the sets consisting of the interior of the following objects are convex:
Figure 1.1.18. Examples of convex sets (interiors of circles and polygons). Example line segments are shown within the figures.
Although example line segments are shown drawn within the figures in FigureΒ 1.1.18, recall that in order to be convex, all line segments need to be within the set, not just an example line segment.
Some examples of sets that are not convex are shown in FigureΒ 1.1.19. A line is shown in blue with point endpoints that are in the set, but the are parts of the line that are not in the set. Recall that a set that is not convex just needs a single line segment with endpoints in the set and some part of the line segment passes outside the set.
Figure 1.1.19. The interior of these shapes are not convex. Example line segments are drawn which have points that are outside the shape (sets).
The next lemma states the seemingly obvious fact that splitting the plane with a linear inequality results in a convex set.

Proof.

Let \((x_1, y_1)\) and \((x_2, y_2)\) be two points in \(S\text{.}\) The line segment between them is the parametric equation
\begin{equation*} x(t) = x_1 (1-t) + x_2 t \qquad y(t) = y_1 (1-t) + y_2 t. \end{equation*}
To show convexity, the line segment must be in \(S\text{.}\) That is,
\begin{align*} a (x_1 (1-t) + x_2 t) + b(y_1 (1-t) + y_2 t) \amp = (a x_1 + b y_1) (1-t) + (a x_2 + b y_2) t\\ \amp \leq (1-t) c + t c \\ \amp = c-tc+ct = c \end{align*}
And since the both points \((x_1,y_1)\) and \((x_2, y_2)\) are in \(S\text{,}\) then \(a (x_1 (1-t) + x_2 t) + b(y_1 (1-t) + y_2 t) \leq c\text{,}\) the line segment is in \(S\text{,}\) therefore the set is convex.
This showed that the linear inequality in \(\mathbb{R}^2\) is convex, however this is true in any dimension.
This lemma is the first step in showing the general convexity of more complex sets. The next one will give the next step.
The proof is left to the reader.