Exponential and Logarithmic Functions ALGEBRIC MATHEMATICAL OPERATIONS DIRECT OPERATIONS INVERSE OPERATIONS a) addition a+b=c subtraction b=c–a b) multiplication ab = c division b = c/a c) exponent or power logarithm ba = c a = logb c Logarithmic Functions WHAT ARE LOGARITHMS AND WHY ARE THEY USEFUL? Logarithms enable infinitely large and infinitesimally small numbers to register in our minds. “The utility of the logarithm is aptly demonstrated by its ability to represent numerical excesses in comprehensible terms.” It appears that human senses perceive the world though a logarithmic lens. 62 A logarithmic rule of thumb: For a number larger than one, written in ordinary decimal notation, a rough approximation of its logarithm can be obtained by counting its digits to the left of the decimal point. For a number written in standard scientific notation the exponent of the ten is roughly its logarithm. Common log scales in Environmental Science: 63 w www.armacell.com/.../$file/decibel-scale_227.jpg Sound Source Airplane Engine Nearby Inside Airplane Cabin Pneumatic Drill Noisy Office Ordinary Conversation Quiet Conversation Soft Rustle of Leaves Total Loudness Power (P) 1000000000000 10000000000 1000000000 10000000 10000 1000 10 Scientific Notation Log dB = 10log(P) 64 Interesting Exercise Let’s see how how many decibels change occurs when we double a given loudness power. Suppose we have a guitar amp which is set to produce sound with P total loudness power. Then our formula gives us 10log(p) dB. Now suppose we crank the amp to double the loudness to 2P. What is the change in dB? What is the loudness power that corresponds to 200 dB? Exponential and Logarithmic Functions Composite graphic representation 65 General rules Logs are the opposite of exponentiation They are inverse functions of each other o Just like “The square root function is the inverse of the square function.” o They undo each other Video on Orders of Magnitude: http://micro.magnet.fsu.edu/primer/java/scienceopticsu/powersof10/ Any situation in which the same things happen over and over again, and increases or decreases each time by a fixed percentage is exponential growth or decay. ~Note Cooper, page 107 Is the function linear, or exponential? A linear function has a constant absolute rate of change. An exponential function has a constant relative (or percent) rate of change. Some common situations where this happens: Situation: Population growth Radioactive decay Compound interest Notes: Population (#births-#deaths) grows by the same amount in each time period. Material decays at the same rate over and over Money increases by a fixed percentage over and over *Fill in the blank for above with your own “situation”! 66 Rules for Exponents 10 x 10 * 10 * 10.... (repeat x times) x y 10 10 10 x y 10 x 10 x y y 10 Rules for Logarithms log 10 10 x x Notes: Definition of log log 10 xy log 10 x log 10 y x log 10 log 10 x log 10 y y Logs turn multiplication into addition Logs turn exponentiation into multiplication… lets you solve for exponent!!! Look a lot like the division to subtraction rule….. 10 10 x* y log 10 x y y log 10 x 10 x 1 10 x 10 0 1 1 log( x) log 10 x log 10 1 0 101 10 log 10 10 1 x y Logs turn division into subtraction. Any number to the zero power equals one. Any number to the first power equals itself. Rules for log base 10. Note: base could be replaced with any other number (such as ‘e’ or ‘2’), and rules will still hold true.. The letters ‘x’ and ‘y’ are arbitrary (they could be replaced with any other letters), they do NOT stand for independent/dependent variables. ARGUMENTS IN EXPONENTS AND LOGARITHMS MUST BE DIMENSIONLESS. x log b y y bx means b is positive and not =1. b is called the ‘base’ Three important values for ‘b’ are 2 (computers), e (math & science), 10 (human history, slide rule, etc) EXAMPLES: x log 10 ( y) log( y) means y 10 x x log e ( y) ln( y) means y ex Where e = 2.71828… it’s a MAGIC #!! 67 To switch between bases, use: log b x log a x log a b Examples: log2x = 1.44 ln x log10x = 0.434 ln x 68 Exponential Population Growth N (t ) N 0ert N(t) = population (# of individuals) at time t N0 = population at time t = 0; initial condition r = fractional growth rate (per unit time) t = time CIA world factbook: https://www.cia.gov/cia/publications/factbook/index.html Country India Current Population r r (fractional Pop. In 10 years Pop. In 50 years (% growth rate per growth rate (if r is constant) (if r is constant) year) per year) 1,095,351,995 0.0138 1.25 x 109 people 1.38% Gaza Strip 1,428,757 3.71% Germany 82,422,299 0% U.S. 298,444,215 0.91% Russia 142,893,540 -0.37% -0.0037 How much larger is the population of India than the population of the U.S., currently? NO CALCULATORS (use scientific notation and rules of exponents). How much larger will the population of India be compared to the population of the U.S., in 50 years from now? NO CALCULATORS!! 69 Summary of Critical Values for Exponential Growth: Value of r in Exponential Model: r>0 r=0 r<0 Population is: Growing Constant; not growing or declining Declining 70 Use rules of logs to solve for an exponent: DOUBLING TIME: the doubling time of an exponentially increasing function is the time that is take for the quantity to double. Consider the continuous model of population growth: N (t ) N 0 e When will the population double? o In other words, at what time, t, will the population be 2 times the original, or initial, population size? ? Let’s call this time “doubling time”. rt Let doubling time = Td N(Td) = 2N0 Population at ‘doubling time’ is twice the initial population, by definition 2 N0 = N0 e r*Td 2 = e r*Td What if we used log instead of ln? ln(2) = r*Td ln(e) Td ln( 2) r Rule of Thumb: Td 70 p Where p = percent growth rate p = 100 * r Find the doubling time for India’s population. Does the doubling time depend on the initial (or current) population level? 71 How many years will it take for the population of the Gaza Strip to : o Double? o Triple? o Quadruple? TRY WITH EXCEL! How long will it take for the population of the Gaza Strip (population = 1,428,757; r = 3.71%) to exceed the population of Israel (population= 6,352,117; r = 1.18%) assuming that population growth continues at current rates? This is most easily done in EXCEL (make columns for Time, Pop(Gaza), Pop(Israel); then click and drag the time and population formula boxes down until the population of Gaza is greater than the population of Israel. To work properly, you population formula must be linked to the time cell with a ‘relative’ reference. 72 YOU DERIVE IT!!! HALF-LIFE: the half life of an exponentially decaying quantity is the time it takes for the quantity to be reduced by a factor of one half. Certain isotopes of elements with unstable nuclei spontaneously decay. The rate of decay is proportional to the amount of radioactive material. This phenomenon is very important for applications such as nuclear fallout and carbon dating. The equation for radioactive decay is given by: y be kt (compare this with the population growth model) y = amount of radioactive material at time t. b = initial amount of radioactive material k = decay constant (units are per unit time); this varies from one element to another. The time necessary for half of the radioactive material to decay is known as the half-life of the material. Find the half-life of C14. The decay constant (k) is known to be 1.24 x 10-4 per year [HINT: the amount of radioactive material will be ½ of the original amount at the time corresponding to the half-life]. * Check your answer by doing a quick google search of ‘carbon 14 half life’. 73 The principle of the carbon-dating method is as follows: The proportion of the radioactive isotope C14 to the regular isotope C12 of carbon occurring in the earth’s atmosphere remains at a constant level, the amount of C14 that decays being exactly balanced by new C14, which is formed by cosmic rays hitting the atmosphere. Living plants and animals absorb carbon from the atmosphere, and so contain a proportion of C14 that is more or less the same as that in the atmosphere. When the animal or vegetation dies, however, the absorption of new C14 ceases, and the proportion of C14 in the dead organic matter steadily decreases as a result of radioactive decay. By measuring the proportion of C14 to C12 in organic matter obtained from an archaeological site, it is possible to calculate how long it is since the death of the animal or vegetable occurred. [Arya, Mathematics for the Biological Sciences, page 155] A human bone is measured to have 58% of the radioactive carbon that occurs naturally in the atmosphere. How old is the bone? (given: k(C14) = 1.24 x 10-4) The level of radioactivity on the site of a nuclear explosion is decaying exponentially. The level measured in 1990 was found to be 0.7 times the level measured in 1980. What is the half-life? [Hint: first solve for k, then solve for the half-life] 74 Exponential growth in action: EARNING INTEREST (see Cooper, pg 107) A P(1 i) n where: A = total amount after ‘n’ compounding periods ($) P = the principal, or initial amount of money ($) i= Annual Interest Rate (fractional) Number of Compoundings per year (unitless) n = total number of compounding periods for the life of the loan (unitless) Example 1: If you invest $100 in the bank which pays you interest at a rate 10%, compounded monthly (12 times per year), how much money will you have after 10 years? Example 2: How much is $1 worth in 1 year, if it earns an annual interest rate of 100%, and is only compounded once (at the end of the year)? What if it is compounded monthly, over a one year period, instead? What if it is compounded each minute, over a one year period? 75 Exponential decay in action: DISCOUNTING Discounting is the opposite of earning interest Present Value answers the question: “How much money would you set aside now to avoid a cost in the future?” o Example: How much will we spend now to avoid damages from global warming that will not occur until 50 years from now? Present Value answers the question: “How much money would you set aside now to get benefits in the future?” o Example: How much are we willing to invest in renewable energy that will not provide us with benefits until 10 years from now? Present Value decays exponentially; the rate of decay is our ‘discount rate’ How much is a future value of 1 million dollars worth today? You are thinking of investing in a new solar power company. You are told that you will receive an income of $ 1 million dollars in 10 years (because it takes time to set up the infrastructure, establish the business, etc). How much will you invest now to get this future benefit? What if you wont receive the benefit for 50 years, instead of 10 years? 76 Future Value in year ‘n’: FV (1 d ) * PV n Present Value: PV (does this look familiar?) FV (1 d ) n Where PV = present value ($) FV= future value ($) n = number of years from present (assuming annual compounding) d = discount rate (fractional) Note: in these formulas, the present year is year zero (n = 0)! YOU TRY IT!!! Calculate the present value of 1 million dollars received in 10 years, using a discount rate of 10 %. 77 We will play around with these graphs in Excel! POP QUIZ: Circle one: Humans prefer benefits: Humans prefer costs: now now later later To Ponder: Does discounting conflict with ‘sustainability’? 78 KEY CONCEPTS of Exponents and Logs Exponents and logs are used to deal with numbers that vary by orders of magnitude (powers of 10) Logs are used to “undo” exponentiation Natural log means a logarithm with base e o e = 2.71828… it is a magic number (like pi) On a graph, a log scale is used to view data that varies by orders of magnitude. Any situation in which the same things happen over and over again, and increases or decreases each time by a fixed percentage is exponential growth or decay.. o An exponential function has a constant relative (or percent) rate of change. o Contrast with: A linear function has a constant absolute rate of change. Doubling time (know rule of thumb) Half life for exponential decay Applications of exponential functions o Population growth o Earning Interest o Discounting Understand how this accounting practice devalues future environmental benefits 79