




Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
An introduction to functions, including their definition, piecewise definitions, difference quotient, and domain. Functions are rules that assign exactly one element in a set to each element in another set. examples of functions, such as a car's distance traveled as a function of time and the volume of a cylindrical glass as a function of height. The document also covers the difference quotient, which is important when learning about derivatives.
Typology: Schemes and Mind Maps
1 / 8
This page cannot be seen from the preview
Don't miss anything!
Lecture 10: What is a Function, definition, piecewise defined functions, difference quotient, domain of a function
A function arises when one quantity depends on another. Many everyday relationships between variables can be expressed in this form.
Example 1 We have already seen examples of functions in our lecture on lines. For example, if a car leaves Mathville at 1:00 p.m. and travels at a constant speed of 60 miles per hour for two hours, then the distance in miles traveled by the car after t hours(D) (assuming it has not stopped along the way or changed speed) depends on the time, or is a function of time (t) = t hours:
D = D(t) = 60t for 0 ≤ t ≤ 2
We can use this general formula to calculate how far the car has traveled at any given time t. For example after 1/2 hour (t = 1/2) the car has traveled a distance of D = 60^12 = 30 miles.
Here is another everyday example of a function.
Example Consider the volume of a cylindrical glass with radius = 1 inch. We have a formula for the volume; V = πr^2 h = πh in^3 , where h is the height of the glass in inches and r = 1 is the radius. We see that the value of the volume depends on the height, h; V is a function of h. We sometimes indicate that the value of V depends on the value of h, by writing the formula as V (h) = πh in^3.
When h = 2, V = V (2) = and when h = 3, V = V (3) =
In this section, we will examine the definition and general principles of functions and look at examples of functions which are more complex than lines.
Definition of a Function A function is a map or a rule which assigns to each element x of a set A exactly one element called f (x) in a set B.
Example The rule which assigns to each real number its square is a function. We have A = (−∞, ∞) or the set of all real numbers. Since the square of a real number is a real number, we have B is also the set of real numbers. If x is an element of A, this rule assigns the element f (x) = x^2 in B to x. If x = −2, the f (−2) = (−2)^2 = 4. In short, this is the map or rule which sends x to x^2.
range of f = {f (x)|x ∈ A}
In the example shown above where f (x) = x^2 , we see that the values of f (x) = x^2 are alwys ≥ 0. Furthermore, every positive number is a square of some number, so the range of f here is the set of all real numbers which are ≥ 0.
x !x^2
B = Real Numbers
3
1
9
1 0
2 0
A = Real Numbers
4
For every element, x, in the domain of the function we have exactly one arrow leaving the point representing that element, indicating that the function can be applied to any element in the domain and we get exactly one value in B when we apply the function to x. On the other hand, an element in the set B can have 0 , 1 or more than one arrow pointing towards it. If the element is not in the range, it has no arrows arriving at it, if it is in the range it has at least one arrow arriving at it. Note that in our example, we have two arrows arriving at 4 in the set B because the values of f at (−2) and 2 are both 4, i.e. f (−2) = f (2) = 4.
Example Lets summarize what we know about our example above where our function is the rule which send any value x from the real numbers to the value x^2.
f (−1) = (−1)^2 = 1, f (0) = 0^2 = 0, f (1/2) = (1/2)^2 = 1/ 4.
The Cost of Parking is a function of the amount of time the car spends in the lot. If we are to create a formula for the cost of parking = C, in terms of how long our car stays in the lot = t, we need to give the formula piece by piece as follows:
C(t) =
$0 0 ≤ t ≤ 0. 5 hr. $2 0. 5 hr. < t ≤ 1 hr. $4 1 hr. < t ≤ 2 hr. $6 2 hr. < t ≤ 3 hr. $8 3 hr. < t ≤ 4 hr. $10 4 hr. < t ≤ 5 hr. $12 5 hr. < t ≤ 6 hr. $13 6 hr. < t ≤ 24 hr. $13 + cost of towing t > 24 hr.
If you were figuring out how much you needed to pay using this description of the function, you would first figure out which category you were in (how long you had parked for) and then note the cost for cars in that category. We proceed in the same way if we are given the formula for any piecewise defined function.
Example Let
g(x) =
x + 1 if x > 1 x^2 if − 1 ≤ x ≤ 1 4 if x < − 1
Evaluate the following
g(−2), g(0), g(3/2), g(10).
The Difference Quotient
When we wish to derive general formulas in mathematics, we have to use general variables to represent values in a function so that we can prove a result for all values in the domain. This means that we often have to evaluate the function at some combination of abstract values, such as a, a + h, like the ones shown below as opposed to evaluating the function at concrete values such as −1, 0 etc.... Here are some examples of such calculations. The difference quotient
f (a + h) − f (a) h
is particularly important when learning about derivatives.
Example Let f (x) = x^2 + 2 and let a be any real number and h a real number where h 6 = 0. Evaluate
Evaluate f^ (a+h h)− f^ (a) when a = 2
Evaluate f^ (a+h h)− f^ (a) when h = 0. 1
Evaluate f^ (a+h h)− f^ (a) when a = 2 and h = 0.1.
Example Let k(x) = 2x + 1. Evaluate
k(a + h) − k(a) h
where a is any real number and h a real number
where h 6 = 0.
Example Let
g(x) =
x + 1 if x > 1 x^2 if − 1 ≤ x ≤ 1 4 if x < − 1
(a) Evaluate
g(0 + h) − g(0) h
for values of h for which |h| < 1 and h 6 = 0.
Example Find the domain of the following function:
R(x) =
x − 1 x − 2
Example Find the domain of the following function:
R(x) =
x^2 + 11 x^2 + 3x − 10
Domains of common functions It is good to keep the domains of the following functions in mind: Function Domain xn, n ∈ N all x ∈ R
1 xn^
, n ∈ N {x ∈ R|x 6 = 0}
√ nx, n ∈ N, n even {x ∈ R|x ≥ 0 }
√ nx, n ∈ N, n odd all x ∈ R
Modeling with functions
Example: Income Tax In a certain country, income tax T is assessed according to the following function of income x:
T (x) =
0 if 0 ≤ x ≤ 10 , 000
(a) Find T (5, 000), T (12, 000) and T (25, 000).
(b) What do your answers in part (a) represent?