2 Exponential and Logarithmic Functions One of the overall themes in high-school mathematics is the concept of function. The idea was introduced in math 20, then we looked at the simplest class of functions: polynomials. These included linear, quadratic, cubic, and quartic functions. In math 30 we add to our knowledge of functions by studying exponential and logarithmic functions (in this chapter), and trigonometric functions in subsequent chapters. These functions are all known as transcendental functions, which means they transcend our ability to write them in polynomial form. In other words if we try to write any of these functions in polynomial form, we get a polynomial of infinite degree. They have many applications in physics and engineering, and we use them all the time in calculus. 2.1 Geometric Sequences and Series We begin our study of exponential functions by going back to a topic that was touched on in math 10: geometric sequences. The following are all examples of geometric sequences: 5, 15, 45, 135, 405, 1215 64, 32, 16, 8, 4, 2, 1,.5,.25 2, 2, 2 2, 4, 4 2 2, 6, 18, 54, 162,... In all of these examples, we start with a certain number, and then multiply each time by the same value to produce the next number. The value that we multiply by each time is called the common ratio. In the above examples the common ratios are 3, 1/2, 2, 3 We want to deal with geometric sequences in an algebraic way, so we need to have a completely algebraic description of them. The notation we use in high-school is: important term the first term is denoted a the common ratio is denoted r 1
Using these symbols, we can now write the general geometric sequence as a, ar, ar 2, ar 3,..., ar n 1,... There is one unfortunate thing about this notation; you can see that the number of the exponent is one less than the term number. So for example in the fourth term the exponent on r is only 3. This is because in the first term there is no r, or the exponent on r is zero. This is a common source of error, because many students just assume the exponent on r should be equal to the position of the term in the sequence; try to avoid this mistake. Another symbol that is common in high-school is t to denote a term. For example t 3 means the third term in a sequence, t 102 means the 102nd term, and t n means the n th term, or what is called the general term. Using all of our symbols, we can now say that for any geometric sequence: mistake alert t n = ar n 1 Examples: find the 7 th term in the sequence: 3, 6, 18,.... We see that a = 3, and r = 2 so that: t n = ar n 1 t 7 = ( 3)(2) (7 1) t 7 = ( 3)(2) 6 t 7 = ( 3)(64) t 7 = 192 the first term in a geometric sequence is 240, and the ninth term is 0.9375. Find the common ratio. Using our symbols, we have: t n = ar n 1 t 9 = ar (9 1) 0.9375 = (240)(r) 8 0.00390625 = r 8 1/2 = r Note that to go from the second last to the last line above, we took the eighth root of both sides. 2
Now we turn to the topic of adding up geometric sequences: 2 + 8 + 32 = 42 This is a nice simple case, where a = 2, r = 4, and the number of terms (n) is 3. This is an example of a geometric series which is defined as the sum of the terms of a sequence. We certainly do not want to have to add up series in the ordinary way, even using a calculator, since it would be tedious and error prone to add a list of hundreds or even thousands of numbers. Therefore we look for a technique (or formula). You might remember that we used the trick of pairing terms when adding arithmetic sequences. This does not work with geometric series (you should try it to see why), but another technique does work: we multiply the series by r, then subtract the original series. Sound complicated? It s not. First an easy numerical example: Find the sum of S = 1 + 2 + 4 + 8 + 16 We see that r = 2, so we multiply both sides of the equation above by 2: S = 1 + 2 + 4 + 8 + 16 2S = 2 + 4 + 8 + 16 + 32 (2S S) = 32 1 S = 33 We aligned the second series to the right in order to make subtraction easier; we also subtracted going up in order to avoid negatives. Now let s do it in general (we assume n terms): S n = a + ar + ar 2 + + ar n 1 rs n = rs n S n = ar n a S n (r 1) = a(r n 1) S n = a(rn 1) r 1 ar + ar 2 + + ar n 1 + ar n important definition Actually we use two versions of this formula: 3
S n = a(rn 1) r 1 and S n = a(1 rn ) 1 r The one on the right is used when r > 1, and the one on the left is used when r < 1. It s ok if you forget this: you ll get the right answer either way, but if you use the correct version you avoid negatives. (Actually I m not sure if that s very important since all of you use calculators all the time; anyway there are two versions of the formula). Example: find the sum of the first 8 terms of the geometric sequence 3 + 12 + 48 + Clearly a = 3, r = 4, and n = 8: 2.2 Sigma Notation S n = a(rn 1) r 1 S 8 = 3[(4)8 1 1] 4 1 S 8 = 3(47 1) 3 S 8 = 4 7 1 S 8 = 16383 In this section we will learn about a mathematical symbol that is use to write out series in a more compact form. This notation uses the symbol Σ, which is a capital S in the Greek alphabet. This letter was chosen because S is the first letter in the word sum, and sigma notation is a short way of writing sums, or series. The best way to learn this notation is to examine some examples: 1. 2. 4 i 2 = 1 2 + 2 2 + 3 2 + 4 2 i=1 3 2k + 1 = 1 + 3 + 5 + 7 k=0 4
3. 4. 5 2 j = 1 + 2 + 4 + 8 + 16 + 32 j=0 2i = 2 + 4 + 6 + i=1 The letters i, j, k are called dummy variables; it does not matter which letters we use, the meaning of the notation is the same. The number below the sign tells you what value the dummy starts at, and the number on top tells you the final value. Sometimes you need to look at a sigma notation and just know how many terms there are in the sum. For b i=a, the number of terms is b a + 1. It is a very common error in high-school to think mistake that the number of terms is b a. We now give a few more examples of alert sigma notation, beginning with a restatement of the formula for the sum of a geometric series: 1. evaluate n 1 ar i = a(rn 1) r 1 i=0 7 0.125(2) i We can see that this is a geometric series with i=0 a = 0.125 (just put 0 in for i to see this), and r = 2. 7 0 + 1 = 8 terms, so n = 8 and the formula gives or S 8 = [0.125(27 1)] 2 1 S 8 = 127 8 There are 2. write the following sum in sigma notation: 4+12+36+108+324+972 This is a geometric series, with a = 4, r = 3, and n = 6. So each term in this series is of the form 4(3) k, where k starts at 0 and ends at 5 (one less than the number of terms). Thus the sigma notation for this series is: 5 4(3) k k=0 5
You might be surprised that the exponent was k, and not k 1, since when we learned the general term for geometric sequences the exponent was n 1. The reason for this is that when we were learning the general term for geometric sequences, the variable (n in that case) started at 1, whereas in the example we just did, the dummy variable started at zero. This is a very important point because it means that there is not just one way to describe a series in sigma notation; there are many ways. We can start the dummy variable at whatever we want. For example, all of the following are equal: key point 5 4(3) k = k=0 6 4(3) k 1 = k=1 22 k=17 4(3) k 17 The choice for the initial value of the dummy variable is usually one of convenience; it is usually easiest to start it at 1. 2.3 From Sequences to Exponential Functions Let s back up a bit, and look at the graphs of two sequences. The first will be t n = 3(2) n 1. The number of each term will be on the horizontal axis, and the value of each term will be on the vertical axis: 60 50 40 30 term value 20 10 0 t n = 3(2) n 1-10 -1 0 1 term 2 number 3 4 5 6 This is a function, because it passes the vertical line test, but right now it is only defined for the positive integers, because when we count terms (or anything) we start at 1, and use the positive integers. But if we draw a smooth curve through these points, we get a function defined on the real numbers (i.e. decimals etc.). Here it is: 6
60 50 40 30 term value 20 10 0 t n = 3(2) n 1-10 -1 0 1 term 2 number 3 4 5 6 What is this function? Well all we have done is allow the sequence formula to be used for all real numbers, so we just replace n (which refers to integers) with x to get y = 3(2) x 1 Actually we prefer to write this a bit differently (putting in a more standard form) by doing the following: y = 3(2) x 1 y = 3(2) x (2) 1 y = 3(1/2)(2) x y = (3/2)(2) x This equation now has the typical form of an exponential function, which is any function that can be written in the form y = a(c) x, c > 0 In our example a was 3/2, and c was 2. We will see in a little while why we must insist that c > 0. Let s look at a second example. This time we will graph a sequence whose terms get smaller. We will use t n = 128(.5) n 1. 7
140 120 100 80 term value 60 t n = (128)(1/2) n 1 40 20 0-1 0 1 term 2 number 3 4 5 6 Once more we have a function defined only for the positive integers, because that is the meaning of the variable n, but we can get a function for all real numbers by using any real value for the variable. The graph looks like this: 140 120 100 80 term value 60 t n = 128(.5) n 1 40 20 0-1 0 1 term 2 number 3 4 5 6 While we could write this as y = 128(1/2) x 1, we again prefer to rearrange it as before (you should be able to do this yourself) to get y = 64(1/2) x so that once more we have a typical exponential function y = a(c) x, c > 0 with a = 64, and c = 1/2. 8
So let us summarize: An exponential function is any function that can be written in the form y = a(c) x, c > 0. If we were to allow c to be negative we would get a crazy graph that jumped back and forth from negative to positive values, and that is not defined for many values of x. (specifically, it would not be defined for any x that in reduced fraction form, looked like k/2n, where k, and n are both integers.) Here is the typical exponential function, when c > 1: 10 8 6 4 2 0-4 -3-2 -1 0 1 2 3 4 This is often called a growth graph, since it models such things as growth of money in a bank account, or growth of population. Here is the typical case when 0 < c < 1: 9
10 8 6 4 2 0-4 -3-2 -1 0 1 2 3 4 This is called a decay graph, since it can model the amount of radioactive material when it decays (among other things). The characteristics of both forms above are: 1. domain: xɛr memorize 2. range: y > 0 3. no x-intercepts; y-intercept: a 4. asymptotes: the x-axis 2.4 Logarithms This chapter is about exponential functions and logarithmic functions, and we haven t yet explain what logarithms are, so we take a break from exponential things for a while to take care of this. Let s begin with examples: 1. since 10 2 = 100, we say that 2 is the logarithm of 100 (to the base 10) 2. since 10 3 = 100, we say that 3 is the logarithm of 1000 (to the base 10) 3. since 10.3010 = 2, we say that.3010 is the logarithm of 2 (to the base 10) 10
4. since 10 1 = 0.10, we say that 1 is the logarithm of 0.10 (to the base 10) We can generalize this by saying: If 10 k = m, then we say that k is the logarithm of m, base 10. The symbols for this are: if 10 k = m, then log 10 m = k. In simple English, k is the logarithm of m (base 10) if k is the exponent we need to put on 10, in order to produce m. So far we have confined ourselves to using 10 as the base, but we can use any base. So, for example, since 2 3 = 8, we can say that the logarithm of 8 (base 2) is 3. In symbols we write: 2.5 The Laws of Logarithms log 2 8 = 3 There are three very important laws of logarithms; these laws are used both to simplify complicated expressions, and also to solve equations algebraically, that could not be solved in any other way. The laws will look strange at first, but you should always keep in mind that they are just the familiar exponent laws in another form. log(ab) = log a + log b (1) log(a/b) = log a log b (2) n log a = log a n (3) We will now take each law, one at a time, and give some examples and then a proof. The intent throughout will be to emphasize the connection between these laws and the more familiar laws of exponents. In all of this work we will be working in base 10, but we could easily use any other base. 1. on your calculator you can verify that important point log(1000) = log 10 + log 100 to prove this law, let s begin with this: 10 m 10 n = 10 m+n 11
Now if we let a = 10 m, and b = 10 n,then ab = 10 m+n Now from the very definition of logarithms, you should be able to see that: log a = m, log b = n, and log (ab) = m + n, therefore it is clear that 2. we know that log (ab) = log a + log b 10 m 10 n = 10 m n If, as before, a = 10 m, b = 10 n and a/b = 10 m n, then from the definition of logarithms you can see that log(a/b) = log a log b 3. we prove the third law by repeated application of the first law. e.g. 2 log n = log n + log n = log(n n) = log n 2 3 log n = (log n + log n) + log n = log n 2 + log n = log(n 2 n) = log n 3 all I did here was apply the first law again and again. It would be easy to extend this to n terms. (in fact I would ask this on a chapter test) Even though our proof of this law requires that n be an integer, the law works even for non integers. e.g. π log a = log a π To be very sure that you understand what we have done here, I restate the 3 laws of logarithms, with their corresponding exponent laws: 1. 2. means the same as means the same as log(ab) = log a + log b 10 m 10 n = 10 m+n log(a/b) = log a log b 10 m 10 n = 10 m n 12
3. means the same as n log a = log a n (10 m ) n = 10 mn Now even though all of these laws are important, I want to draw your attention to the third law in particular. We use this law to isolate variables in the exponent. Till now, this was not possible. Example: Solve the equation 7 = 2 x Before having the third law, we would have solved this by guess and check, or graphing, but now we proceed like this: 7 = 2 x log 7 = log 2 x log 7 = (x) log 2 log 7 log 2 = x And while we re at it, let s notice something else: we should know from the definition of logarithms, that if then 7 = 2 x x = log 2 7 Therefore we have proved the important result that log 2 7 = log 7 log 2 Or in general, we just proved that key point log a b = log b log a 13
2.6 The Logarithm Function Now that we have some idea what logarithms are, we can consider the function y = log x Note that we are still confining ourselves to base 10 only for convenience, and we could replace the 10 by any other (positive) number. If we graph y = log x, we get the following: 1 0.5 0-1 -0.5 0-0.5 0.5 1 1.5 2 2.5 3-1 -1.5-2 -2.5-3 You should realize right away that this function is only defined for x > 0. The reason is that, for example, log 10 ( 5) = k implies that 10 k = 5. Since this is impossible, we cannot take the logarithm of any num- we can in ber that is not positive. You might have also noticed that this graph looks like a reflection in the line y = x of the graph of y = 10 x. To make this clear, we illustrate both graphs, along with the mirror line: the complex numbers 14
10 x and log x 3 2 1 0-3 -2-1 0 1 2 3-1 -2-3 To see why this is so, recall that to find the inverse of a given function, we switch x and y isolate y So let s try this with the function y = 10 x : y = 10 x x = 10 y log x = log(10 y ) log x = y log(10) log x = y To go from the second last line to the last line, we made use of the fact that log 10 10 = 1. Thus we have proved that y = 10 x and y log 10 x are inverses of each other. In general we see that y = a x and log a x are inverses of each other. We conclude this section by noting that there are actually two looks for log graphs, depending on whether the base is larger, or smaller than 1. (compare to the two looks for exponential graphs) 15
For y log a = x, a > 1, the graph looks like this: 3 2 1 0-1 -0.5 0 0.5 1 1.5 2 2.5 3-1 -2-3 and for y = log a = x, 0 < a < 1, the graph looks like this: 3 2 1 0-1 -0.5 0 0.5 1 1.5 2 2.5 3-1 -2-3 In either case, the characteristics are: (just switch x stuff and y stuff) 16
1. domain: x > 0 2. range: yɛr 3. no y-intercepts; x-intercept: 1 4. asymptotes: the y-axis 2.7 Exponential and Logarithmic Equations Many equations in science and higher mathematics are in exponential form. To solve such equations we must know both the laws of exponents and those of logarithms. 2.7.1 Exponential Equations For the purposes of math 30, we can consider two sorts of exponential equations: those in which both sides of the equation can be put to the same base, and those in which this is not possible. Let s look at some examples of the first type: 1. 9 2x 1 = 27 x 2 (3 2 ) 2x 1 = (3 3 ) x 2 3 4x 2 = 3 3x 6 4x 2 = 3x 6 x = 4 2. (1/8) 3x+1 = 32 2x 1 (2 3 ) 3x+1 = (2 5 ) 2x 1 2 9x 3 = 2 10x 5 9x 3 = 10x 5 19x = = 2 x = 2 19 17
This is by far the easier of the two types; you can usually solve this kind without a calculator. In the second type you must make use of the third law of logarithms in order to get the variable out of the exponent: Examples: 1. 2. log a n = n log a 3 x+2 = 5 x log 3 x+2 = log 5 x (x + 2) log 3 = (x) log 5 (x) log 3 + 2 log 3 = (x) log 5 2 log 3 = (x) log 5 (x) log 3 log 9 = x(log 5 log 3) x = log 9 log 5 log 3 x = 4.301 2(3) x+1 = 6 2x 1 log(2(3) x+1 ) = log(6 2x 1 ) log 2 + (x + 1) log 3 = (2x 1) log 6 log 2 + log 3 + log 6 = 2x log 6 x log 3 log 36 = x log 6 2 x log 3 log 36 = x log 36 x log 3 log 36 = x(log 36 log 3) log 36 = x(log 12) x = log 36 log 12 x = 1.44 It is easy to see that this type of equation is tedious, but it is definitely not hard; after we get the variable out of the exponent, we are really dealing with a simple linear equation that looks hard because of all the log symbols around. As I pointed out in class, there are ways of making substitutions that make the algebra easier. 18
2.7.2 Logarithmic Equations In order to solve logarithmic equations you must be conversant with the laws of logarithms and you must also know how to change a statement from exponential form and back. The key fact here is: log a b = c a c = b Students constantly forget this; if you have trouble remembering it, just make up an easy example: since 10 2 = 100 then log 10 100 = 2 The first sort of logarithmic equation we will look at is the type which simply involves changing to exponential form: 1. log x 3 = 2 x 2 = 3 x = 3 2. 3. log 3 x = 2 3 2 = x 9 = x log 5 7 = x log 5 log 7 = x Next, we look at the type which has more than one log symbol on a side of the equation. The first thing to do in this type is to use the laws of logarithms to simplify: 19
1. log 5 (x 5) + log 5 x = log 5 6 log 5 (x 2 5x) = log 5 6 x 2 5x = 6 x 2 5x 6 = 0 (x 6)(x + 1) = 0 x = 6, 1 x = 6 ( 1 is extraneous) 2. log 2 (2m + 4) log 2 (m 1) = 3 ( 2m + 4 ) log 2 = 3 m 1 2m + 4 m 1 = 2 3 2m + 4 = 8m 8 12 = 6m 2 = 2 There is actually very little here besides the laws of logarithms and some basic algebra. 20