Linear function (calculus)

Polynomial function of degree at most one

Not to be confused with linear functional or linear map.

This article is missing information about the case of multivariate functions and vector valued functions, which must be considered, as this article is linked to from Jacobian matrix. Please expand the article to include this information. Further details may exist on the talk page. (February 2020)

|

Graph of the linear function:  y ( x ) = − x + 2 {\displaystyle y(x)=-x+2}

In calculus and related areas of mathematics, a linear function from the real numbers to the real numbers is a function whose graph (in Cartesian coordinates) is a non-vertical line in the plane.[1] The characteristic property of linear functions is that when the input variable is changed, the change in the output is proportional to the change in the input.

Linear functions are related to linear equations.

## Properties

[edit]

A linear function is a polynomial function in which the variable x has degree at most one:[2]

f ( x ) = a x + b {\displaystyle f(x)=ax+b} .

Such a function is called linear because its graph, the set of all points  ( x , f ( x ) ) {\displaystyle (x,f(x))} in the Cartesian plane, is a line. The coefficient a is called the slope of the function and of the line (see below).

If the slope is  a = 0 {\displaystyle a=0} , this is a constant function f ( x ) = b {\displaystyle f(x)=b} defining a horizontal line, which some authors exclude from the class of linear functions.[3] With this definition, the degree of a linear polynomial would be exactly one, and its graph would be a line that is neither vertical nor horizontal. However, in this article,  a ≠ 0 {\displaystyle a\neq 0} is not required, so constant functions will be considered linear.

If  b = 0 {\displaystyle b=0} then the linear function is said to be homogeneous. Such function defines a line that passes through the origin of the coordinate system, that is, the point  ( x , y ) = ( 0 , 0 ) {\displaystyle (x,y)=(0,0)} . In advanced mathematics texts, the term linear function often denotes specifically homogeneous linear functions, while the term affine function is used for the general case, which includes  b ≠ 0 {\displaystyle b\neq 0} .

The natural domain of a linear function  f ( x ) {\displaystyle f(x)} , the set of allowed input values for x, is the entire set of real numbers,  x ∈ R . {\displaystyle x\in \mathbb {R} .} One can also consider such functions with x in an arbitrary field, taking the coefficients a, b in that field.

The graph  y = f ( x ) = a x + b {\displaystyle y=f(x)=ax+b} is a non-vertical line having exactly one intersection with the y-axis, its y-intercept point  ( x , y ) = ( 0 , b ) . {\displaystyle (x,y)=(0,b).} The y-intercept value  y = f ( 0 ) = b {\displaystyle y=f(0)=b} is also called the initial value of  f ( x ) . {\displaystyle f(x).} If  a ≠ 0 , {\displaystyle a\neq 0,} the graph is a non-horizontal line having exactly one intersection with the x-axis, the x-intercept point  ( x , y ) = ( − b a , 0 ) . {\displaystyle (x,y)=(-{\tfrac {b}{a}},0).} The x-intercept value  x = − b a , {\displaystyle x=-{\tfrac {b}{a}},} the solution of the equation  f ( x ) = 0 , {\displaystyle f(x)=0,} is also called the root or zero of  f ( x ) . {\displaystyle f(x).}

## Slope

[edit]

The slope of a line is the ratio  Δ y Δ x {\displaystyle {\tfrac {\Delta y}{\Delta x}}} between a change in x, denoted  Δ x {\displaystyle \Delta x} , and the corresponding change in y, denoted  Δ y {\displaystyle \Delta y}

The slope of a nonvertical line is a number that measures how steeply the line is slanted (rise-over-run). If the line is the graph of the linear function  f ( x ) = a x + b {\displaystyle f(x)=ax+b} , this slope is given by the constant a.

The slope measures the constant rate of change of  f ( x ) {\displaystyle f(x)} per unit change in x: whenever the input x is increased by one unit, the output changes by a units:  f ( x + 1 ) = f ( x ) + a {\displaystyle f(x{+}1)=f(x)+a} , and more generally  f ( x + Δ x ) = f ( x ) + a Δ x {\displaystyle f(x{+}\Delta x)=f(x)+a\Delta x} for any number  Δ x {\displaystyle \Delta x} . If the slope is positive,  a > 0 {\displaystyle a>0} , then the function  f ( x ) {\displaystyle f(x)} is increasing; if  a < 0 {\displaystyle a<0} , then  f ( x ) {\displaystyle f(x)} is decreasing

