In mathematics, a linear equation is an equation that may be put in the form
a1x1+\ldots+anxn+b=0,
x1,\ldots,xn
b,a1,\ldots,an
a1,\ldots,an
Alternatively, a linear equation can be obtained by equating to zero a linear polynomial over some field, from which the coefficients are taken.
The solutions of such an equation are the values that, when substituted for the unknowns, make the equality true.
In the case of just one variable, there is exactly one solution (provided that
a1\ne0
In the case of two variables, each solution may be interpreted as the Cartesian coordinates of a point of the Euclidean plane. The solutions of a linear equation form a line in the Euclidean plane, and, conversely, every line can be viewed as the set of all solutions of a linear equation in two variables. This is the origin of the term linear for describing this type of equation. More generally, the solutions of a linear equation in variables form a hyperplane (a subspace of dimension) in the Euclidean space of dimension .
Linear equations occur frequently in all mathematics and their applications in physics and engineering, partly because non-linear systems are often well approximated by linear equations. This article considers the case of a single equation with coefficients from the field of real numbers, for which one studies the real solutions. All of its content applies to complex solutions and, more generally, to linear equations with coefficients and solutions in any field. For the case of several simultaneous linear equations, see system of linear equations.
A linear equation in one variable can be written as
ax+b=0,
a ≠ 0
The solution is
x=- | ba |
A linear equation in two variables and can be written as
ax+by+c=0,
If and are real numbers, it has infinitely many solutions.
See main article: Linear function (calculus). If, the equation
ax+by+c=0
y=- | ab | ||
|
- | ab |
- | cb. |
Each solution of a linear equation
ax+by+c=0
The phrase "linear equation" takes its origin in this correspondence between lines and equations: a linear equation in two variables is an equation whose solutions form a line.
If, the line is the graph of the function of that has been defined in the preceding section. If, the line is a vertical line (that is a line parallel to the -axis) of equation
x=- | ca, |
Similarly, if, the line is the graph of a function of, and, if, one has a horizontal line of equation
y=- | cb. |
There are various ways of defining a line. In the following subsections, a linear equation of the line is given in each case.
y=mx+y0.
If, moreover, the line is not horizontal, it can be defined by its slope and its -intercept . In this case, its equation can be written
y=m(x-x0),
y=mx-mx0.
These forms rely on the habit of considering a nonvertical line as the graph of a function. For a line given by an equation
ax+by+c=0,
\begin{align} m&=- | ab,\\ x | |||||||||||||
|
A non-vertical line can be defined by its slope, and the coordinates
x1,y1
y=y1+m(x-x1),
y=mx+y1-mx1.
This equation can also be written
y-y1=m(x-x1)
A line that is not parallel to an axis and does not pass through the origin cuts the axes into two different points. The intercept values and of these two points are nonzero, and an equation of the line is
x | |
x0 |
+
y | |
y0 |
=1.
Given two different points and, there is exactly one line that passes through them. There are several ways to write a linear equation of this line.
If, the slope of the line is
y2-y1 | |
x2-x1 |
.
y-y1=
y2-y1 | |
x2-x1 |
(x-x1).
By clearing denominators, one gets the equation
(x2-x1)(y-y1)-(y2-y1)(x-x1)=0,
This form is not symmetric in the two given points, but a symmetric form can be obtained by regrouping the constant terms:
(y1-y2)x+(x2-x1)y+(x1y2-x2y1)=0
The two-point form of the equation of a line can be expressed simply in terms of a determinant. There are two common ways for that.
The equation
(x2-x1)(y-y1)-(y2-y1)(x-x1)=0
\begin{vmatrix}x-x1&y-y1\\x2-x1&y2-y1\end{vmatrix}=0.
The equation
(y1-y2)x+(x2-x1)y+(x1y2-x2y1)=0
\begin{vmatrix} x&y&1\\ x1&y1&1\\ x2&y2&1 \end{vmatrix}=0.
Besides being very simple and mnemonic, this form has the advantage of being a special case of the more general equation of a hyperplane passing through points in a space of dimension . These equations rely on the condition of linear dependence of points in a projective space.
A linear equation with more than two variables may always be assumed to have the form
a1x1+a2x2+ … +anxn+b=0.
The coefficient, often denoted is called the constant term (sometimes the absolute term in old books[1] [2]). Depending on the context, the term coefficient can be reserved for the with .
When dealing with
n=3
x, y
z
A solution of such an equation is a -tuple such that substituting each element of the tuple for the corresponding variable transforms the equation into a true equality.
For an equation to be meaningful, the coefficient of at least one variable must be non-zero. If every variable has a zero coefficient, then, as mentioned for one variable, the equation is either inconsistent (for) as having no solution, or all are solutions.
The -tuples that are solutions of a linear equation in are the Cartesian coordinates of the points of an -dimensional hyperplane in an Euclidean space (or affine space if the coefficients are complex numbers or belong to any field). In the case of three variables, this hyperplane is a plane.
If a linear equation is given with, then the equation can be solved for, yielding
xj=-
b{a | |
j} |
-\sumi\in,i\nej}
ai | |
aj |
xi.