| Main Page | Everything for Finite Math | Everything for Applied Calc | Everything | Topic Summaries | On Line Tutorials | On Line Utilities | |||||||||
|
||||||||||||
| Finite mathematics topic summary: functions and linear models |
|
Functions and Domains A real-valued function f of a real variable is a rule that assigns to each real number x in a specified set of numbers, called the domain of f, a single real number f(x). The variable x is called the independent variable. If y = f(x) we call y the dependent variable. A function can be specified:
Note on Domains
Press here to link to a page that will allow you to evaluate and graph functions on-line.
|
Examples A Numerically Specified Function: Let the function f be specified by the following table.
Then, f(0) = 3.01, f(1) = -1.03, and so on. An Algebraically Specified Function: Let the function f be specified by f(x) = 3x2 - 4x + 1. Then
f(-1) = 3(-1)2 - 4(-1) + 1 = 3 + 4 + 1 = 8. A Graphically Specified Function: Suppose f is specified by the following graph. ![]() Then, f(0) = 1, f(1) = 0, and f(3) = 5. |
|||||||||||||||||||||||||||||||||||||||||||
|
Intervals
The closed interval [a, b] is the set of all real numbers x with a ≤ x ≤ b. The open interval (a, b) is the set of all real numbers x with a < x < b. The interval (a, ∞) is the set of all real numbers x with a < x < +∞, while (-∞, b) is the set of all real numbers x with -∞ < x < b. We also have half open intervals of the form [a, b) and (a, b]. |
Examples
|
|||||||||||||||||||||||||||||||||||||||||||
|
Graph of a Function
The graph of a function f is the set of all points (x, f(x)) in the xy-plane, where we restrict the values of x to lie in the domain of f. The following diagram illustrates the graph of a function ![]() Vertical Line Test
|
Example
To get the graph of
![]() There is nothing to the left of the y-axis, since we have restricted x to be ≥ 0. |
|||||||||||||||||||||||||||||||||||||||||||
|
Linear Functions
A linear function is a function of the form
with m and b being fixed numbers (the names 'm' and 'b' are traditional). Role of m: If y = mx + b, then:
Role of b: When x = 0, y = b (Equation form), or f(0) = b (Function form) |
Examples
The function
The following equations can be solved for y as linear functions of x.
|
|||||||||||||||||||||||||||||||||||||||||||
|
Straight Lines
The graph of a linear equation or function is a straight line. The slope of the line through (x1, y1) and (x2, y2) is given by the formula
The graph of the linear function
is a line with slope m and y-intercept b. |
Examples
The slope of the line through (2, -3) and (1, 2) is given by
To see how to sketch the graph of a linear function, see the next item |
|||||||||||||||||||||||||||||||||||||||||||
|
Sketching the Graph of a Linear Function
There are two good ways to sketch the graph of a linear function. (a) Put the function in y = mx+b form, and draw the line with y-intercept b and slope m. (b) Find the x- and y-intercepts and draw the line going through those two points. To find the x-intercept of a line, set y = 0 in its equation and solve for x. To find the y-intercept, set x = 0 and solve for y. This method works only if the line does not pass through the origin. If it does, then you will need to plot an extra point or use the first method. |
Examples
Here are the these techniques applied to the line with equation 2x - 3y = -6. (a) Solving for y, we get y = 2x/3 + 2. Thus, the slope is 2/3 and the y-intercept is 2. The following figure shows two stages of drawing its graph.
(b) To get the x-intercept, set y = 0. The equation becomes 2x - 3(0) = -6, giving x = -3. This is the x-intercept. To get the y-intercept, set x = 0, to obtain 2(0) - 3y = -6, giving y = 2. The following figure shows two stages of drawing its graph.
|
|||||||||||||||||||||||||||||||||||||||||||
|
Fitting a Linear Equation to Data: How to Make a Linear Model
Point-Slope Formula: An equation of the line through the point (x1, y1) with slope m is given by
When to Apply the Point-Slope Formula
Horizontal and Vertical Lines An equation of the horizontal line through (x1, y1) is
An equation of the vertical line through (x1, y1) is
|
Examples
An equation of the line through (1, 2) with slope -5 is given by
An equation of the horizontal line through (3, -4) is given by
An equation of the vertical line through (3, -4) is given by
|
|||||||||||||||||||||||||||||||||||||||||||
|
Interpretation of the Slope in Applications
The slope of the line y = mx + b is the rate at which y is changing per unit of change in x. The units of measurement of the slope are units of y per unit of x If y is displacement and x is time, then the slope represents velocity. Its units are units of displacement per unit time (for example, meters per second) If y is cost and x is the number of items, then the slope represents marginal cost. Its units are units of cost per item (for example, Eurodollars per item). |
Example
The number of web pages in this site is given by the equation
|
|||||||||||||||||||||||||||||||||||||||||||
|
Cost, Revenue and Profit
A cost function C gives the cost C(x) as a function of the number of items x. A linear cost function has the form
where m is the marginal cost, and b is the fixed cost. A revenue function R gives the total revenue R(x) from the sale of x items. A profit function P gives the total profit P(x) from the sale of x items. The profit, cost and revenue functions are related by the formula
Break-even occurs when
or equivalently when
|
Example
If the fixed cost is $400, the marginal cost is $40 per item, and you sell the items at $60 per item, then
R(x) = 60x P(x) = R(x) - C(x) = 60x - (40x + 400) = 20x - 400.
20x - 400 = 0, |
|||||||||||||||||||||||||||||||||||||||||||
|
Demand and Revenue
A linear demand equation has the form q = mp + b, where q is the demand (number of items sold) and p is the price per item. One can construct a linear demand equation from a knowledge of the demand at two different prices. The revenue is given by
One can specify revenue as a function of p alone by using a demand equation to substitute for q. |
Example
If you sell 100 T-shirts per week when the price is $10, and 200 per week when you lower the price to $8, then the demand equation is
= -50p2 + 600p. |
|||||||||||||||||||||||||||||||||||||||||||
|
Linear Regression
Observed and Predicted Values Suppose we are given a collection of data points (x1, y1), ..., (xn, yn). The n quantities y1, y2, ..., yn are called the observed y values. If we model these data with a linear equation
Residuals and Sum-of-Squares Error (SSE) If we model a collection of data (x1, y1), ... , (xn, yn) with a linear equation as above, then the residuals are the n quantities (Actual Value - Predicted Value):
The sum-of-squares error (SSE) is the sum of the squares of the residuals:
Regression Line The regression line (least squares line, best-fit line) associated with the points (x1, y1), (x2, y2), . . ., (xn, yn) is the line that gives the minimum value for SSE. The regression line has the form
where
Try the on-line regression utility if you want to see regression at work. |
Examples
Observed and Predicted Values For the three data points (0, 2), (2, 5), and (4, 6), the observed y values are y1 = 2, y2 = 5, and y3 = 6. If we model these data with the equation
Residuals and Sum-of-Squares Error (SSE) For the three data points (0, 2), (2, 5), and (4, 6) and linear model 2x + 1.5 as given above, the residuals are: The sum-of-squares error is obtained by squaring and adding the answers:
|