Exponential and logarithmic functions
🖨 Print a self-study sheet Why print?
Suppose that, each hour, the amount of a drug left in the blood is of the amount an hour earlier (hypothetical figures). If there is mg at first, then after hours there is mg. The doctor allows the next dose only when the amount falls below mg. After how many hours may the next dose be taken?
To answer, we need to understand how falls as grows, and we need to "read backwards" from an amount to a time. These two tasks are exactly the study of exponential and logarithmic functions.
Exploration: two families of graphs
We tabulate and :
| 4 | 2 | 1 | \dfrac12 | \dfrac14 |
Both functions take only positive values and both pass through (0, 1). The first rises, the second falls. What decides whether the function rises or falls? Whether the base is greater or less than 1.
The exponential function
Why is this true? When a>1, each time x increases by 1 the value a^x is multiplied by a>1, so it grows. When 0<a<1, each multiplication by a<1 makes the value smaller. The value a^x is never 0 or negative, but it gets as close to 0 as we like as x moves in the "shrinking" direction, so the x-axis is a horizontal asymptote. The exponential function to base e is y=e^x; since e\approx2.718>1, y=e^x is increasing.
The logarithmic function
Why is this true? Since y=\log_ax is the inverse of y=a^x, the roles of x and y are swapped: the point (x_0, y_0) lies on the graph of y=a^x exactly when (y_0, x_0) lies on the graph of y=\log_ax. So the domain of one function is the range of the other, and increasing or decreasing is preserved. The point (0, 1) of the exponential becomes (1, 0), and the horizontal asymptote y=0 becomes the vertical asymptote x=0.
To compare two numbers with the same base we use monotonicity: for a>1, a^{m}<a^{n}\Leftrightarrow m<n and \log_ap<\log_aq\Leftrightarrow p<q (p, q>0); for 0<a<1 the direction of the inequality is reversed.
Examples
We begin with domains.
Next we compare numbers using monotonicity.
We find the base from a point on the graph.
Now we find an inverse function and an asymptote.
Now we return to the drug problem from the start, using all four steps.
Connections. These two functions rest on powers with real exponents and logarithms: the logarithmic function is the inverse of the exponential function. Continuity from the lesson on continuous functions lets us use their unbroken graphs to locate solutions. The lesson on exponential and logarithmic equations and inequalities will solve equations we have so far met only in the form 0.85^t=\dfrac14. In practice, the exponential function models steady proportional growth and decay, while the logarithmic function tells us how long it takes to reach a given level.
Key terms
Summary
- y=a^x (a>0, a\neq1): domain \mathbb{R}, range (0, +\infty), passes through (0, 1), horizontal asymptote y=0.
- y=\log_ax: domain (0, +\infty), range \mathbb{R}, passes through (1, 0), vertical asymptote x=0.
- Base a>1: increasing; base 0<a<1: decreasing.
- The two functions are inverses; their graphs are symmetric about the line y=x.
- Compare numbers with the same base by monotonicity, reversing the inequality when the base is less than 1; for different bases, compare with an intermediate number.
Practice
Each exercise comes with what you need and hints. Try it yourself first, then open the solution.
Find the domain of each function:
a) y=\log_2(3x+6).
b) y=\log(x^2-5x+6).
c) y=3^{\frac{1}{x-1}}.
d) y=\ln(2-|x|).
What you need: \log_au needs u>0; an exponential function is defined when the exponent is defined.
Steps:
- Write the condition on the argument or exponent.
- Solve the inequality, or the condition that a denominator is non-zero.
Show solution
a) We need 3x+6>0, that is x>-2.
b) We need x^2-5x+6>0\Leftrightarrow(x-2)(x-3)>0, that is x<2 or x>3.
c) We need x-1\neq0, that is x\neq1.
d) We need 2-|x|>0, that is |x|<2, or -2<x<2.
So a) (-2, +\infty); b) (-\infty, 2)\cup(3, +\infty); c) \mathbb{R}\setminus\{1\}; d) (-2, 2).
Answer. a) (-2, +\infty); b) (-\infty, 2)\cup(3, +\infty); c) \mathbb{R}\setminus\{1\}; d) (-2, 2).
Compare:
a) \left(\dfrac23\right)^{1.2} and \left(\dfrac23\right)^{1.5}.
b) \log_{0.2}2 and \log_{0.2}3.
c) 3^{-0.5} and 1.
d) \log_52 and \dfrac12.
What you need: a function is increasing when the base is greater than 1 and decreasing when it is less than 1.
Steps:
- Decide whether the base is greater or less than 1.
- In parts c and d, compare with an intermediate number (1=3^0 and \dfrac12=\log_55^{1/2}).
Show solution
a) The base \dfrac23<1, so the function is decreasing; 1.2<1.5, so \left(\dfrac23\right)^{1.2}>\left(\dfrac23\right)^{1.5}.
b) The base 0.2<1, so the function is decreasing; 2<3, so \log_{0.2}2>\log_{0.2}3.
c) We have 1=3^0 and the base 3>1; since -0.5<0, 3^{-0.5}<1.
d) We have \dfrac12=\log_5\sqrt5 and \sqrt5\approx2.24>2; the base 5>1, so \log_52<\log_5\sqrt5=\dfrac12.
So a) >; b) >; c) <; d) <.
Answer. a) >; b) >; c) <; d) <.
Find the range and the asymptote of the graph of each function:
a) y=3^x+2.
b) y=1-\left(\dfrac12\right)^x.
c) y=\log_2(x+3) (find the domain and the vertical asymptote).
What you need: a^x>0 and gets close to 0 on one side; \log_au has a vertical asymptote where u=0.
Steps:
- Find the interval of values of the a^x part.
- Add or subtract the corresponding constant.
Show solution
a) The function y=3^x+2 is defined on \mathbb{R}. For every x we have 3^x>0, so 3^x+2>2, that is y>2. Since 3^x takes every positive value, y takes every value in (2, +\infty). As x\to-\infty, 3^x\to0, hence y\to2. So the range is (2, +\infty) and the graph has the horizontal asymptote y=2.
b) The function y=1-\left(\dfrac12\right)^x is defined on \mathbb{R}. For every x we have \left(\dfrac12\right)^x>0, so 1-\left(\dfrac12\right)^x<1, that is y<1. Since \left(\dfrac12\right)^x takes every positive value, y takes every value in (-\infty, 1). As x\to+\infty, \left(\dfrac12\right)^x\to0, hence y\to1. So the range is (-\infty, 1) and the graph has the horizontal asymptote y=1.
c) The function y=\log_2(x+3) is defined when the argument of the logarithm is positive: x+3>0, that is x>-3. As x\to(-3)^+, x+3\to0^+, so y\to-\infty. So the domain is (-3, +\infty) and the graph has the vertical asymptote x=-3.
Answer. a) (2, +\infty), y=2; b) (-\infty, 1), y=1; c) (-3, +\infty), x=-3.
Consider the function y=\log_{1/3}x. Decide whether each statement is true or false:
a) The function is increasing on (0, +\infty).
b) The graph passes through the point (1, 0).
c) \log_{1/3}9=-2.
d) The graph has the horizontal asymptote y=0.
What you need: properties of a logarithmic function with base less than 1.
Steps:
- Decide whether the base is greater or less than 1.
- Check each statement against the properties and the definition.
Show solution
The function y=\log_{1/3}x has domain (0, +\infty) and its base satisfies 0<\dfrac13<1.
a) False. Since the base \dfrac13<1, the function y=\log_{1/3}x is decreasing on (0, +\infty), not increasing.
b) True. We have \log_{1/3}1=0 (because \left(\dfrac13\right)^0=1), so the graph passes through the point (1, 0).
c) True. We have \left(\dfrac13\right)^{-2}=3^2=9, so \log_{1/3}9=-2.
d) False. As x\to0^+, y=\log_{1/3}x\to+\infty, so the graph has the vertical asymptote x=0. As x\to+\infty, y\to-\infty, so the graph has no horizontal asymptote y=0.
So statements b), c) are true; statements a), d) are false.
Answer. a) False; b) True; c) True; d) False.
Suppose a sum of money in a deposit grows by 5\% each year, compounded annually (hypothetical figures). After at least how many whole years is the amount at least double the original?
What you need: the amount after n years is A\cdot1.05^n; the function 1.05^n is increasing.
Steps:
- Set up the condition 1.05^n\ge2.
- Calculate n_0=\log_{1.05}2, then take the smallest whole number that is large enough.
Show solution
Let A be the original amount and n the number of whole years (n\in\mathbb{N}^*). Since the amount grows by 5\% each year, compounded annually, after n years it is A\cdot1.05^n.
The amount is at least double the original when A\cdot1.05^n\ge2A\iff1.05^n\ge2.
Since the base 1.05>1, the function y=\log_{1.05}t is increasing; hence n\ge\log_{1.05}2=\frac{\ln2}{\ln1.05}\approx14.2.
Since n is an integer, n\ge15, and the smallest value is n=15.
Check: 1.05^{14}\approx1.98<2 and 1.05^{15}\approx2.08\ge2.
So after at least 15 years the amount is at least double the original.
Answer. 15 years.
Suppose a radioactive substance has a half-life of 5 days (hypothetical figures) and an initial mass of 100 g. After t days the mass remaining is m(t)=100\cdot\left(\dfrac12\right)^{t/5} grams.
a) How many grams remain after 12 days (to the nearest whole number)?
b) After how many days will 10 g remain (to one decimal place)?
What you need: m(t) is an exponential function with base \dfrac12; \left(\dfrac12\right)^{u}=c\Leftrightarrow u=\log_{1/2}c.
Steps:
- a) Substitute t=12 and use a calculator.
- b) Solve \left(\dfrac12\right)^{t/5}=0.1, finding \dfrac t5 with a logarithm.
Show solution
The mass remaining after t days is m(t)=100\cdot\left(\dfrac12\right)^{t/5} (grams).
a) Substituting t=12, we get m(12)=100\cdot\left(\frac12\right)^{12/5}=100\cdot2^{-2.4}\approx18.9. To the nearest whole number, m(12)\approx19 g. So after 12 days about 19 g remain.
b) We need t with m(t)=10, that is 100\cdot\left(\frac12\right)^{t/5}=10\iff\left(\frac12\right)^{t/5}=0.1. Taking logarithms to base \dfrac12 on both sides, we get \frac t5=\log_{1/2}0.1=\log_210, so t=5\log_210\approx5\cdot3.3219\approx16.6. So after about 16.6 days, 10 g remain.
Answer. a) 19 g; b) 16.6 days.
Suppose a city has 500\,000 people and its population grows by 2\% each year (hypothetical figures). After at least how many whole years does the population exceed 600\,000?
What you need: the population after n years is 500\,000\cdot1.02^n.
Steps:
- Set up 1.02^n>1.2.
- Use a logarithm and monotonicity to find the smallest whole n.
Show solution
Let n be the number of whole years (n\in\mathbb{N}^*). Since the population grows by 2\% each year, after n years it is 500\,000\cdot1.02^n (people).
The population exceeds 600\,000 when 500\,000\cdot1.02^n>600\,000\iff1.02^n>\frac{600\,000}{500\,000}=1.2.
Since the base 1.02>1, the function y=\log_{1.02}t is increasing; hence n>\log_{1.02}1.2=\frac{\ln1.2}{\ln1.02}\approx9.2.
Since n is an integer, n\ge10, and the smallest value is n=10.
Check: 500\,000\cdot1.02^9\approx597\,500<600\,000 and 500\,000\cdot1.02^{10}\approx609\,500>600\,000.
So after at least 10 years the population exceeds 600\,000.
Answer. 10 years.
Let f(x)=\log_5x-1. Find the inverse function f^{-1} and calculate f^{-1}(1).
What you need: the inverse of y=\log_ax is y=a^x.
Steps:
- Put y=\log_5x-1 and solve for x in terms of y.
- Rename the variable, then substitute x=1.
Show solution
The function f(x)=\log_5x-1 has domain (0, +\infty) and range \mathbb{R}, and it is increasing, so it has an inverse function.
Put y=\log_5x-1. Then \log_5x=y+1\iff x=5^{y+1}.
Swapping the roles of x and y, we get f^{-1}(x)=5^{x+1} for all x\in\mathbb{R}.
Hence f^{-1}(1)=5^{1+1}=5^2=25.
Check: f(25)=\log_525-1=2-1=1.
So f^{-1}(x)=5^{x+1} and f^{-1}(1)=25.
Answer. f^{-1}(x)=5^{x+1}; f^{-1}(1)=25.
Revisit continuous functions. Prove that the equation 2^x+x=4 has at least one solution in the interval (1, 2).
What you need: the function g(x)=2^x+x-4 is continuous on \mathbb{R}; if g(1)\,g(2)<0 there is a solution in (1, 2).
Steps:
- Calculate g(1) and g(2).
- Apply the intermediate value theorem.
Show solution
Consider the function g(x)=2^x+x-4. The exponential function 2^x and the function x are both continuous on \mathbb{R}, so g is a sum of two continuous functions and is continuous on \mathbb{R}; in particular, g is continuous on [1, 2].
We have g(1)=2+1-4=-1<0,\qquad g(2)=4+2-4=2>0.
Hence g(1)\cdot g(2)<0. By the intermediate value theorem, there is c\in(1, 2) with g(c)=0, that is 2^c+c=4.
So the equation 2^x+x=4 has at least one solution in the interval (1, 2).
Answer. The equation has a solution in (1, 2).
Let f(x)=\log_2\left(x+\sqrt{x^2+1}\right). Prove that f is defined on \mathbb{R} and that f(-x)=-f(x) for all x.
What you need: \sqrt{x^2+1}>|x| and \left(\sqrt{x^2+1}-x\right)\left(\sqrt{x^2+1}+x\right)=1.
Steps:
- Show that x+\sqrt{x^2+1}>0.
- Calculate f(-x) and use the product equal to 1.
Show solution
Since \sqrt{x^2+1}>\sqrt{x^2}=|x|\ge-x, we have x+\sqrt{x^2+1}>0 for all x. So f is defined on \mathbb{R}.
We have f(-x)=\log_2\left(\sqrt{x^2+1}-x\right). Since \left(\sqrt{x^2+1}-x\right)\left(\sqrt{x^2+1}+x\right)=x^2+1-x^2=1, we get \sqrt{x^2+1}-x=\dfrac{1}{x+\sqrt{x^2+1}}. Therefore f(-x)=\log_2\frac{1}{x+\sqrt{x^2+1}}=-\log_2\left(x+\sqrt{x^2+1}\right)=-f(x).
Answer. f is defined on \mathbb{R} and f(-x)=-f(x).
Mini test
Marked like the Vietnamese graduation exam: Part I 0.25 points per question; Part II up to 1 point per question (1, 2, 3, 4 correct statements give 0.1, 0.25, 0.5, 1 point); Part III 0.5 points per question.
Part I. Multiple choice
We need 2x-4>0, that is x>2. Option A includes the endpoint 2, B reverses the inequality, and C forgets the shift caused by 2x-4.
The base \dfrac{\sqrt2}{2}\approx0.71<1, so the function is decreasing on \mathbb{R}. Option B has base \dfrac\pi3>1, D has base e>1, and C is defined only on (0, +\infty).
The base \dfrac12<1, so the function is decreasing, and 3<5 gives \log_{1/2}3>\log_{1/2}5. B is false because \sqrt3\approx1.73>1.7; C is false because 2<3; D is false because the base 0.9<1 and 0.5>0.4.
3^x>0 and gets close to 0 when x is very negative, so y gets close to -5 from above. Option A has the wrong sign, and B and D are vertical lines.
Part II. True or false
| a) The domain of f is (0, +\infty). | ||
| b) f(3)=1. | ||
| c) The function f is decreasing on its domain. | ||
| d) The graph of f has the vertical asymptote x=1. |
a) False: we need x-1>0, that is x>1. b) True: \log_22=1. c) False: the base 2>1, so the function is increasing. d) True: x-1=0 when x=1, so the graph gets close to the line x=1.
Part III. Short answer
We need \left(\dfrac12\right)^{t/6}=\dfrac18=\left(\dfrac12\right)^3, so \dfrac t6=3 and t=18 (days).
We need 0.9^n<0.1, that is n>\dfrac{\ln0.1}{\ln0.9}\approx21.9, so n=22. Check: 0.9^{21}\approx0.109>0.1 and 0.9^{22}\approx0.098<0.1.
Show answers and explanations
- Part I, question 1: D. We need 2x-4>0, that is x>2. Option A includes the endpoint 2, B reverses the inequality, and C forgets the shift caused by 2x-4.
- Part I, question 2: A. The base \dfrac{\sqrt2}{2}\approx0.71<1, so the function is decreasing on \mathbb{R}. Option B has base \dfrac\pi3>1, D has base e>1, and C is defined only on (0, +\infty).
- Part I, question 3: B. The base \dfrac12<1, so the function is decreasing, and 3<5 gives \log_{1/2}3>\log_{1/2}5. B is false because \sqrt3\approx1.73>1.7; C is false because 2<3; D is false because the base 0.9<1 and 0.5>0.4.
- Part I, question 4: C. 3^x>0 and gets close to 0 when x is very negative, so y gets close to -5 from above. Option A has the wrong sign, and B and D are vertical lines.
- Part II, question 1: a) False; b) True; c) False; d) True. a) False: we need x-1>0, that is x>1. b) True: \log_22=1. c) False: the base 2>1, so the function is increasing. d) True: x-1=0 when x=1, so the graph gets close to the line x=1.
- Part III, question 1: 18. We need \left(\dfrac12\right)^{t/6}=\dfrac18=\left(\dfrac12\right)^3, so \dfrac t6=3 and t=18 (days).
- Part III, question 2: 22. We need 0.9^n<0.1, that is n>\dfrac{\ln0.1}{\ln0.9}\approx21.9, so n=22. Check: 0.9^{21}\approx0.109>0.1 and 0.9^{22}\approx0.098<0.1.