In calculus, the derivative of a general function measures its rate of change. A linear function  f ( x ) = a x + b {\displaystyle f(x)=ax+b} has a constant rate of change equal to its slope a, so its derivative is the constant function  f ′ ( x ) = a {\displaystyle f\,'(x)=a} .

The fundamental idea of differential calculus is that any smooth function  f ( x ) {\displaystyle f(x)} (not necessarily linear) can be closely approximated near a given point  x = c {\displaystyle x=c} by a unique linear function. The derivative f ′ ( c ) {\displaystyle f\,'(c)} is the slope of this linear function, and the approximation is:  f ( x ) ≈ f ′ ( c ) ( x − c ) + f ( c ) {\displaystyle f(x)\approx f\,'(c)(x{-}c)+f(c)} for  x ≈ c {\displaystyle x\approx c} . The graph of the linear approximation is the tangent line of the graph  y = f ( x ) {\displaystyle y=f(x)} at the point  ( c , f ( c ) ) {\displaystyle (c,f(c))} . The derivative slope  f ′ ( c ) {\displaystyle f\,'(c)} generally varies with the point c. Linear functions can be characterized as the only real functions whose derivative is constant: if  f ′ ( x ) = a {\displaystyle f\,'(x)=a} for all x, then  f ( x ) = a x + b {\displaystyle f(x)=ax+b} for  b = f ( 0 ) {\displaystyle b=f(0)} .

## Slope-intercept, point-slope, and two-point forms

[edit]

A given linear function  f ( x ) {\displaystyle f(x)} can be written in several standard formulas displaying its various properties. The simplest is the slope-intercept form:

f ( x ) = a x + b {\displaystyle f(x)=ax+b} ,

from which one can immediately see the slope a and the initial value  f ( 0 ) = b {\displaystyle f(0)=b} , which is the y-intercept of the graph  y = f ( x ) {\displaystyle y=f(x)} .

Given a slope a and one known value  f ( x 0 ) = y 0 {\displaystyle f(x_{0})=y_{0}} , we write the point-slope form:

f ( x ) = a ( x − x 0 ) + y 0 {\displaystyle f(x)=a(x{-}x_{0})+y_{0}} .

In graphical terms, this gives the line  y = f ( x ) {\displaystyle y=f(x)} with slope a passing through the point  ( x 0 , y 0 ) {\displaystyle (x_{0},y_{0})} .

The two-point form starts with two known values  f ( x 0 ) = y 0 {\displaystyle f(x_{0})=y_{0}} and  f ( x 1 ) = y 1 {\displaystyle f(x_{1})=y_{1}} . One computes the slope  a = y 1 − y 0 x 1 − x 0 {\displaystyle a={\tfrac {y_{1}-y_{0}}{x_{1}-x_{0}}}} and inserts this into the point-slope form:

f ( x ) = y 1 − y 0 x 1 − x 0 ( x − x 0 ) + y 0 {\displaystyle f(x)={\tfrac {y_{1}-y_{0}}{x_{1}-x_{0}}}(x{-}x_{0}\\!)+y_{0}} .

Its graph  y = f ( x ) {\displaystyle y=f(x)} is the unique line passing through the points  ( x 0 , y 0 ) , ( x 1 , y 1 ) {\displaystyle (x_{0},y_{0}\\!),(x_{1},y_{1}\\!)} . The equation  y = f ( x ) {\displaystyle y=f(x)} may also be written to emphasize the constant slope:

y − y 0 x − x 0 = y 1 − y 0 x 1 − x 0 {\displaystyle {\frac {y-y_{0}}{x-x_{0}}}={\frac {y_{1}-y_{0}}{x_{1}-x_{0}}}} .

## Relationship with linear equations

[edit]

Linear functions commonly arise from practical problems involving variables  x , y {\displaystyle x,y} with a linear relationship, that is, obeying a linear equation A x + B y = C {\displaystyle Ax+By=C} . If  B ≠ 0 {\displaystyle B\neq 0} , one can solve this equation for y, obtaining

y = − A B x + C B = a x + b , {\displaystyle y=-{\tfrac {A}{B}}x+{\tfrac {C}{B}}=ax+b,}

where we denote  a = − A B {\displaystyle a=-{\tfrac {A}{B}}} and  b = C B {\displaystyle b={\tfrac {C}{B}}} . That is, one may consider y as a dependent variable (output) obtained from the independent variable (input) x via a linear function:  y = f ( x ) = a x + b {\displaystyle y=f(x)=ax+b} . In the xy-coordinate plane, the possible values of  ( x , y ) {\displaystyle (x,y)} form a line, the graph of the function  f ( x ) {\displaystyle f(x)} . If  B = 0 {\displaystyle B=0} in the original equation, the resulting line  x = C A {\displaystyle x={\tfrac {C}{A}}} is vertical, and cannot be written as  y = f ( x ) {\displaystyle y=f(x)} .

The features of the graph  y = f ( x ) = a x + b {\displaystyle y=f(x)=ax+b} can be interpreted in terms of the variables x and y. The y-intercept is the initial value  y = f ( 0 ) = b {\displaystyle y=f(0)=b} at  x = 0 {\displaystyle x=0} . The slope a measures the rate of change of the output y per unit change in the input x. In the graph, moving one unit to the right (increasing x by 1) moves the y-value up by a: that is,  f ( x + 1 ) = f ( x ) + a {\displaystyle f(x{+}1)=f(x)+a} . Negative slope a indicates a decrease in y for each increase in x.

For example, the linear function  y = − 2 x + 4 {\displaystyle y=-2x+4} has slope  a = − 2 {\displaystyle a=-2} , y-intercept point  ( 0 , b ) = ( 0 , 4 ) {\displaystyle (0,b)=(0,4)} , and x-intercept point  ( 2 , 0 ) {\displaystyle (2,0)} .

### Example

[edit]

Suppose salami and sausage cost €6 and €3 per kilogram, and we wish to buy €12 worth. How much of each can we purchase? If x kilograms of salami and y kilograms of sausage costs a total of €12 then, €6×x \+ €3×y = €12. Solving for y gives the point-slope form  y = − 2 x + 4 {\displaystyle y=-2x+4} , as above. That is, if we first choose the amount of salami x, the amount of sausage can be computed as a function  y = f ( x ) = − 2 x + 4 {\displaystyle y=f(x)=-2x+4} . Since salami costs twice as much as sausage, adding one kilo of salami decreases the sausage by 2 kilos:  f ( x + 1 ) = f ( x ) − 2 {\displaystyle f(x{+}1)=f(x)-2} , and the slope is −2. The y-intercept point  ( x , y ) = ( 0 , 4 ) {\displaystyle (x,y)=(0,4)} corresponds to buying only 4 kg of sausage; while the x-intercept point  ( x , y ) = ( 2 , 0 ) {\displaystyle (x,y)=(2,0)} corresponds to buying only 2 kg of salami.

Note that the graph includes points with negative values of x or y, which have no meaning in terms of the original variables (unless we imagine selling meat to the butcher). Thus we should restrict our function  f ( x ) {\displaystyle f(x)} to the domain  0 ≤ x ≤ 2 {\displaystyle 0\leq x\leq 2} .

Also, we could choose y as the independent variable, and compute x by the inverse linear function:  x = g ( y ) = − 1 2 y + 2 {\displaystyle x=g(y)=-{\tfrac {1}{2}}y+2} over the domain  0 ≤ y ≤ 4 {\displaystyle 0\leq y\leq 4} .

## Relationship with other classes of functions

[edit]

If the coefficient of the variable is not zero (a ≠ 0), then a linear function is represented by a degree 1 polynomial (also called a linear polynomial), otherwise it is a constant function – also a polynomial function, but of zero degree.

A straight line, when drawn in a different kind of coordinate system may represent other functions.

For example, it may represent an exponential function when its values are expressed in the logarithmic scale. It means that when log(g(x)) is a linear function of x, the function g is exponential. With linear functions, increasing the input by one unit causes the output to increase by a fixed amount, which is the slope of the graph of the function. With exponential functions, increasing the input by one unit causes the output to increase by a fixed multiple, which is known as the base of the exponential function.

If both arguments and values of a function are in the logarithmic scale (i.e., when log(y) is a linear function of log(x)), then the straight line represents a power law:

log r ⁡ y = a log r ⁡ x + b ⇒ y = r b ⋅ x a {\displaystyle \log _{r}y=a\log _{r}x+b\quad \Rightarrow \quad y=r^{b}\cdot x^{a}}
Archimedean spiral defined by the polar equation r = 1⁄2θ + 2

On the other hand, the graph of a linear function in terms of polar coordinates:

r = f ( θ ) = a θ + b {\displaystyle r=f(\theta )=a\theta +b}

is an Archimedean spiral if  a ≠ 0 {\displaystyle a\neq 0} and a circle otherwise.

## See also

[edit]

* Affine map, a generalization
* Arithmetic progression, a linear function of integer argument

## Notes

[edit]

1. ^ Stewart 2012, p. 23.
2. ^ Stewart 2012, p. 24.
3. ^ Swokowski 1983, p. 34.

## References

[edit]

* Stewart, James (2012), Calculus: Early Transcendentals (7E ed.), Brooks/Cole, ISBN 978-0-538-49790-9
* Swokowski, Earl W. (1983), Calculus with analytic geometry (Alternate ed.), Boston: Prindle, Weber & Schmidt, ISBN 0871503417

## External links

[edit]

* https://web.archive.org/web/20130524101825/http://www.math.okstate.edu/~noell/ebsm/linear.html
* https://web.archive.org/web/20180722042342/https://corestandards.org/assets/CCSSI_Math Standards.pdf

* v
* t
* e

Polynomials and polynomial functions and polynomial equations

By degree|

* Zero polynomial (degree undefined or −1 or −∞)
* Constant function (0)
* Linear function (1)
* Linear equation
* Quadratic function (2)
* Quadratic equation
* Cubic function (3)
* Cubic equation
* Quartic function (4)
* Quartic equation
* Quintic function (5)
* Sextic equation (6)
* Septic equation (7)

By properties|

* Univariate
* Bivariate
* Multivariate
* Monomial
* Binomial
* Trinomial
* Irreducible
* Square-free
* Homogeneous
* Quasi-homogeneous

Tools and algorithms|

* Factorization
* Greatest common divisor
* Division
* Horner's method of evaluation
* Polynomial identity testing
* Resultant
* Discriminant
* Gröbner basis

Authority control databases: National |

* Germany

|

*[v]: View this template
*[t]: Discuss this template
*[e]: Edit this template