Linear mappings
In general, linear equations are defined in terms of linear mappings. An equation of the form

is called linear if
a linear mapping and if is
independent of
The mapping
thereby maps from a vector space
into a vector space
where
and 
defined over a common body A mapping is linear if for constants λ 

applies.
Example
If
and
, then
a real vector and
is a real number. If we now choose for
the linear mapping

with constant vector
, where
is the standard scalar product of the two vectors, then we obtain the linear vector equation
,
which is equivalent to the above scalar linear equation with
unknowns. The linearity of
follows directly from the linearity of the scalar multiplication
.
Homogeneity
A linear equation is called homogeneous if
, i.e. if it has the form

otherwise a linear equation is called inhomogeneous. Homogeneous linear equations have at least the zero vector

as a solution, since

holds. Conversely, inhomogeneous linear equations are never satisfied by the trivial solution.
Example
The solution of the homogeneous linear equation with two unknowns
and 

is a straight line in two-dimensional space passing through the zero point. The solution of the inhomogeneous equation

is a straight line parallel to it, but it does not contain the zero point.
Superposition
→ Main article: Superposition (mathematics)
Homogeneous linear equations have the superposition property: If
and
two solutions of a homogeneous linear equation, then is also
a solution of this equation. In general, it is even true that all linear combinations
of solutions of a homogeneous linear equation with constants
and
solve this equation, since

holds. By including
and the superposition property, the solutions of a homogeneous linear equation form a subvector space of
.
Furthermore, the solution of an inhomogeneous equation can be represented as the sum of the solution of the associated homogeneous equation and a particular solution: Let
be a concrete solution of an inhomogeneous linear equation and let
the general solution of the associated homogeneous problem, then is
the general solution of the inhomogeneous equation, since

holds. The solutions of an inhomogeneous linear equation thus form an affine subspace over the vector space of the associated homogeneous equation.
Conversely, if
and are
two solutions of an inhomogeneous linear equation, then solves
the corresponding homogeneous equation, since

applies.
Example
A concrete solution of the inhomogeneous equation

is
.
Now, if are
the solutions of the corresponding homogeneous equation
,
so all
with
, then the inhomogeneous equation is generally solved by
with
.
Dimension of the solution space
The solution space of a homogeneous linear equation is called the kernel
the linear mapping, its dimension is also called the defect. Due to the rank theorem, the dimension of the solution space of a finite-dimensional homogeneous linear equation is
.
Here
the rank of the mapping, i.e. the dimension of its image. The image of a mapping is the set of values that 
can take for
Due to the superposition property, the dimension of the solution space of an inhomogeneous linear equation is equal to that of the corresponding homogeneous equation, provided that a particular solution exists. This is the case exactly if the right-hand side
the image of the mapping, i.e.,
holds. The coker of the linear mapping
describes just the space of conditions that the right-hand side of a linear equation must satisfy for the equation to be solvable. Its dimension is
.
Examples
If we choose as vector spaces
and
and as a linear mapping
,
where at least one of the coefficients is
nonzero, then the image of
the whole space
and thus
.
Thus, the solution space of the homogeneous linear equation
has dimension 2 and is a plane in three-dimensional space. The solution space of the inhomogeneous equation
is also a plane here, since if, for example,
, the equation has the particle solution
The cokernel here has dimension 0, so the equation is
solvable for any
If you choose instead
,
then all vectors from
are mapped to the zero and the following applies
.
The solution space of the corresponding homogeneous linear equation is therefore the entire three-dimensional space. The solution space of the inhomogeneous equation is empty in this case, since the equation has a solution only for
The cokernel has dimension 1.