Consider the
closed convex cone C(\mathbf{A}) spanned by the columns of ; that is, : C(\mathbf{A}) = \{\mathbf{A}\mathbf{x} \mid \mathbf{x} \geq 0 \}. Observe that C(\mathbf{A}) is the set of the vectors for which the first assertion in the statement of Farkas' lemma holds. On the other hand, the vector in the second assertion is orthogonal to a
hyperplane that separates and C(\mathbf{A}). The lemma follows from the observation that belongs to C(\mathbf{A})
if and only if there is no hyperplane that separates it from C(\mathbf{A}). More precisely, let \mathbf{a}_1, \dots, \mathbf{a}_n \in \R^m denote the columns of . In terms of these vectors, Farkas' lemma states that exactly one of the following two statements is true: • There exist non-negative coefficients x_1, \dots, x_n \in \R such that \mathbf{b} =x _1 \mathbf{a}_1 + \dots + x_n \mathbf{a}_n. • There exists a vector \mathbf{y} \in \R^m such that \mathbf{a}_i^\top \mathbf{y} \geq 0 for i = 1, \dots, n, and \mathbf{b}^\top \mathbf{y} The sums x_1 \mathbf{a}_1 + \dots + x_n \mathbf{a}_n with nonnegative coefficients x_1, \dots, x_n form the cone spanned by the columns of . Therefore, the first statement tells that belongs to C(\mathbf{A}). The second statement tells that there exists a vector such that the angle of with the vectors is at most 90°, while the angle of with the vector is more than 90°. The hyperplane normal to this vector has the vectors on one side and the vector on the other side. Hence, this hyperplane separates the cone spanned by \mathbf{a}_1, \dots, \mathbf{a}_n from the vector . For example, let , , and . The convex cone spanned by and can be seen as a wedge-shaped slice of the first quadrant in the plane. Now, suppose . Certainly, is not in the convex cone . Hence, there must be a separating hyperplane. Let . We can see that , , and . Hence, the hyperplane with normal indeed separates the convex cone from . == Logic interpretation ==