# Linear equation

__: Equation that does not involve powers or products of variables__

**Short description**In mathematics, a **linear equation** is an equation that may be put in the form

- [math]\displaystyle{ a_1x_1+\cdots +a_nx_n+b=0, }[/math]

where [math]\displaystyle{ x_1, \ldots, x_n }[/math] are the variables (or unknowns), and [math]\displaystyle{ b, a_1, \ldots, a_n }[/math] are the coefficients, which are often real numbers. The coefficients may be considered as parameters of the equation, and may be arbitrary expressions, provided they do not contain any of the variables. To yield a meaningful equation, the coefficients [math]\displaystyle{ a_1, \ldots, a_n }[/math] are required to not all be zero.

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 [math]\displaystyle{ a_1\ne 0 }[/math]). Often, the term *linear equation* refers implicitly to this particular case, in which the variable is sensibly called the *unknown*.

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 equations. More generally, the solutions of a linear equation in n variables form a hyperplane (a subspace of dimension *n* − 1) in the Euclidean space of dimension n.

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, for linear equations with coefficients and solutions in any field. For the case of several simultaneous linear equations, see system of linear equations.

## One variable

Frequently the term *linear equation* refers implicitly to the case of just one variable.

In this case, the equation can be put in the form

- [math]\displaystyle{ ax+b=0, }[/math]

and it has a unique solution

- [math]\displaystyle{ x=-\frac ba }[/math]

in the general case where *a* ≠ 0.
In this case, the name *unknown* is sensibly given to the variable x.

If *a* = 0, there are two cases. Either b equals also 0, and every number is a solution. Otherwise *b* ≠ 0, and there is no solution. In this latter case, the equation is said to be inconsistent.

## Two variables

In the case of two variables, any linear equation can be put in the form

- [math]\displaystyle{ ax+by+c=0, }[/math]

where the variables are x and y, and the coefficients are a, b and c.

An equivalent equation (that is an equation with exactly the same solutions) is

- [math]\displaystyle{ Ax + By = C, }[/math]

with *A* = *a*, *B* = *b*, and *C* = –*c*

These equivalent variants are sometimes given generic names, such as *general form* or *standard form*.^{[1]}

There are other forms for a linear equation (see below), which can all be transformed in the standard form with simple algebraic manipulations, such as adding the same quantity to both members of the equation, or multiplying both members by the same nonzero constant.

### Linear function

If *b* ≠ 0, the equation

- [math]\displaystyle{ ax+by+c=0 }[/math]

is a linear equation in the single variable y for every value of x. It has therefore a unique solution for y, which is given by

- [math]\displaystyle{ y=-\frac ab x-\frac cb. }[/math]

This defines a function. The graph of this function is a line with slope [math]\displaystyle{ -\frac ab }[/math] and y-intercept [math]\displaystyle{ -\frac cb. }[/math] The functions whose graph is a line are generally called *linear functions* in the context of calculus. However, in linear algebra, a linear function is a function that maps a sum to the sum of the images of the summands. So, for this definition, the above function is linear only when *c* = 0, that is when the line passes through the origin. For avoiding confusion, the functions whose graph is an arbitrary line are often called *affine functions*.

### Geometric interpretation

Each solution (*x*, *y*) of a linear equation

- [math]\displaystyle{ ax+by+c=0 }[/math]

may be viewed as the Cartesian coordinates of a point in the Euclidean plane. With this interpretation, all solutions of the equation form a line, provided that a and b are not both zero. Conversely, every line is the set of all solutions of a linear equation.

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 *b* ≠ 0, the line is the graph of the function of x that has been defined in the preceding section. If *b* = 0, the line is a *vertical line* (that is a line parallel to the y-axis) of equation [math]\displaystyle{ x=-\frac ca, }[/math] which is not the graph of a function of x.

Similarly, if *a* ≠ 0, the line is the graph of a function of y, and, if *a* = 0, one has a horizontal line of equation [math]\displaystyle{ y=-\frac cb. }[/math]

### Equation of a line

There are various ways of defining a line. In the following subsections, a linear equation of the line is given in each case.

#### Slope–intercept form or Gradient-intercept form

A non-vertical line can be defined by its slope m, and its y-intercept *y*_{0} (the y coordinate of its intersection with the y-axis). In this case its *linear equation* can be written

- [math]\displaystyle{ y=mx+y_0. }[/math]

If, moreover, the line is not horizontal, it can be defined by its slope and its x-intercept *x*_{0}. In this case, its equation can be written

- [math]\displaystyle{ y=m(x-x_0), }[/math]

or, equivalently,

- [math]\displaystyle{ y=mx-mx_0. }[/math]

These forms rely on the habit of considering a non vertical line as the graph of a function.^{[2]} For a line given by an equation

- [math]\displaystyle{ ax+by+c = 0, }[/math]

these forms can be easily deduced from the relations

- [math]\displaystyle{ \begin{align} m&=-\frac ab,\\ x_0&=-\frac ca,\\ y_0&=-\frac cb. \end{align} }[/math]

#### Point–slope form or Point-gradient form

A non-vertical line can be defined by its slope m, and the coordinates [math]\displaystyle{ x_1, y_1 }[/math] of any point of the line. In this case, a linear equation of the line is

- [math]\displaystyle{ y=y_1 + m(x-x_1), }[/math]

or

- [math]\displaystyle{ y=mx +y_1-mx_1. }[/math]

This equation can also be written

- [math]\displaystyle{ y-y_1=m(x-x_1) }[/math]

for emphasizing that the slope of a line can be computed from the coordinates of any two points.

#### Intercept form

