Template:Short description Template:Distinguish

File:Linear Function Graph.svg
Two graphs of linear equations in two variables

In mathematics, a linear equation is an equation that may be put in the form <math>a_1x_1+\ldots+a_nx_n+b=0,</math> where <math>x_1,\ldots,x_n</math> are the variables (or unknowns), and <math>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>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>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 equation. More generally, the solutions of a linear equation in Template:Mvar variables form a hyperplane (a subspace of dimension Template:Math) in the Euclidean space of dimension Template:Mvar.

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.

One variableEdit

A linear equation in one variable Template:Mvar can be written as <math>ax+b=0,</math> with <math>a\neq 0 </math>.

The solution is <math>x=-\frac ba</math>.

Two variablesEdit

A linear equation in two variables Template:Mvar and Template:Mvar can be written as <math>ax+by+c=0,</math> where Template:Mvar and Template:Mvar are not both Template:Math.<ref>Template:Harvnb</ref>

If Template:Mvar and Template:Mvar are real numbers, it has infinitely many solutions.

Linear functionEdit

{{#invoke:Labelled list hatnote|labelledList|Main article|Main articles|Main page|Main pages}} If Template:Math, the equation

<math>ax+by+c=0 </math>

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

<math>y=-\frac ab x-\frac cb. </math>

This defines a function. The graph of this function is a line with slope <math>-\frac ab </math> and [[y-intercept|Template:Mvar-intercept]] <math>-\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 Template:Math, 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 Template:Math are often called linear maps.

Geometric interpretationEdit

File:X is a.svg
Vertical line of equation Template:Math
File:Y is b.svg
Horizontal line of equation Template:Math

Each solution Template:Math of a linear equation

<math>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 Template:Mvar and Template:Mvar 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 Template:Math, the line is the graph of the function of Template:Mvar that has been defined in the preceding section. If Template:Math, the line is a vertical line (that is a line parallel to the Template:Mvar-axis) of equation <math>x=-\frac ca,</math> which is not the graph of a function of Template:Mvar.

Similarly, if Template:Math, the line is the graph of a function of Template:Mvar, and, if Template:Math, one has a horizontal line of equation <math>y=-\frac cb.</math>

Equation of a lineEdit

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 Edit

A non-vertical line can be defined by its slope Template:Mvar, and its Template:Mvar-intercept Template:Math (the Template:Mvar coordinate of its intersection with the Template:Mvar-axis). In this case, its linear equation can be written

<math>y=mx+y_0.</math>

If, moreover, the line is not horizontal, it can be defined by its slope and its Template:Mvar-intercept Template:Math. In this case, its equation can be written

<math>y=m(x-x_0),</math>

or, equivalently,

<math>y=mx-mx_0.</math>

These forms rely on the habit of considering a nonvertical line as the graph of a function.<ref>Template:Harvnb</ref> For a line given by an equation

<math>ax+by+c = 0,</math>

these forms can be easily deduced from the relations

<math>\begin{align}

m&=-\frac ab,\\ x_0&=-\frac ca,\\ y_0&=-\frac cb. \end{align}</math>

Point–slope form or Point-gradient formEdit

A non-vertical line can be defined by its slope Template:Mvar, and the coordinates <math>x_1, y_1</math> of any point of the line. In this case, a linear equation of the line is

<math>y=y_1 + m(x-x_1),</math>

or

<math>y=mx +y_1-mx_1.</math>

This equation can also be written

<math>y-y_1=m(x-x_1)</math>

to emphasize that the slope of a line can be computed from the coordinates of any two points.

Intercept formEdit

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 Template:Math and Template:Math of these two points are nonzero, and an equation of the line is<ref name=WilsonTracey>Template:Harvnb</ref>

<math>\frac{x}{x_0} + \frac{y}{y_0} = 1.</math>

(It is easy to verify that the line defined by this equation has Template:Math and Template:Math as intercept values).

Two-point formEdit

Given two different points Template:Math and Template:Math, there is exactly one line that passes through them. There are several ways to write a linear equation of this line.

If Template:Math, the slope of the line is <math>\frac{y_2 - y_1}{x_2 - x_1}.</math> Thus, a point-slope form is<ref name=WilsonTracey />

<math>y - y_1 = \frac{y_2 - y_1}{x_2 - x_1} (x - x_1).</math>

By clearing denominators, one gets the equation

<math> (x_2 - x_1)(y - y_1) - (y_2 - y_1)(x - x_1)=0,</math>

which is valid also when Template:Math (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:

<math>(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 formEdit

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> (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>\begin{vmatrix}x-x_1&y-y_1\\x_2-x_1&y_2-y_1\end{vmatrix}=0.</math>

The equation <math> (y_1-y_2)x + (x_2-x_1)y + (x_1y_2 - x_2y_1)=0</math> can be obtained by expanding with respect to its first row the determinant in the equation

<math>\begin{vmatrix}

x&y&1\\ x_1&y_1&1\\ x_2&y_2&1 \end{vmatrix}=0.</math>

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 Template:Mvar points in a space of dimension Template:Math. These equations rely on the condition of linear dependence of points in a projective space.

More than two variablesEdit

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

<math>a_1 x_1 + a_2 x_2 + \cdots + a_n x_n + b=0.</math>

The coefficient Template:Mvar, often denoted Template:Math is called the constant term (sometimes the absolute term in old books<ref>Template:Cite book Extract of page 17</ref><ref>Template:Cite book Extract of page 113</ref>). Depending on the context, the term coefficient can be reserved for the Template:Math with Template:Math.

When dealing with <math>n=3</math> variables, it is common to use <math>x,\; y</math> and <math>z</math> instead of indexed variables.

A solution of such an equation is a Template:Mvar-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 Template:Mvar) as having no solution, or all Template:Nowrap are solutions.

The Template:Mvar-tuples that are solutions of a linear equation in Template:Nowrap are the Cartesian coordinates of the points of an Template:Math-dimensional hyperplane in an Template:Nowrap 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 Template:Math, then the equation can be solved for Template:Math, yielding

<math>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 several real variables|function of Template:Mvar real variables]].

See alsoEdit

NotesEdit

Template:Reflist

ReferencesEdit

External linksEdit

Template:Polynomials Template:Authority control