Module 2 of 2 · Lesson 5 of 5
Half-Spaces and Hyperplanes
What a single linear constraint describes, decided without drawing.
What you will be able to do
Given a linear inequality and a point, the learner can determine whether the point satisfies it, lies on the bounding hyperplane, or violates it, and can state what the bounding hyperplane is for that inequality.
Orientation
One linear inequality cuts space in two. Deciding which side a point is on takes arithmetic, not a drawing, which is the only thing that scales past two dimensions.
That sounds small. It is the atom every feasible region is built from: a region is what remains when the allowed sides of many inequalities are intersected, and a question about the region is usually a question about one constraint at a time.
Intuition
A hyperplane and the half-space it bounds
A single linear equation does not name a point. In the plane,
That flat is a wall through the space, and it has two sides. Writing
Deciding which side a point is on needs no picture. Put the point into the left-hand side and compare the number you get with the right-hand side. The arithmetic answers the question in any number of dimensions, which is exactly where drawing stops being possible.
Figure
A boundary line and the side a weak inequality keeps
The constraint
Which side is settled by arithmetic, not by the direction the sign points. Substitute
The plane is drawn past the axes on purpose. A half-space is a division of the whole plane into two sides; restricting the view to the first quadrant would make it look like a corner being cut off, which is a different idea.
Definition
Hyperplanes and half-spaces
Let
It has dimension
each of which contains
The requirement
Example
Deciding sides by arithmetic
Take the constraint
The point
The point
The point
Nothing in this procedure mentions the number of variables. For
Contrast
Hyperplanes in two dimensions and in higher dimensions
Two-variable problems are drawn on paper, so "constraint" and "line" come to feel like the same word. They are not.
In
In
In
The habit to avoid is calling every constraint "the line" and expecting to reason by sketching. Real programs have more variables than a page has dimensions, and the competence that survives the move is the evaluation, not the drawing.