Linear function (calculus): Difference between revisions

Content deleted Content added
Move paragraph to later section, it works better as topic paragraph
Standardize math. Using the ugly mvar/math method for now, still not convinced it is better than the HTML style
Line 5:
[[Image:wiki_linear_function.png|thumb|right|Graph of the linear function: {{math|1=''y''(''x'') = −''x'' + 2}}]]<!-- people, find an SVG image please instead of this abomination -->
 
A linear function is a [[polynomial function]] in which the variable {{mvar|x}} has degree at most one, i.e.which <means it is of the form
:{{math>|1=f(x)=ax+b</math>}}.<ref>Stewart 2012, p. 24</ref>
Here {{mvar|x}} is the variable. The [[graph of a function|graph]] of a linear function, that is, the set of all points whose coordinates have the form ({{mvar|x}}, {{math|''f''(''x'')}}), is a line, which is why this type of [[Function (mathematics)|function]] is called ''linear''. Some authors, for various reasons, also require that the coefficient of the variable (the {{mvar|a}} in {{mvar|ax + b}}) should not be zero.<ref>{{harvnb|Swokowski|1983|loc=p. 34}} is but one of many well known references that could be cited.</ref> This requirement can also be expressed by saying that the degree of the polynomial defining the function is exactly one, or by saying that the line which is the graph of a linear function is a ''slanted'' line (neither vertical nor horizontal). This requirement will not be imposed in this article, thus constant functions, <{{math>|1=f(x) = b</math>}}, will be considered to be linear functions (their graphs are horizontal lines).
 
The [[Domain_of_a_function|___domain]] or set of allowed values for {{mvar|x}} of a linear function is the entire set of [[real number]]s {{math|'''R'''}}, or whatever [[field (mathematics)|field]] that is in use. This means that any (real) number can be substituted for {{mvar|x}}.
Line 19 ⟶ 21:
The points on a line have coordinates which can also be thought of as the solutions of [[linear equation]]s in two variables (the equation of the line). These solution sets define functions which are linear functions. This connection between linear equations and linear functions provides the most common way to produce linear functions.
 
The [[equation]] {{math|1=''y'' = ''ax'' + ''b''}} is referred to as the slope-intercept form of a [[linear equation]]. In this form, the variable is {{mvar|x}}, and {{mvar|y}}, is the value of the function. It also has two coefficients, {{mvar|a}} and {{mvar|b}}. In this instance, the fact that the values of {{mvar|y}} depend on the values of {{mvar|x}} is an expression of the functional relationship between them. To be very explicit, the linear equation is expressing the equality of values of the dependent variable {{mvar|y}} with the functional values of the linear function <{{math>|1=f(x) = ax + b</math>}}, in other words <{{math>|1=y = f(x)</math>}} for this particular linear function &nbsp;{{mvar|f}}.
 
If the linear function {{mvar|f}} is given, the linear equation of the graph of this function is obtained by ''defining'' the variable {{mvar|y}} to be the functional value {{math|''f''(''x'')}}, that is, setting <{{math>|1=y = f(x) = ax + b</math>}} and suppressing the functional notation in the middle. Starting with a linear equation, one can create linear functions, but this is a more subtle operation and must be done with care. Why this is so is not immediately apparent when the linear equation has the slope-intercept form, so this discussion will be postponed. For the moment observe that if the linear equation has the slope-intercept form, then the expression that the dependent variable {{mvar|y}} is equal to is the linear function whose graph is the line satisfying the linear equation.
 
The constant {{mvar|b}} is the so-called {{mvar|y}}-intercept. It is the {{mvar|y}}-value at which the line intersects the {{mvar|y}}-axis. The coefficient {{mvar|a}} is the [[slope]] of the line. This measures of the rate of change of the linear function associated with the line. Since {{mvar|a}} is a constant, this rate of change is constant. Moving from any point on the line to the right by one unit (that is, increasing {{mvar|x}} by 1), the {{mvar|y}}-value of the point's coordinate changes by {{mvar|a}}. This is expressed functionally by the statement that <{{math>|1=f(x+1) = f(x) +a</math>}} when <{{math>|1=f(x) = ax + b</math>}}.
 
For example, the slope-intercept form <{{math> |1=y=-2x+4 </math>}} has {{math|1=''a'' = −2}} and {{math|1=''b'' = 4}}. The point {{math|1=(0, ''b'') = (0, 4)}} is the intersection of the line and the {{mvar|y}}-axis, the point {{math|1=({{sfrac|−''b''|''a''}}, 0)}} = ({{sfrac|−4|−2}}, 0) = (2, 0) is the intersection of the line and the {{mvar|x}}-axis, and {{math|1=''a'' = −2}} is the slope of the line. For every step to the right ({{mvar|x}} increases by 1), the value of {{mvar|y}} changes by −2 (goes down).
 
[[Image: wiki_linearna_funkcija_stand1.png|180px|right]]
If the linear equation in the general form
: <{{math> |1=Ax+By=C}}. </math>
has <{{math> |B \&ne; 0 </math>}}, then it may be solved for the variable {{mvar|y}} and thus used to define a linear function, (namely, <{{math> |1=y = - \tfrac&minus;({A}{sfrac|A|B} })x + \tfrac({C}{sfrac|C|B}}) = f(x)</math>)}}. While all lines have equations in the general form, only the non-vertical lines have equations which can give rise to linear functions.
 
== Notes ==