Linear equation
A linear equation is an algebraic equation in which each term is either a constant or the product of a constant and (the first power of) a single variable. Linear equations can have one, two, three or more variables.
Linear equations occur with great regularity in applied mathematics. While they arise quite naturally when modeling many phenomena, they are particularly useful since many non-linear equations may be reduced to linear equations by assuming that quantities of interest vary to only a small extent from some "background" state.
Linear equations in two variables
A common form of a linear equation in the two variables
and
is
![y = mx + b,\,](/2009-wikipedia_en_wp1-0.7_2009-05/I/d24ebc87176b242c935535a363c5fc10.png)
where m and b designate constants (the variable y is multiplied by the constant 1, which as usual is not explicitly written). The origin of the name "linear" comes from the fact that the set of solutions of such an equation forms a straight line in the plane. In this particular equation, the constant
determines the slope or gradient of that line; and the constant term
determines the point at which the line crosses the y-axis.
Since terms of a linear equations cannot contain products of distinct or equal variables, nor any power (other than 1) or other function of a variable, equations involving terms such as xy, x², y1/3, and sin(x) are nonlinear.
Graph sample of linear equations.
Forms for 2D linear equations
Complicated linear equations, such as the ones above, can be rewritten using the laws of elementary algebra into several different forms. These equations are often referred to as the "equations of the straight line". In what follows x, y and t are variables; other letters represent constants (fixed numbers).
General form
-
![Ax + By + C = 0,\,](/2009-wikipedia_en_wp1-0.7_2009-05/I/fe70eb55a73ac2c2797af797140ceda9.png)
- where A and B are not both equal to zero. The equation is usually written so that A ≥ 0, by convention. The graph of the equation is a straight line, and every straight line can be represented by an equation in the above form. If A is nonzero, then the x-intercept, that is the x-coordinate of the point where the graph crosses the x-axis (y is zero), is −C/A. If B is nonzero, then the y-intercept, that is the y-coordinate of the point where the graph crosses the y-axis (x is zero), is −C/B, and the slope of the line is −A/B.
Standard form
-
![Ax + By = C,\,](/2009-wikipedia_en_wp1-0.7_2009-05/I/7e6859919d495035e99c333d04e3e0b9.png)
- where A, B, and C are integers whose greatest common factor is 1, A and B are not both equal to zero and, A is non-negative (and if A = 0 then B has to be positive). The standard form can be converted to the general form, but not always to all the other forms if A or B is zero.
Slope–intercept form
Y-axis formula
-
![y = mx + b,\,](/2009-wikipedia_en_wp1-0.7_2009-05/I/d24ebc87176b242c935535a363c5fc10.png)
- where m is the slope of the line and b is the y-intercept, which is the y-coordinate of the point where the line crosses the y axis. This can be seen by letting
, which immediately gives
.
X-axis formula
-
![x = \frac{y}{m} + c,\,](/2009-wikipedia_en_wp1-0.7_2009-05/I/9d28e625a19c92f6e4d399c9ef16b5e2.png)
- where m ≠ 0, is the slope of the line and c is the x-intercept, which is the x-coordinate of the point where the line crosses the x axis. This can be seen by letting
, which immediately gives
.
Point–slope form
-
![y - y_1 = m \cdot ( x - x_1 ),](/2009-wikipedia_en_wp1-0.7_2009-05/I/a211b4370086efa422855a2d30c453a3.png)
- where m is the slope of the line and (x1,y1) is any point on the line. The point-slope and slope-intercept forms are easily interchangeable.
- The point-slope form expresses the fact that the difference in the y coordinate between two points on a line (that is,
) is proportional to the difference in the x coordinate (that is,
). The proportionality constant is m (the slope of the line).
Intercept form
-
![\frac{x}{c} + \frac{y}{b} = 1,](/2009-wikipedia_en_wp1-0.7_2009-05/I/d163a7121afc344bdc40d2f76a1f1d46.png)
- where c and b must be nonzero. The graph of the equation has x-intercept c and y-intercept b. The intercept form can be converted to the standard form by setting A = 1/c, B = 1/b and C = 1.
Two-point form
-
![y - y_1 = \frac{y_2 - y_1}{x_2 - x_1} (x - x_1),](/2009-wikipedia_en_wp1-0.7_2009-05/I/511eb44dc0bc2ef554bf676fc47452ee.png)
- where x2 ≠ x1. The graph passes through the points (x1,y1) and (x2,y2), and has slope m = (y2−y1) / (x2−x1).
Parametric form
-
![x = T t + U\,](/2009-wikipedia_en_wp1-0.7_2009-05/I/9214a74cdd0affe36340c35a864f7673.png)
- and
![y = V t + W.\,](/2009-wikipedia_en_wp1-0.7_2009-05/I/a4da4b276cfffef11300d3bae03052e7.png)
- Two simultaneous equations in terms of a variable parameter t, with slope m = V / T, x-intercept (VU−WT) / V and y-intercept (WT−VU) / T.
- This can also be related to the two-point form, where T = p−h, U = h, V = q−k, and W = k:
![x = (p - h) t + h\,](/2009-wikipedia_en_wp1-0.7_2009-05/I/169c655598a3f7df7078a9fa7de2d611.png)
- and
![y = (q - k)t + k.\,](/2009-wikipedia_en_wp1-0.7_2009-05/I/12c52d9fc52373c79f7520a31d856b94.png)
- In this case t varies from 0 at point (h,k) to 1 at point (p,q), with values of t between 0 and 1 providing interpolation and other values of t providing extrapolation.
Normal form
-
![y \sin \phi + x \cos \phi - p = 0,\,](/2009-wikipedia_en_wp1-0.7_2009-05/I/5c6e21f61701264a1e7444e409bed2cc.png)
- where φ is the angle of inclination of the normal and p is the length of the normal. The normal is defined to be the shortest segment between the line in question and the origin. Normal form can be derived from general form by dividing all of the coefficients by
-
![\frac{|C|}{-C}\sqrt{A^2 + B^2}.](/2009-wikipedia_en_wp1-0.7_2009-05/I/59b47a8825fe10d10a8e90a6e71bd256.png)
This form is also called the Hesse standard form, after the German mathematician Ludwig Otto Hesse.
Special cases
-
![y = b.\,](/2009-wikipedia_en_wp1-0.7_2009-05/I/fcb56146670582a2bc1a0e672a091b6e.png)
- This is a special case of the standard form where A = 0 and B = 1, or of the slope-intercept form where the slope M = 0. The graph is a horizontal line with y-intercept equal to b. There is no x-intercept, unless b = 0, in which case the graph of the line is the x-axis, and so every real number is an x-intercept.
-
![x = c.\,](/2009-wikipedia_en_wp1-0.7_2009-05/I/e4315692193092b1a505fd79be8c6ffd.png)
- This is a special case of the standard form where A = 1 and B = 0. The graph is a vertical line with x-intercept equal to c. The slope is undefined. There is no y-intercept, unless c = 0, in which case the graph of the line is the y-axis, and so every real number is a y-intercept.
-
and ![x = x.\,](/2009-wikipedia_en_wp1-0.7_2009-05/I/1f940490f2215fc2ba5310b2c89b393f.png)
- In this case all variables and constants have canceled out, leaving a trivially true statement. The original equation, therefore, would be called an identity and one would not normally consider its graph (it would be the entire xy-plane). An example is 2x + 4y = 2(x + 2y). The two expressions on either side of the equal sign are always equal, no matter what values are used for x and y.
-
![e = f.\,](/2009-wikipedia_en_wp1-0.7_2009-05/I/4ab94d42d3a088db3669b6468f819af5.png)
- In situations where algebraic manipulation leads to a statement such as 1 = 0, then the original equation is called inconsistent, meaning it is untrue for any values of x and y (i.e. its graph would be the empty set) An example would be 3x + 2 = 3x − 5.
Connection with linear functions and operators
In all of the named forms above (assuming the graph is not a vertical line), the variable y is a function of x, and the graph of this function is the graph of the equation.
In the particular case that the line crosses through the origin, if the linear equation is written in the form y = f(x) then f has the properties:
![f ( x + y ) = f ( x ) + f ( y )\](/2009-wikipedia_en_wp1-0.7_2009-05/I/f37275e36b2ebb370f8be588b5782344.png)
and
![f ( a x ) = a f ( x ),\,](/2009-wikipedia_en_wp1-0.7_2009-05/I/9760d5824466b43115971d3b9d93a223.png)
where a is any scalar. A function which satisfies these properties is called a linear function, or more generally a linear map. This property makes linear equations particularly easy to solve and reason about.
Linear equations in more than two variables
-
A linear equation can involve more than two variables. The general linear equation in n variables is:
![a_1 x_1 + a_2 x_2 + \cdots + a_n x_n = b.](/2009-wikipedia_en_wp1-0.7_2009-05/I/d8ea72a9337f856e607ad2b87c3c6656.png)
In this form, a1, a2, …, an are the coefficients, x1, x2, …, xn are the variables, and b is the constant. When dealing with three or fewer variables, it is common to replace x1 with just x, x2 with y, and x3 with z, as appropriate.
Such an equation will represent an (n–1)-dimensional hyperplane in n-dimensional Euclidean space (for example, a plane in 3-space).
See also
References
External links