|
||
|
|
|
|
What is a function? How do we define functions? According to the American Heritage Dictionary a function is
Examples: social security numbers (<-> people), income tax (domain= taxable income), sales tax (domain= taxable purchase), shoe size (domain = foot length), population (domain = time span), area of a field (domain = length-width pair), area or circumference of a circle (domain = radius or diameter of circle), length of side of square (domain = area of square) How do we define functions? In the case of functions like the people-social security number function, the function is defined by means of a table that lists the person's name and the assigned number. (Note that telephone numbers are not a function of people because one person can have several phone numbers but we can have a function that assigns each household to a phone number—the phone company does this when it creates the bill for a phone number). Sales tax is given by means of a table and there are income tax tables. We can define a function by giving a specific rule. The rule can be simple: the area of a square is the square of the length of one side (A = s2); area of a circle is A = Pi(r2). It can also be complex: Federal income tax (for some people): for single people the rule states if taxable income (TI) is over $0 but not over $24,650, tax is 15% of TI; if TI is over $24,650 but not over $59,750 tax is $3,697.50 + 28% of amount over $24,650; if TI is over $59,750 but not over $124,650, tax is $13,525.50 + 31% of amount over $59,750; if TI is over $124,650 but not over $271,050, tax is $33,644.50 + 36% of amount over $124,650; if TI is over $271,050, tax is $86,348.50 + 39.6% of amount over $271,050. Income tax is actually determined by a combination of tables (TI under $100,000) and rules (TI at least $100,000). We can define a function by drawing a graph. Electrocardiograms and EEGs are functions of time that are given as graphs; temperature during the day, height of the weight on a spring (as a function of time) can be shown with graphs. A function is a relationship, a rule of correspondence, between two sets, the domain D and the codomain R, such that each element of the domain D corresponds (is assigned to) a unique element of R. The domain of a function is the set of inputs that make sense for the function. The range is the set of outputs that can be expected from the function. Typically the values in the domain are denoted by letters like t or x. This letter (which stands for the elements of the domain) is called the independent variable. The letter used to denote the elements of the second set R (sometimes called the codomain) is the dependent variable (because its value depends on the choice of the element from D). We can use function notation to give the function a name and to state clearly what the independent variable will be. For example for the area of a square we can write A(s) = s2. A woman's shoe size is given by the rule s(x) = 3x - 21, where x is the length of the woman's foot. We could also write s(#) ) = 3# - 21 or shoe(w) = 3w - 21. There is a problem with the shoe function. Shoes do not come in an infinite number of sizes. Women's shoes come in half sizes beginning with a size 5. What length foot should fit in a size 5 shoe? What would you have to do if your foot is smaller than that? What would be a reasonable domain for the shoe function? What is the corresponding range? The shoe function, sales tax function, and income tax functions are all examples of functions with discrete variables. A variable is discrete if distinct values are separated from one another by intervals. In the case of the shoe function, the shoe size, which is the dependent variable, is a discrete variable. It comes only in half units: 5, 51/2, 6, 61/2, etc. In the case of the sales tax and the income tax functions both of the variables are discrete: a penny is the smallest unit of money that we can use. In the case of the shoe function the length of the foot varies continuously between about 8 and 12 inches. The only limitation is the accuracy of our measurement. Another function which has a continuous independent variable and a discrete dependent variable is the postage function which assigns the cost of the postage to the weight of a letter (if the letter weighs more than 0 ounces but not more than 1 ounce a stamp costs 32˘, for each additional ounce you add 23˘ in postage). We could write
32 for 0 < w <= 1
stamp(w) = 55 for 1 < w <= 2
78 for 2 < w <= 3
etc.
where w is the weight of the letter
This is an example of a step function (as is the true shoe function) Problem 1. Quad is defined by this formula: Quad(#) = 100 + 21# – #^2
Problem 2. Find the domain and range of each function:
Problem 3. What are the graphs for the following functions:
|
|
||||||||