Linear equation

From testwiki
Jump to navigation Jump to search

Template:Short description Template:Distinguish

Error creating thumbnail:
Two graphs of linear equations in two variables

In mathematics, a linear equation is an equation that may be put in the form a1x1++anxn+b=0, where x1,,xn are the variables (or unknowns), and b,a1,,an 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 a1,,an 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 a10). 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 variable

A linear equation in one variable Template:Mvar can be written as ax+b=0, with a0.

The solution is x=ba.

Two variables

A linear equation in two variables Template:Mvar and Template:Mvar can be written as ax+by+c=0, where Template:Mvar and Template:Mvar are not both Template:Math.[1]

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

Linear function

Template:Main If Template:Math, the equation

ax+by+c=0

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

y=abxcb.

This defines a function. The graph of this function is a line with slope ab and [[y-intercept|Template:Mvar-intercept]] cb. 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 interpretation

Vertical line of equation Template:Math
Horizontal line of equation Template:Math

Each solution Template:Math of a linear equation

ax+by+c=0

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 x=ca, 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 y=cb.

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 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

y=mx+y0.

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

y=m(xx0),

or, equivalently,

y=mxmx0.

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

ax+by+c=0,

these forms can be easily deduced from the relations

m=ab,x0=ca,y0=cb.

Point–slope form or Point-gradient form

A non-vertical line can be defined by its slope Template:Mvar, and the coordinates x1,y1 of any point of the line. In this case, a linear equation of the line is

y=y1+m(xx1),

or

y=mx+y1mx1.

This equation can also be written

yy1=m(xx1)

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 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[3]

xx0+yy0=1.

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

Two-point form

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 y2y1x2x1. Thus, a point-slope form is[3]

yy1=y2y1x2x1(xx1).

By clearing denominators, one gets the equation

(x2x1)(yy1)(y2y1)(xx1)=0,

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

(y1y2)x+(x2x1)y+(x1y2x2y1)=0

(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 (x2x1)(yy1)(y2y1)(xx1)=0 is the result of expanding the determinant in the equation

|xx1yy1x2x1y2y1|=0.

The equation (y1y2)x+(x2x1)y+(x1y2x2y1)=0 can be obtained by expanding with respect to its first row the determinant in the equation

|xy1x1y11x2y21|=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 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 variables

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

a1x1+a2x2++anxn+b=0.

The coefficient Template:Mvar, often denoted Template:Math 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 Template:Math with Template:Math.

When dealing with n=3 variables, it is common to use x,y and z 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

xj=baji{1,,n},ijaiajxi.

If the coefficients are real numbers, this defines a real-valued [[function of several real variables|function of Template:Mvar real variables]].

See also

Notes

Template:Reflist

References

Template:Polynomials Template:Authority control