SCHOOL OF BUSINESS, ECONOMICS AND MANAGEMENT BUSINESS MATHEMATICS / MATHEMATICAL ANALYSIS UNIT 3 Moses Mwale e-mail: moses.mwale@ictar.ac.zm BBA 120 Business Mathematics Contents Unit 3: Functions and Graphs 3 3.0 Functions ..................................................................................................................... 3 3.1 Inverse Functions .............................................................................................. 4 Example ................................................................................................. 4 Practice Problems .................................................................................. 5 3.2 Composite Functions. ........................................................................................ 5 3.3 Special Functions .............................................................................................. 8 3.3.1 Constant Functions................................................................................ 8 3.3.2 Polynomial Functions ........................................................................... 8 3.3.3 Rational Functions ................................................................................ 9 3.3.4 Compound Functions ............................................................................ 9 Example ............................................................................................... 10 3.3.5 Absolute Value Function ................................................................... 10 Example ............................................................................................... 10 BBA 120 Business Mathematics Unit 3: Functions and Graphs 3.0 Functions Given two arbitrary sets X and Y, a function from X to Y is a rule which assigns one member of Y to each member of X. Notation A function f with domain X and codomain Y is commonly denoted by π: π → π or The above diagram represents a function with domain {1, 2, 3}, codomain {A, B, C, D}. π π→π In our function above, the elements of X are called arguments of f. ο· the set "X" is called the Domain, ο· the set "Y" is called the Codomain, and ο· the set of elements that get pointed to in Y (the actual values produced by the function) is called the Range. For each argument x, the corresponding unique y in the codomain is called the function value at x or the image of x under f. It is written as f(x). However this second diagram does not represent a function since 2 is the first element in more than one ordered pair. One says that f associates y with x or maps x to y. This is abbreviated by π¦ = π(π₯) Example If X and Y are both the set β, the rule which says ‘multiply by 2’ is a function. Normally we express this function by a formula. If we call the function f we can write the rule which define π(π₯) = 2π₯. It is worth noting that when we can define f in this way the π₯ is a ‘dummy variables, the function could equally well be defined by writing π(π¦) = 2π¦, or π(π‘) = 2π‘ or even π(ππππ) = 2ππππ. The point is that f is the function which doubles any value. The symbol used to denote a typical real number in the domain of a function is called the independent variable. The symbol used to denote the typical real number in the range is called the dependent variable. 3 4 Unit 3: Functions and Graphs It is often helpful to think of a function as a ‘black box’ which converts an input into output (Figure 3.1). If the name of the function is π then π(π₯) is the output corresponding to a given input π₯. The box may represent any rule such as ‘multiply by 2’, or ‘add 23’, or ‘square’, provided. Only that for each input there is a unique, welldefined output. π₯ Figure 3.1: π(π₯) π Diagrammatic representation of a function. The diagram is useful because it stresses that a function is a one-way relationship, signified by the direction of the arrows. Sometimes it may not be possible to reverse the arrows that is, the output may not determine the input. For example, if the function if the ‘square’ function, so that π(π₯) = π₯ 2 , and the ‘output’ of the box is 4, we do not know whether the input was 2 or ο2, either of which would give the same value. 3.1 Inverse Functions If πis a function for which it is possible to reverse the arrows, the resulting ‘reverse’ function is called the Inverse function for π and is denoted by π −1 so if, then π₯ = π −1 (π¦) π₯ π¦ π π¦ π −1 Figure 3.2. A function and its inverse. Example Suppose f is given by the formula π(π₯) = 2π₯ + 7 so that when the input is x the output is π¦ = 2π₯ + 7. To obtain a formula for the inverse function we have to find out what value of x will give a particular y, and we can do this simply by 7 reorganizing the equation π¦ = 2π₯ + 7 into the form π₯ = (π¦ − 2). This uniquely determines x in terms of y, so here we have the inverse function π −1 given by the formula. 7 π −1 (π¦) = (π¦ − 2) π₯ BBA 120 Business Mathematics Note that if f and g are functions such that g is the inverse of f, then f is the inverse of g. For π¦ = π(π₯) if and only if π₯ = π(π¦) by the definition of π = π −1 . Here π₯ and π¦ are any values, and their names are irrelevant. So we may interchange the names, giving π¦ = π(π₯) if and only if π₯ = π(π¦) and this is just the condition that π = π−1 . If π has an inverse function π −1 , one can think of π −1 as the ’undoing’ of π in the sense that if we take π₯ and form π¦ = π(π₯) and then apply π −1 to, π¦ we obtain π₯ again. For example, consider again the previous example. Here 7 f ( x) ο½ 2 x ο½ 7 and f ο1 ( y ) ο½ ( y ο ). 2 For any π −1 (π(π₯)) = π −1 (2π₯ + 7) = (2π₯ + 7) − 7 2π₯ = =π₯ 2 2 Thus, for any π₯, π −1 (π(π₯)) = π₯ , The observation just made concerns following the action of π by that of π −1 . The notion of apply one function directly to the output of another is an important one and can be made precise, as follows. Practice Problems 1. Given π(π₯) = 3π₯ − 2 find π −1 (π₯) 2. Given π(π₯) = √π₯ − 3 find , π−1 (π₯) π₯+4 3. Given β(π₯) = 2π₯−5 find β−1 (π₯). 3.2 Composite Functions. Composition functions are used to combine the two functions. If A, B and C be any three sets and π: π΄ → π΅ and π: π΅ → πΆ be any two functions, then the domain of g is the co-domain of π. 5 6 Unit 3: Functions and Graphs The composition of functions f and g is denoted by "π π π" or we can say that the function g o f is called the composition of two functions f and g. Definition Let π: π΄ → π΅ and π: π΅ → πΆ be two functions. Then, the composition of functions f and g denoted by "g o f". π o π is read as π of π. The new function (π π π): π΄ → πΆ such that (π π π) (π) = π(π(π)) for all π ∈ π΄. Here, π(π) is an element of B. Therefore, π(π(π)) is meaningful. The function π π π: π΄ → πΆ given by π π π(π) = π(π(π)) for all "a" belongs to A. This is illustrated in the diagram below Figure 3.3: A composite Function. A composite function is sometimes called ‘function of a function’. Given three functions π, π, β, the composite π β π β β, is defined to be π(π β β). In other words, we first form β followed by π and then form the composite of this function (π β β). followed by π. Note that composition of a function is an associative operation. Examples: 1. Let A = {1, 2}, B = {3, 4} and C = {5, 6} and π: π΄ → π΅ and π: π΅ → πΆ such that f(1) = 3, f(2) = 4, g(3) = 5, g(4) = 6. Find g o f. Solution: BBA 120 Business Mathematics g o f is a function from A → C. Identify the images of elements of A under the function g o f. Domain for g = {f(1), f(2)} (g o f) (1) = g(f(1)) = g(3) = 5 (g o f) (2) = g(f(2)) = g(4) = 6 i.e. image of 1 is 5 and image of 2 is 6 under g o f. That is, g o f = {(1, 5), (2, 6)}. 2. The two functions f, g are defined by π(π₯) = π₯ 2 + 1, π(π₯) = π₯ − 1. Find π π π and π π π and show that π π π ≠ π π π. Solution: Given functions are f(x) = x2 + 1, g(x) = x - 1 (f o g) (x) = f(g(x)) = f(x - 1) = (x - 1)2 + 1 = x2 - 2x + 2 (g o f) (x) = g(f(x)) = g(x2 + 1) = (x2 + 1) - 1 = x2 Thus, (f o g) (x) = x2 - 2x + 2 (g o f) (x) = x2 fog≠gof 3. The two function f and g are f(x) = 3x, g(x) = x + 1. Find g o f. Solution: Given f(x) = 3x, g(x) = x + 1 g o f = g(f(x) = g(3x) = 3x + 1 g o f = 3x + 1 7 8 Unit 3: Functions and Graphs Example Suppose that 3 f ( x) ο½ 1 , g ( x) ο½ x 2 and h( x) ο½ x 2 ο« 2 x ο« 3. Then x 3 2 3 2 ( g ο― h)( x) ο½ g ( x ο« 2 x ο« 3) ο½ ( x ο« 2 x ο« 3) and ( f ο― g ο― h)( x) ο½ f ( x ο« 2 x ο« 3) ) 2 2 1 ο½ ( x ο« 2 x ο« 3) 2 3 2 3.3 Special Functions 3.3.1 Constant Functions Let β(π₯) = 2. The domain of β is all real numbers. All function values are 2. For example β(10) = 2, β(−328) = 2, β(π₯ + 3) = 2 We call β a constant function because all the function values are the same. More generally, we have this definition. A function of the form β(π₯) = π where C is a constant function is called a constant function. 3.3.2 Polynomial Functions A constant function belongs to a broader class of functions, called polynomial functions. In general, a function of the form π(π₯) = πΆπ π₯ π + πΆπ−1 π₯ π−1 + β― + πΆ1 π₯ + πΆ0 , where n is a nonnegative integer and πΆπ , πΆπ−1 … πΆ0 are constants with πΆπ ≠ 0 is called a polynomial function (in π₯). The number π is called the degree of polynomial, and πΆπ is the leading coefficient. Thus π(π₯) = 3π₯ 2 − 8π₯ + 9 is a polynomial function of degree 2 with leading coefficient 3. Likewise π(π₯) = 4 − 2π₯ has degree 1 and leading coefficient ο2. Polynomial functions of degree 1 or 2 are called linear or quadratic functions, respectively. Hence π(π₯) = 4 − 2π₯ is linear and π(π₯) = 3π₯ 2 − 8π₯ + 9 is quadratic. 2 BBA 120 Business Mathematics Note that a nonzero constant function such as π(π₯) = 5 [which can be written as (π₯) = 5π₯ 0 ], is a polynomial function of degree 0. Examples a. π(π₯) = π₯ 3 − 6π₯ 2 + 7 is a polynomial (function) of degree 3 with leading coefficient 1. b. π(π₯) = 2π₯ 3 2 is a linear function with leading coefficient 3. 2 c. π(π₯) = π₯ 3 is not a polynomial function, because π(π₯) = 2π₯ −3 and the exponent for π₯ is not a nonnegative integer. 1 Similarly, π(π₯) = √π₯ is not a polynomial because π(π₯) = π₯ 2 3.3.3 Rational Functions π A function written in the form of π is called rational function, π(π₯) = π(π₯) , π(π₯) where π(π₯) and π(π₯) are polynomial functions. Example a) π(π₯) = π₯ 2 −6π₯ π₯+5 Note that this rational function is not defined for π₯ = −5 , since division by 0 is not defined. b) π(π₯) = 2π₯ + 3 is a rational function since 2π₯+3 1 = 2π₯ + 3 In fact, every polynomial function is also a rational function. 3.3.4 Compound Functions 1, if ο 1 ο£ s οΌ 1 Let f ( s ) ο½ 0 If 1 ο£ s ο£ 2 s ο 3, if 2 οΌ s ο£ 8 This is called a compound function because the rule for this function is given by more than one expression. Here π is the independent variable and the domain π is all π such that −1 ≤ π ≤ 8 9 10 Unit 3: Functions and Graphs Example Find π(0), π(2) and π(7) Answers π(0) and π(2) = 0, π(7) = 4 3.3.5 Absolute Value Function The function π(π₯) = |π₯| is called the absolute value function. Recall that the absolute value or magnitude, if a real number π₯ is denoted |π₯| and is defined by x x, if x ο³ 0 ο½ ο x, if x οΌ 0 Thus the domain of π is all real numbers. Some function values are: f (16) ο½ 16 ο½ 16 ο¦ ο 4οΆ ο 4 ο¦ ο 4οΆ 4 fο§ ο½ οο§ ο·ο½ ο·ο½ 3 ο¨ 3 οΈ ο¨ 3 οΈ 3 f (0) ο½ 0 ο½ 0 Example Solve |π₯ − 3| = 2 solving this gives π₯ = 5 ππ 1 Exercise 1. Using the graph of the function f: BBA 120 Business Mathematics (a) Find the domain and the range of π (b) List the intercepts. (c) Find π(1) (d) For what value(s) of x does π(π₯) = −3? (e) Solve π(π₯) < 0 2. Consider the function π(π₯) = { 2π₯ + 1 π₯−4 ππ π₯ < −1 ππ π₯ ≥ −1 (a) Graph the function. (b) List the intercepts. (c) Find π(−5) (d) Find π(2) 3. For the function π(π₯) = 3π₯ 2 − 2π₯ + 4, find the average rate of change of f from 3 to 4. 4. For the functions π(π₯) = 2π₯ 2 + 1 and π(π₯) = 3π₯ − 2, find the following and simplify: (a) π − π (b) π β π (c) π(π₯ + β) − π(π₯) 5. Graph each function using the techniques of shifting, compressing or stretching, and reflections. Start with the graph of the basic function and show all stages. (a) β(π₯) = −2(π₯ + 1)3 + 3 (b) π(π₯) = |π₯ + 4| + 2 6. The variable interest rate on a student loan changes each July 1 based on the bank prime loan rate. For the years 1992–2007, this rate can be approximated by the model π(π₯) = −0.115π₯ 2 + 1.183π₯ + 5.623, where x is the number of years since 1992 and r is the interest rate as a percent. (a) Use a graphing utility to estimate the highest rate during this time period. During which year was the interest rate the highest? (b) Use the model to estimate the rate in 2010. Does this value seem reasonable? 7. Imagine a dance at which there are 15 boys and 15 girls. Every boy writes his name on a slip of paper, and then puts the slip into a jar. (No two boys have the same name.) The girls pick slips out of the jar, one at a time and one for each girl, to determine who their dance partner will be. If we think of this action as a mapping from the set of boys to the set of girls, what type of mapping is this? 8. Imagine another dance at which there are 10 boys and 15 girls. Every girl writes her name on a slip of paper, and then puts the slip into a jar. (No two girls have the same name.) The boys pick slips out of the jar, with every other 11 12 Unit 3: Functions and Graphs boy taking two slips instead of only one, so all the slips get taken. This determines how the dance partners will be assigned. Five of the boys end up dancing with one girl, but the other five have to contend with two girls! If we think of this action as a mapping from the set of boys to the set of girls, what type of mapping is it?