A line that is not parallel to an axis and does not pass through the origin cuts the axes in two different points. The intercept values *x*_{0} and *y*_{0} of these two points are nonzero, and an equation of the line is^{[3]}

- [math]\displaystyle{ \frac{x}{x_0} + \frac{y}{y_0} = 1. }[/math]

(It is easy to verify that the line defined by this equation has *x*_{0} and *y*_{0} as intercept values).

#### Two-point form

Given two different points (*x*_{1}, *y*_{1}) and (*x*_{2}, *y*_{2}), there is exactly one line that passes through them. There are several ways to write a linear equation of this line.

If *x*_{1} ≠ *x*_{2}, the slope of the line is [math]\displaystyle{ \frac{y_2 - y_1}{x_2 - x_1}. }[/math] Thus, a point-slope form is^{[3]}

- [math]\displaystyle{ y - y_1 = \frac{y_2 - y_1}{x_2 - x_1} (x - x_1). }[/math]

By clearing denominators, one gets the equation

- [math]\displaystyle{ (x_2 - x_1)(y - y_1) - (y_2 - y_1)(x - x_1)=0, }[/math]

which is valid also when *x*_{1} = *x*_{2} (for verifying this, it suffices to verify that the two given points satisfy the equation).

This form is not symmetric in the two given points, but a symmetric form can be obtained by regrouping the constant terms:

- [math]\displaystyle{ (y_1-y_2)x + (x_2-x_1)y + (x_1y_2 - x_2y_1) =0 }[/math]

(exchanging the two points changes the sign of the left-hand side of the equation).

#### Determinant form

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 [math]\displaystyle{ (x_2 - x_1)(y - y_1) - (y_2 - y_1)(x - x_1)=0 }[/math] is the result of expanding the determinant in the equation

- [math]\displaystyle{ \begin{vmatrix}x-x_1&y-y_1\\x_2-x_1&y_2-y_1\end{vmatrix}=0. }[/math]

The equation [math]\displaystyle{ (y_1-y_2)x + (x_2-x_1)y + (x_1y_2 - x_2y_1)=0 }[/math] can be obtained be expanding with respect to its first row the determinant in the equation

- [math]\displaystyle{ \begin{vmatrix} x&y&1\\ x_1&y_1&1\\ x_2&y_2&1 \end{vmatrix}=0. }[/math]

Beside 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 n points in a space of dimension *n* – 1. These equations rely on the condition of linear dependence of points in a projective space.

## More than two variables

A linear equation with more than two variables may always be assumed to have the form

- [math]\displaystyle{ a_1 x_1 + a_2 x_2 + \cdots + a_n x_n + b=0. }[/math]

The coefficient b, often denoted *a*_{0} is called the *constant term* (sometimes the *absolute term* in old books^{[4]}^{[5]}). Depending on the context, the term *coefficient* can be reserved for the *a*_{i} with *i* > 0.

When dealing with [math]\displaystyle{ n=3 }[/math] variables, it is common to use [math]\displaystyle{ x,\; y }[/math] and [math]\displaystyle{ z }[/math] instead of indexed variables.

A solution of such an equation is a n-tuples 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. In fact, if every variable has a zero coefficient, then, as mentioned for one variable, the equation is either *inconsistent* (for *b* ≠ 0) as having no solution, or all n-tuples are solutions.

The n-tuples that are solutions of a linear equation in n variables are the Cartesian coordinates of the points of an (*n* − 1)-dimensional hyperplane in an n-dimensional Euclidean space (or affine space if the coefficients are complex numbers or belong to any field). In the case of three variable, this hyperplane is a plane.

If a linear equation is given with *a*_{j} ≠ 0, then the equation can be solved for *x*_{j}, yielding

- [math]\displaystyle{ x_j = -\frac b{a_j} -\sum_{i\in \{1,\ldots,n\}, i\ne j} \frac {a_i}{a_j}x_i . }[/math]

If the coefficients are real numbers, this defines a real-valued function of n real variables.

## See also

## Notes

- ↑ Barnett, Ziegler & Byleen 2008, pg. 15
- ↑ Larson & Hostetler 2007, p. 25
- ↑
^{3.0}^{3.1}Wilson & Tracey 1925, pp. 52-53 - ↑ Charles Hiram Chapman (1892).
*An Elementary Course in Theory of Equations*. J. Wiley & sons. p. 17. https://books.google.com/books?id=2PQGAAAAYAAJ. Extract of page 17 - ↑ David Martin Sensenig (1890).
*Numbers Universalized: An Advanced Algebra*. American Book Company. p. 113. https://books.google.com/books?id=TvMGAAAAYAAJ. Extract of page 113

## References

- Barnett, R.A.; Ziegler, M.R.; Byleen, K.E. (2008),
*College Mathematics for Business, Economics, Life Sciences and the Social Sciences*(11th ed.), Upper Saddle River, N.J.: Pearson, ISBN 978-0-13-157225-6 - Larson, Ron; Hostetler, Robert (2007),
*Precalculus:A Concise Course*, Houghton Mifflin, ISBN 978-0-618-62719-6, https://archive.org/details/precalculusconci00lars - Wilson, W.A.; Tracey, J.I. (1925),
*Analytic Geometry*(revised ed.), D.C. Heath

## External links

- Hazewinkel, Michiel, ed. (2001), "Linear equation",
*Encyclopedia of Mathematics*, Springer Science+Business Media B.V. / Kluwer Academic Publishers, ISBN 978-1-55608-010-4, https://www.encyclopediaofmath.org/index.php?title=p/l059190

Original source: https://en.wikipedia.org/wiki/ Linear equation.
Read more |