In linear algebra and geometry, hyperplanes, subspaces, and halfspaces are fundamental concepts used to describe and analyze the properties and behaviors of multi-dimensional spaces. These concepts have significant applications in various fields, including machine learning, optimization, and engineering.
This article explores the definitions, properties, and applications of hyperplanes, subspaces, and half-spaces.
Table of Content
Hyperplane
A hyperplane is a flat affine subspace of one dimension less than its ambient space. In an n-dimensional space, a hyperplane has n−1 dimensions. It can be defined by a linear equation.
Hyperplane Definition
In n-dimensional space, a hyperplane can be represented as a1x1 + a2x2+⋯+anxn = b
where a1, a2,......., an are coefficients and b is a constant.
Hyperplane Example
In a 3-dimensional space (n=3), a hyperplane is a 2-dimensional plane defined by an equation like 2x + 3y - z = 5.
Properties of Hyperplane
- A hyperplane divides the space into two half-spaces.
- All points on one side of the hyperplane satisfy a1x1 + a2x2 + ..... + anxn > b , while those on the other side satisfy a1x1 + a2x2 + ..... + anxn < b

Subspace
A subspace is a subset of a vector space that is also a vector space under the same operations of addition and scalar multiplication.
Subspace Definition
A subspace W of a vector space V must satisfy three conditions:
- The zero vector of V is in W.
- W is closed under vector addition.
- W is closed under scalar multiplication.
Subspace Example
In R3 the set of all vectors lying on the xy plane is a subspace. It includes the zero vector (0,0,0), is closed under vector addition and scalar multiplication.
Properties of Subspace
- Subspaces can be of any dimension from 0 up to n, where n is the dimension of the ambient space.
- Every subspace passes through the origin.
Halfspace
A halfspace is one of the two regions into which a hyperplane divides the ambient space. It includes all points on one side of the hyperplane and can be either open or closed.
Halfspace Definition
A halfspace can be defined by a linear inequality:
a1x1 + a2x2 + ..... + anxn
a1x1 + a2x2 + ..... + anxn < b
Halfspace Example
In R3 , the region defined by 2x + 3y - z ≤ 5 is a closed halfspace.
Properties of Halfspace
- A halfspace includes all points satisfying the inequality defining it.
- A hyperplane is the boundary between two halfspaces.

Applications in Engineering
1. Machine Learning
In machine learning, hyperplanes are used in algorithms such as Support Vector Machines (SVMs) to classify data. The hyperplane serves as a decision boundary separating different classes of data points.
2. Optimization
In linear programming, the feasible region is often defined by a set of linear inequalities, each representing a halfspace. The optimal solution lies within the intersection of these halfspaces.
3. Signal Processing
In signal processing, subspaces are used in techniques like Principal Component Analysis (PCA) to reduce the dimensionality of data while preserving important information.
4. Control Systems
In control systems, state space representations use subspaces to describe the set of all possible states of the system, helping in the analysis and design of controllers.
5. Computer Graphics
In computer graphics, hyperplanes are used for clipping algorithms, which determine which parts of objects are visible within a viewing volume.
Conclusion
Understanding hyperplanes, subspaces, and halfspaces is crucial for analyzing and solving problems in multi-dimensional spaces. These concepts are fundamental in various fields of engineering, offering powerful tools for classification, optimization, signal processing, and more.
Solved Examples on Hyperplane, Subspace and Halfspace
Hyperplane
Example: Consider the 2-dimensional space (R2). A hyperplane (which is a line in this case) can be given by:
3x + 4y = 12
Solution:
- To find the points on this line, set y = 0: 3x + 4(0) = 12, which gives x = 4. Thus, the point (4, 0) lies on the line.
- To find another point, set x = 0: 3(0) + 4y = 12, which gives y = 3. Thus, the point (0, 3) lies on the line.
- So, the line (hyperplane in R2) passes through the points (4, 0) and (0, 3).
Subspace
Example: Consider V = R3 and W defined by:
W = {(x, y, z) ∈ R3 | x + y + z = 0}
Solution:
- The zero vector (0, 0, 0) is in W since 0 + 0 + 0 = 0.
- If u = (x1, y1, z1) and v = (x2, y2, z2) are in W, then: x1 + y1 + z1 = 0 x2 + y2 + z2 = 0 Their sum, u + v = (x1 + x2, y1 + y2, z1 + z2), satisfies: (x1 + x2) + (y1 + y2) + (z1 + z2) = (x1 + y1 + z1) + (x2 + y2 + z2) = 0 Thus, W is closed under addition.
- If u = (x, y, z) is in W and c is a scalar, then cu = (cx, cy, cz) satisfies: cx + cy + cz = c(x + y + z) = c · 0 = 0 Thus, W is closed under scalar multiplication.
- Therefore, W is a subspace of R3.
Halfspace
Example: Consider the halfspace in R2 given by:
2x + y ≤ 3
Solution:
- To verify if the point (1, 1) lies within the halfspace, substitute x = 1 and y = 1: 2(1) + 1 ≤ 3, which gives 3 ≤ 3. The point (1, 1) satisfies the inequality and is in the halfspace.
- To verify if a point (2, 2) lies within the halfspace, substitute x = 2 and y = 2: 2(2) + 2 ≤ 3, which gives 6 ≤ 3. The point (2, 2) does not satisfy the inequality and is not in the halfspace.
Hyperplane, Subspace and Halfspace - Practice Problems
Hyperplane
- Determine the equation of the hyperplane in R3 that passes through the points (1, 0, 0), (0, 1, 0), and (0, 0, 1).
- Find the distance from the point (3, 4) to the hyperplane given by 2x + 3y = 6 in R2.
- Find the points of intersection with the axes for the hyperplane given by 4x - 3y + z = 12 in R3.
Subspace
- Show that the set W = {(x, y, z) ∈ R3 | 2x - y + z = 0} is a subspace of R3.
- Determine if the set W = {(x, y, z) ∈ R3 | x^2 + y^2 + z^2 = 1} is a subspace of R3.
- Determine if the set W = {(x, y, z) ∈ R3 | x - 2y + 3z = 0} is a subspace of R3.
Halfspace
- Identify if the point (2, -1) lies in the halfspace defined by 3x - 2y ≤ 7 in R2.
- Given the halfspace x + y ≥ 4 in R2, find a point that lies in this halfspace and a point that does not.
- Identify if the point (-1, 2) lies in the halfspace defined by x - 4y ≥ -5.