This article relies largely or entirely on a single source. (January 2016)
This article needs additional citations for verification. (January 2016) (Learn how and when to remove this template message)
where are the variables or unknowns, and are coefficients, which are often real numbers, but may be parameters, or even any expression that does not contain the unknowns. In other words, a linear equation is obtained by equating to zero a linear polynomial.
The solutions of such an equation are the values that, when substituted to the unknowns, make the equality true.
The case of one unknown is of a particular importance, and it is frequent that linear equation refers implicitly to this particular case, that is to an equation that may be written in the form
If a ≠ 0 this linear equation has the unique solution
The solutions of a linear equation in two variables form a line in the Euclidean plane, and every line may be defined as the solutions of a linear equation. This is the origin of the term linear for qualifying this type of equations. More generally, the solutions of a linear equation in n variables form a hyperplane (of dimension n – 1) in the Euclidean space of dimension n.
This article considers the case of a single equation with real coefficients, for which one studies the real solutions. All its content applies for complex solutions and, more generally for linear equations with coefficient and solutions in any field. For the case of several simultaneous linear equations, see System of linear equations.
- 1 One variable
- 2 Two variables
- 3 More than two variables
- 4 See also
- 5 Notes
- 6 References
- 7 External links
A linear equation in one unknown x may always be rewritten
If a ≠ 0, there is a unique solution
If a = 0, then, if b = 0, every number is a solution of the equation, and, if b ≠ 0, there are no solutions (and the equation is said to be inconsistent).
A common linear equation in two variables x and y is the relation that links the argument and the value of a linear function:
Every linear equation in x and y may be rewritten
where a and b are not both zero. The set of the solutions form a line in the Euclidean plane, which is the graph of a linear function if and only if b ≠ 0.
Using the laws of elementary algebra, linear equations in two variables may be rewritten in several standard forms that are described below, which are often referred to as "equations of a line". In what follows, x, y, t, and θ are variables; other letters represent constants (fixed numbers).
General (or standard) form
In the general (or standard) form the linear equation is written as:
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 (where, 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 (where x is zero), is C/B, and the slope of the line is −A/B. The general form is sometimes written as:
where a and b are not both equal to zero. The two versions can be converted from one to the other by moving the constant term to the other side of the equal sign.
where m is the slope of the line and b is the y intercept, which is the y coordinate of the location where the line crosses the y axis. This can be seen by letting x = 0, which immediately gives y = b. It may be helpful to think about this in terms of y = b + mx; where the line passes through the point (0, b) and extends to the left and right at a slope of m. Vertical lines, having undefined slope, cannot be represented by this form.
A corresponding form exists for the x intercept, though it is less-used, since y is conventionally a function of x:
Analogously, horizontal lines cannot be represented in this form. If a line is neither horizontal nor vertical, it can be expressed in both these forms, with , so . Expressing y as a function of x gives the form:
which is equivalent to the polynomial factorization of the y intercept form. This is useful when the x intercept is of more interest than the y intercept. Expanding both forms shows that , so , expressing the x intercept in terms of the y intercept and slope, or conversely.
where m is the slope of the line and (x1,y1) is any point on the line.
The point-slope form expresses the fact that the difference in the y coordinate between two points on a line (that is, y − y1) is proportional to the difference in the x coordinate (that is, x − x1). The proportionality constant is m (the slope of the line).
where (x1, y1) and (x2, y2) are two points on the line with x2 ≠ x1. This is equivalent to the point-slope form above, where the slope is explicitly given as (y2 − y1)/(x2 − x1).
Multiplying both sides of this equation by (x2 − x1) yields a form of the line generally referred to as the symmetric form:
Expanding the products and regrouping the terms leads to the general form:
Using a determinant, one gets a determinant form, easy to remember:
where a and b must be nonzero. The graph of the equation has x-intercept a and y-intercept b. The intercept form is in standard form with A/C = 1/a and B/C = 1/b. Lines that pass through the origin or which are horizontal or vertical violate the nonzero condition on a or b and cannot be represented in this form.
Using the order of the standard form
one can rewrite the equation in matrix form:
Further, this representation extends to systems of linear equations.
Since this extends easily to higher dimensions, it is a common representation in linear algebra, and in computer programming. There are named methods for solving a system of linear equations, like Gauss-Jordan which can be expressed as matrix elementary row operations.
These are 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:
2D vector determinant form
The equation of a line can also be written as the determinant of two vectors. If and are unique points on the line, then will also be a point on the line if the following is true:
One way to understand this formula is to use the fact that the determinant of two vectors on the plane will give the area of the parallelogram they form. Therefore, if the determinant equals zero then the parallelogram has no area, and that will happen when two vectors are on the same line.
To expand on this we can say that , and . Thus and , then the above equation becomes:
Then dividing both side by would result in the “Two-point form” shown above, but leaving it here allows the equation to still be valid when .
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.
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 a. The slope is undefined. There is no y-intercept, unless a = 0, in which case the graph of the line is the y-axis, and every real number is a y-intercept. This is the only type of straight line which is not the graph of a function (it obviously fails the vertical line test).
Connection with linear functions
A linear equation, written in the form y = f(x) whose graph crosses the origin (x,y) = (0,0), that is, whose y-intercept is 0, has the following properties:
where a is any scalar. A function which satisfies these properties is called a linear function (or linear operator, or more generally a linear map). However, linear equations that have non-zero y-intercepts, when written in this manner, produce functions which will have neither property above and hence are not linear functions in this sense. They are known as affine functions.
An everyday example of the use of different forms of linear equations is computation of tax with tax brackets. This is commonly done with a progressive tax computation, using either point–slope form or slope–intercept form.
More than two variables
A linear equation can involve more than two variables. Every linear equation in n unknowns may be rewritten
where, a1, a2, ..., an represent numbers, called the coefficients, x1, x2, ..., xn are the unknowns, and b is called the constant term. When dealing with three or fewer variables, it is common to use x, y and z instead of x1, x2 and x3.
If all the coefficients are zero, then either b ≠ 0 and the equation does not have any solution, or b = 0 and every set of values for the unknowns is a solution.
If at least one coefficient is nonzero, a permutation of the subscripts allows one to suppose a1 ≠ 0, and rewrite the equation
In other words, if ai ≠ 0, one may choose arbitrary values for all the unknowns except xi, and express xi in term of these values.
If n = 3 the set of the solutions is a plane in a three-dimensional space. More generally, the set of the solutions is an (n – 1)-dimensional hyperplane in a n-dimensional Euclidean space (or affine space if the coefficients are complex numbers or belong to any field).
- Line (geometry)
- Linear function
- Linear equation over a ring
- Algebraic equation
- Linear belief function
- Linear inequality
- 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 0-13-157225-3