In calculus,
analytic geometry and related areas, a linear function is a polynomial of degree one or less, including the
zero polynomial. (The latter is a polynomial with no terms, and it is not considered to have degree zero.) When the function is of only one
variable, it is of the form :f(x)=ax+b, where and are
constants, often
real numbers. The
graph of such a function of one variable is a nonvertical line. is frequently referred to as the slope of the line, and as the intercept. If
a > 0 then the
gradient is positive and the graph slopes upwards. If ''a f(x_1, \ldots, x_k) of any finite number of variables, the general formula is :f(x_1, \ldots, x_k) = b + a_1 x_1 + \cdots + a_k x_k , and the graph is a
hyperplane of dimension . A
constant function is also considered linear in this context, as it is a polynomial of degree zero or is the zero polynomial. Its graph, when there is only one variable, is a horizontal line. In this context, a function that is also a linear map (the other meaning of linear functions, see the below) may be referred to as a
homogeneous linear function or a
linear form. In the context of linear algebra, the polynomial functions of degree 0 or 1 are the scalar-valued
affine maps. == As a linear map ==