CLEP College Algebra/Functions

From testwiki
Revision as of 02:06, 25 January 2022 by imported>Musical Inquisit (Summary of the Set Definitions of Functions: Included symbolic definitions.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

In math, it is often important to describe how a certain set of input from some certain operation can at some point represent the output of such operations. The tool math has created for this regard is called the function. The formal definition of a function can perhaps be a very tricky obstacle to grasp fully, and the best way to understand it is to perhaps use the intuitive concepts in practicum (as a preliminary step towards the goal, understanding). Therefore, we will begin this chapter by giving an intuition behind the processing.

The Intuitive Uses and Definition of Functions

You can think of a function as a kind of machine. You feed the machine raw materials (as an input), and the machine changes the raw materials into a finished product (the output). Let us describe a cook as a function. Handing a piece of lettuce to the cook would result in chopped lettuces as the output. The output is minced lettuces. A function in mathematics is somewhat equivalent. This viewpoint can get us far enough to at least understand its real-life applications. Template:ExampleRobox Think about dropping a ball from a bridge. At each moment in time, the ball has a velocity, 𝐯. The velocity of the ball is a function of time. This type of function is called real-valued since the "finished product" is a number (or, more specifically, a real number). Template:Robox/Close

Template:ExampleRobox Imagine the mean temperature of a river deviates everyday by 4 F. If the temperature of the river is sampled everyday, with n=30 samples per day, and the population mean of all the samples collected is μ while the deviation σ=4 F, then one way we can reflect the distribution of the temperature of the river is by using the Normal (or "Gaussian") function, which is written here below:

φ(x)=1σ2πe12(xμσ)2

If instead, the river only ever deviates 4 F from the mean, then one could write it in terms of absolute values:

|xμ|=4=T(x)

Either way, a function is used in everyday life. Template:Robox/Close Think of a real-valued function as an input-output machine; you give the function an input, and it gives you an output which is a number (more specifically, a real number). For example, the squaring function takes the input 4 and gives the output value 16. The same squaring function takes the input 1 and gives the output value 1.

There are many ways which people describe functions. In the first example, a verbal descriptions is given (the height of the ball above the earth as a function of time). In the second example, some different operations of certain functions are given. The specifics of using operations to describe functions are given below:

  1. A function is given a name (such as f) and a formula for the function is also given. For example, f(x)=3x+2 describes a function. We refer to the input as the argument of the function (or the independent variable), and to the output as the value of the function at the given argument. (Note: more on this notation is described in the next section.)
  2. A function is described using an equation and two variables. One variable is for the input of the function and one is for the output of the function. The variable for the input is called the independent variable. The variable for the output is called the dependent variable. For example, y=3x+2 describes a function. The dependent variable appears by itself on the left hand side of equal sign.

When a function is given a name (like in number 1 above), the name of the function is usually a single letter of the alphabet (such as f or g). Some functions have names that are multiple letters (like the sine function y=sin(x).

Let us practice assigning a function using the second method described above by revisiting the first example again: Template:ExampleRobox Imagine, as a physicist, you were asked to describe the velocity as a function of height. Here is what may be best described (using energy equations):

  • At time t=0, the position of the ball is at a maximal height, h=H>0.
  • At time t=T (the impact time), the ball is at a minimal height, h=0 (by assumption).
  • In between, the ball's velocity is changing. Assume an initial horizontal and vertical velocity of v0x=0 and v0y=0, respectively (this is true because we dropped the ball). The horizontal velocity does not change (assuming no air resistance), but the vertical velocity decreases. The final vertical velocity therefore is vy<0. As such, we need to only look at the vertical velocity.

The above information allows us to approximate the ball's velocity as a function of height:

𝐯(h)=2gh, where g=9.81ms2.

Template:Robox/Close The above equation is an example of a special type of function called a composite function. This function will be explained in much more detail later. For now, an intuition is all that is needed.

Hopefully, an intuition has begun forming inside the mind of the student. Let us see how to evaluate functions at certain inputs now. Template:ExampleRobox If we write f(x)=3x+2 , then we know that

  • f is a function of x.
  • To evaluate the function at a certain number, simply substitute the x with that number.
  • Replacing x with that number in the right side of the function will produce the function's output for that certain input.
  • In English, the definition of f is interpreted, "Given a number, f will return two more than thrice the input."

Based on the above bullet points, the way to evaluate a function at a certain point is

f(3)=3(3)+2=9+2=11

Therefore, the value of f(3) is

f(3)=11. The value of f at 3 is 11.

Note that f(3) means the value of the dependent variable when x (the independent variable) takes on the value of 3. So we see that the number 11 is the output of the function when we give the number 3 as the input. People often summarize the work above by writing "the value of f at three is eleven", or simply "f of three equals eleven".Template:Robox/Close

Template:ExampleRobox Let us return to the function we derived in Example 1.1(c). With the function 𝐯(h)=2gh, where g=9.81ms2, we know the following is true:

  • Velocity 𝐯 is a function of height, h.
  • In English, the definition of 𝐯 is interpreted, "Given a height above the ground, 𝐯 will return the velocity of the ball based on the square root of the product of twice the gravitational constant and the height."

When working with functions that is founded in real-life applications, it is important to also keep in mind units. Since SI units are used, and the gravitation constant g is in meters per second-squared, the height will be in meters. We want to know what the velocity is if the ball is halfway between the bridge and the ground, h=H2. Assume H=9.0 m. Let us begin evaluating the function:

𝐯(92)=2g(9.02)=g9.0=3.09.819.4ms

Therefore, the value of 𝐯(4.5) is

𝐯(4.5)9.4ms. The value of 𝐯 at 4.5 is 9.4ms. Quite the large increase in speed from 0 meters per second!Template:Robox/Close

A Note on Notation

Functions are used so much that there is a special notation for them. The notation is somewhat ambiguous, so familiarity with it is important in order to understand the intention of an equation or formula.

Though there are no strict rules for naming a function, it is standard practice to use the letters f , g , and h to denote functions, and the variable x to denote an independent variable. y is used for both dependent and independent variables.

When discussing or working with a function f , it's important to know not only the function, but also its independent variable x . Thus, when referring to a function f, you usually do not write f, but instead f(x) . The function is now referred to as "f of x". The name of the function is adjacent to the independent variable (in parentheses). This is useful for indicating the value of the function at a particular value of the independent variable. For instance, if

f(x)=7x+1,

and if we want to use the value of f for x when x is equal to 2, then we would substitute 2 for x on both sides of the definition above and write

f(2)=7(2)+1=14+1=15

This notation is more informative than leaving off the independent variable and writing simply f, but can be ambiguous since the parentheses next to f can be misinterpreted as multiplication, 2f. To make sure no person is confused by notation accidentally, follow this procedure:

  1. Define the function f by equating it to some expression.
  2. Give a sentence like the following: "At x=c, the function f is..."
  3. Evaluate the function.

This procedure can change if the student is doing a multiple choice exam since communication is not important in that context.

Formalizing the Intuition

As of now, the definition below should not make too much sense. Read the definition so that you may see where the we gain the understanding of the mapping. Template:Calculus/Def For now, analyze the definition. Take notice at the implication of an element in the range being found through the correspondence of the element mapping from the domain. An example of how is given below. Template:ExampleRobox In mathematics, it is important to notice any repetition. If something seems to repeat, keep a note of that in the back of your mind somewhere.

Here, notice that f(x)=5x+5x2 and f(x)=22512. Because f(x) is equal to two different things, it must be the case that the other side of the equal sign to f(x) is equal to the other. This property is known as the transitive property (always remember the Properties of Real Numbers):

22512=5x+5x2

Next, simplify — make your life easier rather than harder. In this instance, since 5x+5x2 has x as a like-term, and the two terms are fractions added to the other, put it over a common denominator and simplify. Similar, since 22512 is a mixed fraction, 22512=225+12.

22512=5x+5x2
2251+12=5x1+5x2
4502+12=10x2+5x2
4512=15x2

Multiply both sides by the reciprocal of the coefficient of x, 215 from both sides by multiplying by it.

2154512=x
45115=x or x=45115.

The value of x that makes f(x)=22512 is x=45115.. Template:Robox/Close Classically, the element "picked" from the domain is pictured as something that is fed into the function (the input) and the corresponding element in the range is pictured as the output. Notice the specificity of the language herein: an input is selected from the domain, meaning the domain is the set of all inputs; an output results from that specific input, meaning the range is the set of all possible outputs.

Since we "pick" the element in the domain whose corresponding element in the range we want to find, we have control over what element we pick and hence this element is also known as the "independent variable". The element in the range is beyond our control and is "mapped to" by the function. This element is hence also known as the "dependent variable", for it depends on which independent variable we pick. Since it is an element, the input is also known as the independent variable. Similar, the output is also known as the dependent variable.

The intuition of functions is better to grasp at first (for most students). However, the importance by which the formal definition of functions are to the foundations of algebra as we know it means that the formal definition should be viewed in high regards. Nevertheless, this does not mean that an intuition is unnecessary or even detrimental. Rather, students should be able to understand both viewpoints, and be able to relate them. As such, we argue that students should hold on to both viewpoints.

To recap, a function f is a mapping of some element xA, called the domain, to exactly one element yB, called the range, such that f:AB. The image below should help explain the modern definition of a function:

The image demonstrates a mapping of some element a (the circle) in A (the set), the domain, to exactly one element b in the set B, the range.
The set A (the domain) mapping each element a into the set B for its corresponding element b.

The Foundations of Functions: The Mapping, the Cartesian Cross Product, and Ordered Pairs

Now that we understand the set, we will begin understanding the fundamental property of the function (the mapping). However, how do elements "map" to another set? It would be when the combination is "tied" to another element. Defining "tied" would be tricky without the help of sets. However, the set nicely defines tying, and it is through ordered pairs. Template:Calculus/Def The logic in this is that the sets contained within are an element that is dependent on the order of the written pairs. Because {a,b} uses both elements, the set gives the second coordinate based on the order of written pairs. However, this definition does not hold for b=a, since it evaluates to give (a,a)={a}, which does not give an accurate reading of the second coordinate. However, this definition is good enough for the purposes of this textbook. Plus, the knowledge described herein is typically not taught in a College Algebra course. Template:Calculus/Def The nature of the Cartesian Cross Product is hopefully self-evident. When two sets are combined as such, the ordered pair results. This is very close to the definition of the function. After all, the subset of this product is the function (for the most part). Template:Calculus/Def All the above definition is saying is that given the cartesian cross product of the sets, called the domain and range, there exists a relation of the ordered pair (x,y) that relates the domain to the range. For this book, the first notation (f:AB) is preferred.

Finding New Properties of Functions Using Sets

From the definitions above, new questions now arise. Here are the three main ones: can a function be (1) one-to-one? (2) many-to-one? (3) one-to-many? Consider each case.

  1. A function is considered one-to-one if an element aA from domain A of function f, leads to exactly one element bB from range B of the function. By definition, since only one element b is mapped by function f from some element a, f:AB implies that there exists only one element b from the mapping. Therefore, there exists a one-to-one function because it complies with the definition of a function. This definition is similar to Figure 1.
  2. A function is considered many-to-one if some elements a1,a2,anA from domain A of function f maps to exactly one element bB from range B of the function. Since some elements (a1,a2,an)A must map onto exactly one element bB, f:AB must be compliant with the definition of a function. Therefore, there exists a many-to-one function.
  3. A function is considered one-to-many if exactly one element aA from domain A of function f maps to some elements (b1,b2,bn)B from range B of the function. If some element a maps onto many distinct elements b, then f:AB is non-functional since there exists many distinct elements b. Given many-to-one is non-compliant to the definition of a function, there exists no function that is one-to-many.

The modern definition describes a function sufficiently such that it helps us determine whether some new type of "function" is indeed one. Now that each case is defined above, you can now prove whether functions are one of these function cases. Here is an example problem: Template:ExampleRobox Notice that the only changing element in the function f is x. To prove a function is one-to-one by applying the definition may be impossible because although two random elements of domain set A may not be many-to-one, there may be some elements (a1,a2,an)A that may make the function many-to-one. To account for this possibility, we must prove that it is impossible to have some result like that.

Assume there exists two distinct elements x1 and x2 that will result in f(x1)=f(x2). This would make the function many-to-one. In consequence,
ax1+b=ax2+b Subtract b from both sides of the equation.

ax1=ax2

Subtract ax2 from both sides of the equation.

ax1ax2=0

Factor a from both terms to the left of the equation.

a(x1x2)=0

Multiply 1a to both sides of the equation.

(x1x2)=0

Add x2 to both sides of the equation.

x1=x2

Notice that x1=x2. However, this is impossible because x1 and x2 are distinct. Ergo, f(x1)f(x2). No two distinct inputs can give the same output. Therefore, the function must be one-to-one.Template:Robox/Close There are a few more important ideas to learn from the modern definition of the function, and it comes from knowing the difference between domain, range, and codomain. We already discussed some of these, yet knowing about sets adds a new definition for each of the following ideas. Therefore, let us discuss these based on these new ideas. The below definitions are a little confusing. The best way to interpret these is to draw an image. To the right of these definitions is the image that corresponds to it (including a formal definition of the corresponding definitions).

The element aA is an input. The entire set A is the domain (since it comprises all inputs). For any rB but rR and bR gives R={b}, where R is the subset of B implies R is the range. The set B={R,c} is the codomain.
  • The domain is defined to be a set A with all elements aA mapping to at least one unique bB.
  • The set of elements in B=R{r} and R={b} implies R is the range of the function f in the cartesian cross product, whereby the set of all elements aA maps to at least one unique element bB. That is, the range is the set of all elements that was mapped by some aA to one corresponding bR.
  • The codomain is the set B, where it is not necessarily the case that all elements bB was mapped by some aA. That is, the set of all elements found in B is the codomain.

The abstract concepts can also be made less confusing by using a function that can put these concepts into more concrete terms. Assume there is a function f whereby x2. Let this function be f(x)=2x1 where y=f(x). Let us write down what the domain, range, and codomain is for this particular function:

  • Domain: x(,2)(2,) or {x|xx2} or simply x2. In this instance, the domain is the set of all elements of A except x=2, since this one cannot be mapped to some element in B.
  • Range: y(,3)(3,) or {y|yyf(2)} or simply yf(2). In this instance, the range is the set of all elements of B except y=f(2), since this one cannot be mapped by some element in A.
  • Codomain: y(,) or {y|y} or y. This includes the one element that we were not allowed to map.

There is one more final aspect that needs to be defined. We already have a good idea of what makes a mapping a function (e.g. it cannot be one-to-many). However, three more definitions that you will often hear will be necessary to talk about: injective, surjective, bijective.

  • A function is injective if it is one-to-one. That is, for a1A and a2A, if f(a1)=f(a2), then a1=a2. Otherwise, it cannot be one-to-one. The same definition from before applies for one-to-one (realize that the definition of injective and one-to-one are the same).
  • A function is surjective if it is "onto." That is, the mapping f:AB has B as the range of the function, where the codomain and the range of the function are the same.
  • A function is bijective if it is both surjective and injective.

Again, the above definitions are often very confusing. Again, another image is provided to the right of the bullet points. Along with that, another example is also provided. Let us analyze the function g(x)=ax2. Template:ExampleRobox Notice that the only changing element in the function g is x. Let us check to see the conditions of this function.

Is it injective? Let g(x)=y, and solve for x. First, divide by a.

y=ax2
ya=x2

Then take the square root of x2. By definition, x2=|x|=±x, so

ya=±x

Notice, however, what we learned from the above manipulation. As a result of solving for x, we found that there are two inputs, ±x, that give the same output,ya. This means that for some individual x that gives y, there are two different inputs that result in the same value. Because f(x1)=f(x2) when x1x2, this is by definition non-injective.

Is it surjective? As a natural consequence of what we learned about inputs, let us determine the range of the function. After all, the only way to determine if something is surjective is to see if the range applies to all real numbers. A good way to determine this is by finding a pattern involving our domains. Let us say we input a negative number for the domain: f(x)=a(x)2=a(x)(x)=ax2. This seemingly trivial exercise tells us that negative numbers give us non-negative numbers for our range. This is huge information! For x, the function always results y>0 for our range. For the set B, we have elements in that set that have no mappings from the set A. As such, y0 is the codomain of set B. Therefore, this function is non-surjective!Template:Robox/Close Functions are an important foundation of mathematics. This modern interpretation is a result of the hard work of the mathematicians of history. It was not until recently that the definition of the relation was introduced by René Descartes in Geometry (1637). Nearly a century later, the standard notation (f(x)=y) was first introduced by Leonhard Euler in Introductio in Analysin Infinitorum and Institutiones Calculi Differentialis. The term function was also an innovation during Euler's time as well, being introduced Gottfried Wilhelm Leibniz in a 1673 letter "to describe a quantity related to points of a curve, such as a coordinate or curve's slope." Finally, the modern definition of the function being the relation among sets was first introduced in 1908 by Godfrey Harold Hardy where there is a relation between two variables x and y such that "to some values of x at any rate correspond values of y." For the person that wants to learn more about the history of the function, this page has been provided for you.

Summary of the Set Definitions of Functions

This section is perhaps the hardest to understand. A summary is provided before the end of the chapter to help students further their understanding.

  • A cartesian cross product is the operation A×B={(x,y)|xA,yB}, where A and B are two distinct sets.
  • A mapping is a relation denoted by f:AB, where A and B are two distinct sets, such that the cartesian cross product A×B results in the ordered pair (x,y) for any given xA to some unique yB.
  • A function is a mapping of the set of all inputs, the domain, A, to the set of all corresponding outputs, the range, B such that for any xA, the cross product is true for one and only one yB.
  • The element aA is an input. The entire set A is the domain (since it comprises all inputs). For any rB but rR and bR gives R={b}. RB implies R is the range if the cartesian cross product A×B results in (a,b). The set B=R{r} is the codomain.
  • Let f:AB. A function is injective when for all a1A and a2A, if f(a1)=f(a2), then a1=a2. Symbolically, a1,a2A(f(a1)=f(a2)a1=a2).
  • A function is surjective if the mapping f:AB has B as the range and codomain of the function. Put another way, if f:AB, then f is said to be surjective if yBxA(f(x)=y).
  • A function is bijective if it is both injective and surjective.

The summary only uses jargon terms. For the student that was able to understand and translate the jargon, they are ready to move on to the "Check your understanding." It is in the student's best interest to understand this section because the terms will come back again so that students may fully appreciate the intuition behind composite functions and inverse functions, which we will define in due time. Plus, these definitions are sometimes necessary for proofs. Having a good understanding of these basic foundations of functions will be helpful for the student throughout math, even for students who are not math majors.

Remarks

The following arise as a direct consequence of the definition of functions:

  1. By definition, for each "input" a function returns only one "output", corresponding to that input. While the same output may correspond to more than one input, one input cannot correspond to more than one output. This is expressed graphically as the vertical line test: a line drawn parallel to the axis of the dependent variable (normally vertical) will intersect the graph of a function only once. However, a line drawn parallel to the axis of the independent variable (normally horizontal) may intersect the graph of a function as many times as it likes. Equivalently, this has an algebraic (or formula-based) interpretation. We can always say if a=b , then f(a)=f(b) , but if we only know that f(a)=f(b) then we can't be sure that a=b .
  2. Each function has a set of values, the function's domain, which it can accept as input. Perhaps this set is all positive real numbers; perhaps it is the set {pork, mutton, beef}. This set must be implicitly/explicitly defined in the definition of the function. You cannot feed the function an element that isn't in the domain, as the function is not defined for that input element.
  3. Each function has a set of values, the function's range, which it can output. This may be the set of real numbers. It may be the set of positive integers or even the set {0,1}. This set, too, must be implicitly/explicitly defined in the definition of the function.
This is an example of an expression which fails the vertical line test.

The vertical line test

The vertical line test, mentioned in the preceding paragraph, is a systematic test to find out if an equation involving x and y can serve as a function (with x the independent variable and y the dependent variable). Simply graph the equation and draw a vertical line through each point of the x-axis. If any vertical line ever touches the graph at more than one point, then the equation is not a function; if the line always touches at most one point of the graph, then the equation is a function.

(There are a lot of useful curves, like circles, that aren't functions (see picture). Some people call these graphs with multiple intercepts, like our circle, "multi-valued functions"; they would refer to our "functions" as "single-valued functions".)

Template:BookCat