Half-Spaces and Hyperplanes

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, 2 x + y = 6 is satisfied by infinitely many pairs. It is a line. In three variables the same kind of equation gives a plane. One equation always costs exactly one dimension, so in n variables it leaves a flat of dimension n − 1 .

That flat is a wall through the space, and it has two sides. Writing ≤ instead of = keeps the wall and adds everything on one side of it.

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

One inequality keeps a line and everything on one side of it

The constraint 2 x 1 + x 2 ≤ 6 drawn. The equation 2 x 1 + x 2 = 6 is the line; the inequality keeps that line together with everything on one side of it.

Which side is settled by arithmetic, not by the direction the sign points. Substitute ( 1 , 1 ) : it gives 3 , and 3 ≤ 6 , so that point is in and the side holding it is the side kept. Substitute ( 4 , 0 ) : it gives 8 , which fails, so that side is discarded. The point ( 2 , 2 ) gives exactly 6 and lies on the boundary, which the weak inequality includes. That is why an optimum is allowed to sit on a constraint.

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 a ∈ R n be a nonzero vector and b a scalar. The hyperplane determined by them is

H = { x ∈ R n : a T x = b } .

It has dimension n − 1 : a point on a line, a line in the plane, a plane in space. The vector a is its normal, and it points across H rather than along it.

H divides the rest of R n into two closed half-spaces,

{ x : a T x ≤ b } and { x : a T x ≥ b } ,

each of which contains H itself. Replacing ≤ by the strict < gives an open half-space, which excludes the boundary.

The requirement a ≠ 0 is part of the definition, not a technicality. If a = 0 the equation reads 0 = b , which is satisfied by every point when b = 0 and by none otherwise; neither describes a wall.

Example

Deciding sides by arithmetic

Take the constraint 2 x 1 + x 2 ≤ 6 , so a = ( 2 , 1 ) T and b = 6 . Its bounding hyperplane is the line 2 x 1 + x 2 = 6 .

The point ( 1 , 1 ) . Evaluate 2 ( 1 ) + 1 = 3 . Since 3 ≤ 6 , the point satisfies the constraint and lies in the half-space.

The point ( 4 , 0 ) . Evaluate 2 ( 4 ) + 0 = 8 . Since 8 > 6 , the point violates the constraint.

The point ( 2 , 2 ) . Evaluate 2 ( 2 ) + 2 = 6 , exactly b . The point lies on the hyperplane. Because the inequality is ≤ rather than < , it satisfies the constraint. A fact that matters later, because optima in linear programming sit on constraint boundaries.

Nothing in this procedure mentions the number of variables. For 3 x 1 − x 2 + 4 x 3 ≤ 10 and the point ( 1 , 2 , 1 ) : 3 − 2 + 4 = 5 ≤ 10 , so it is allowed. There is no picture, and none is needed.

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 R 2 . x 1 + x 2 = 4 is a line, and x 1 + x 2 ≤ 4 is everything on one side of it. Dimension n − 1 = 1 .

In R 3 . x 1 + x 2 + x 3 = 4 is a plane, not a line. The half-space it bounds is a solid slab of space. Dimension n − 1 = 2 .

In R 50 . The same kind of equation gives a 49-dimensional flat that cannot be pictured at all. The arithmetic test is unchanged.

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.

Next step

Practice Half-Spaces and Hyperplanes

Practice this

Results update as you type. Use the up and down arrow keys to move between results, Enter to open one, and Escape to close.

Type to search.

Settings

Appearance

Interface density

Your record

Your progress is stored in this browser and nowhere else: an identifier, the answers you have given, the mastery states and review schedule derived from them, and the lesson you last opened. Clearing it makes you a new learner on this device. It cannot be undone, and it will not affect your appearance or density settings.

Focus timer

Focus--minutes remaining

Phase

Kept in this browser only, and used to label the session in your own history.

Today

Nothing recorded yet. Finish a focus session and it will appear here.

Settings

Focus sessions between long breaks.

Sessions you are aiming for in a day.

Notifications

Your history

Sessions are stored in this browser and nowhere else. They are not evidence and never reach your mastery record.