A linear equation in one variable x can be written as a x + b = 0 , {\displaystyle ax+b=0,} with a ≠ 0 {\displaystyle a\neq 0} .
The solution is x = − b a {\displaystyle x=-{\frac {b}{a}}} .
A linear equation in two variables x and y can be written as a x + b y + c = 0 , {\displaystyle ax+by+c=0,} where a and b are not both 0.1
If a and b are real numbers, it has infinitely many solutions.
Main article: Linear function (calculus)
If b ≠ 0, the equation
is a linear equation in the single variable y for every value of x. It therefore has a unique solution for y, which is given by
This defines a function. The graph of this function is a line with slope − a b {\displaystyle -{\frac {a}{b}}} and y-intercept − c b . {\displaystyle -{\frac {c}{b}}.} 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. To avoid confusion, the functions whose graph is an arbitrary line are often called affine functions, and the linear functions such that c = 0 are often called linear maps.
Each solution (x, y) of a linear equation
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 x = − c a , {\displaystyle x=-{\frac {c}{a}},} 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 y = − c b . {\displaystyle y=-{\frac {c}{b}}.}
There are various ways of defining a line. In the following subsections, a linear equation of the line is given in each case.
A non-vertical line can be defined by its slope m, and its y-intercept y0 (the y coordinate of its intersection with the y-axis). In this case, its linear equation can be written
If, moreover, the line is not horizontal, it can be defined by its slope and its x-intercept x0. In this case, its equation can be written
or, equivalently,
These forms rely on the habit of considering a nonvertical line as the graph of a function.2 For a line given by an equation
these forms can be easily deduced from the relations
A non-vertical line can be defined by its slope m, and the coordinates x 1 , y 1 {\displaystyle x_{1},y_{1}} of any point of the line. In this case, a linear equation of the line is
or
This equation can also be written
to emphasize that the slope of a line can be computed from the coordinates of any two points.
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 x0 and y0 of these two points are nonzero, and an equation of the line is3
(It is easy to verify that the line defined by this equation has x0 and y0 as intercept values).
Given two different points (x1, y1) and (x2, y2), there is exactly one line that passes through them. There are several ways to write a linear equation of this line.
If x1 ≠ x2, the slope of the line is y 2 − y 1 x 2 − x 1 . {\displaystyle {\frac {y_{2}-y_{1}}{x_{2}-x_{1}}}.} Thus, a point-slope form is4
By clearing denominators, one gets the equation
which is valid also when x1 = x2 (to verify 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:
(exchanging the two points changes the sign of the left-hand side of the equation).
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 ( x 2 − x 1 ) ( y − y 1 ) − ( y 2 − y 1 ) ( x − x 1 ) = 0 {\displaystyle (x_{2}-x_{1})(y-y_{1})-(y_{2}-y_{1})(x-x_{1})=0} is the result of expanding the determinant in the equation
The equation ( y 1 − y 2 ) x + ( x 2 − x 1 ) y + ( x 1 y 2 − x 2 y 1 ) = 0 {\displaystyle (y_{1}-y_{2})x+(x_{2}-x_{1})y+(x_{1}y_{2}-x_{2}y_{1})=0} can be obtained by expanding with respect to its first row the determinant in the equation
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 n points in a space of dimension n − 1. 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
The coefficient b, often denoted a0 is called the constant term (sometimes the absolute term in old books56). Depending on the context, the term coefficient can be reserved for the ai with i > 0.
When dealing with n = 3 {\displaystyle n=3} variables, it is common to use x , y {\displaystyle x,\;y} and z {\displaystyle z} instead of indexed variables.
A solution of such an equation is a n-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 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 variables, this hyperplane is a plane.
If a linear equation is given with aj ≠ 0, then the equation can be solved for xj, yielding
If the coefficients are real numbers, this defines a real-valued function of n real variables.
Barnett, Ziegler & Byleen 2008, pg. 15 - 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 & Hostetler 2007, p. 25 - Larson, Ron; Hostetler, Robert (2007), Precalculus:A Concise Course, Houghton Mifflin, ISBN 978-0-618-62719-6 https://archive.org/details/precalculusconci00lars ↩
Wilson & Tracey 1925, pp. 52-53 - Wilson, W.A.; Tracey, J.I. (1925), Analytic Geometry (revised ed.), D.C. Heath ↩
Charles Hiram Chapman (1892). An Elementary Course in Theory of Equations. J. Wiley & sons. p. 17. Extract of page 17 https://books.google.com/books?id=2PQGAAAAYAAJ ↩
David Martin Sensenig (1890). Numbers Universalized: An Advanced Algebra. American Book Company. p. 113. Extract of page 113 https://books.google.com/books?id=TvMGAAAAYAAJ ↩