Half Spaces
0x88dfac8bedc5 Lv3

The equation 3x4y=243x-4y=24 is the so-called “standard form” equation of a line.

The inequality 3x4y<243x-4y<24 represents a region of the plane called a “half-space”, and the points that satisfy the inequality constitute the entire half of the plane which lies to one side of the line.

A geometric approach

Let N=<3,4>N=\left<3,-4\right> be a vector. We’ll show its direction is perpendicular to the line 3x4y=c3x-4y=c.

Suppose p0=(x0,y0)p_0=(x_0,y_0) is any fixed point on the line, so 3x04y0=c3x_0 - 4y_0 = c. Then let p=(x,y)p=(x,y) be some other point. Now pp is on the line if and only if Np=cN \cdot p = c. Equivalently, N(pp0)=NpNp0=0N \cdot (p-p_0) = N \cdot p - N \cdot p_0 = 0. But the equation N(pp0)N \cdot (p-p_0) holds exactly when the displacement pp0p-p_0 is a vector perpendicular to NN.

So the points pp which satisfy Np=cN \cdot p = c form a line perpendicular to NN.

Since the ray RN={λNλR}R_N = \left\{ \lambda N | \lambda \in \mathbb{R} \right\} is perpendicular to the line, we can find a point p0RNp_0 \in R_N which lies on the line. Solving for λ\lambda we have: N(λN)=cλ=c/N2N \cdot (\lambda N) = c \longrightarrow \lambda = c/\Vert N \Vert^2 and p0=λNp_0 = \lambda N satisfies Np0=cN \cdot p_0 = c. It is also the closest point on the line to the origin and has magnitude cN\frac{\vert c\vert}{\Vert N\Vert}.

So changing cc in the equation Np=cN \cdot p = c moves the solution set (line) forwards or backwards along NN to a new line whose distance to 00 is proportional to c\vert c \vert.

Inequality

Define the function f(p)=Np=3x4yf(p) = N \cdot p = 3x-4y. We know p0p_0 is a solution to f(p)=cf(p) = c and the other solutions form a line perpendicular to NN which passes through p0p_0. Since ff is computed as a dot product, the value of f(p)f(p) is proportional to the length of the projection of pp along the NN direction. Also, f(p)f(p) is negative when the projection points in the opposite direction of NN. In particular f(λN)<0f(-\lambda N)<0 for every λ>0\lambda>0.

To know which points satsify f(p)<cf(p) < c simply look at all the points which satisfy f(p)=rf(p) = r for r(,c)r \in (-\infty, c)

The solutions of f(p)=rf(p)=r form a line LrL_r perpendicular to NN passing through p0(r)=rN/N2p_0(r)=r N / \Vert N\Vert^2 with equation Np=rN \cdot p = r so the contours of ff are the lines {Lr:rR}\{L_r : r \in \mathbb{R}\}.

The half-space f(p)<cf(p)<c is generated by the lines {Lr<r<c}\{L_r | -\infty < r < c \}. Equivalently, if p0p_0 is any point on the line f(p)=cf(p) = c then the half-space f(p)<cf(p) < c consists of all points pp whose projections in the NN direction are “not as far” along NN as p0p_0 achieves. So starting anywhere on the line and moving along N-N gives a point in the half-space f(p)<cf(p)<c.