Logarithmic Functions

Learning goals

  • Translate between logarithmic and exponential statements while preserving the three numerical roles
  • Evaluate exact logarithms, including fractional values and common and natural logarithms
  • Check that logarithm bases and whole arguments meet their real-number restrictions
  • Apply both inverse identities while retaining the domains of the original expressions
  • Read logarithmic graphs from exchanged coordinates, domains, ranges, and asymptotes

Keep the base, recover the exponent

A logarithm names an exponent. For example, 23=82^3=8 can also be written log⁡28=3\log_2 8=3, read as “log base two of eight equals three.” The base stays 22; the positive result 88 becomes the input; the exponent 33 becomes the output.

The logarithm recovers the exponentTwo rows reverse the same pair of numbers. The top row maps 3 to 8 using a power of 2. The bottom row maps 8 to 3 using a logarithm with base 2.3883raise 2 to this exponentfind the exponent on 2same base, reversed question
The arrows reverse the input and output roles. The base stays 2 in both directions.

The previous lesson established that btb^t is one-to-one and has range (0,∞)(0,\infty) when its base is positive and different from 11. Every positive output therefore identifies exactly one real exponent. This is why the reversed question defines a function.

For b>0b>0 with b≠1b\ne1 and u>0u>0, the logarithm log⁡bu\log_b u is the unique real exponent on bb that produces uu. Its input uu is called its argument. Thus

y=log⁡bu⟺by=u.y=\log_b u\quad\Longleftrightarrow\quad b^y=u.

This works in both directions because the two statements describe the same power. The restriction is on the whole argument. For log⁡3(2−x)\log_3(2-x), it is 2−x2-x that must be positive, allowing negative xx as well as some positive xx.

The excluded bases have concrete problems. At base 11, every exponent gives 11, so an output cannot identify a unique exponent. At base 00, negative exponents fail. A negative base such as −9-9 has no real value at exponent 1/21/2. These bases cannot supply the real exponential function we need to reverse. An argument of zero or a negative number also fails, because a power of a positive base never produces either.

Worked example 1 Read exact exponents in three forms

Problem. Evaluate each logarithm exactly and verify it with a power.

(a) log⁡4(1/8)\log_4(1/8).

(b) log⁡1/525\log_{1/5}25.

(c) log⁡71\log_7 1.

Solution. (a) Since 4=224=2^2 and 1/8=2−31/8=2^{-3}, the exponent on 44 must multiply 22 to give −3-3. It is −3/2-3/2:

4−3/2=1(4)3=18.4^{-3/2}=\frac{1}{(\sqrt4)^3}=\frac18.

Therefore log⁡4(1/8)=−3/2\log_4(1/8)=-3/2.

(b) A negative exponent takes a reciprocal. We have (1/5)−2=25(1/5)^{-2}=25, so log⁡1/525=−2\log_{1/5}25=-2. A base below 11 can give a negative logarithm of a number above 11.

(c) Since 70=17^0=1, we obtain log⁡71=0\log_7 1=0. For every valid base, log⁡b1=0\log_b 1=0 and log⁡bb=1\log_b b=1, because b0=1b^0=1 and b1=bb^1=b.

Check your understanding

Which exponential statement says the same thing as log⁡1/48=−3/2\log_{1/4}8=-3/2?

Answer choices

Two logarithms with short names

Some bases are used often enough to have their own notation. Because 10−2=0.0110^{-2}=0.01, the common logarithm, written log⁡\log with no base, gives log⁡0.01=−2\log 0.01=-2. In this course, a missing base means 1010.

The previous lesson used the number e≈2.71828e\approx2.71828 as an exponential base. The natural logarithm, written ln⁡\ln, has base ee. Since e1/2=ee^{1/2}=\sqrt e, we have ln⁡(e)=1/2\ln(\sqrt e)=1/2. “Natural” names the base; it does not change the inverse question.

Worked example 2 Match the notation to the base

Problem. Find exact values for (a) log⁡(10)\log(\sqrt{10}) and (b) ln⁡(e−5/3)\ln(e^{-5/3}). For (c), use a calculator to evaluate ln⁡6\ln 6 to three decimal places and state what that number represents.

Solution. (a) The base is 1010. Since 101/2=1010^{1/2}=\sqrt{10}, the answer is 1/21/2.

(b) The base is ee. The exponent producing e−5/3e^{-5/3} is −5/3-5/3, so ln⁡(e−5/3)=−5/3\ln(e^{-5/3})=-5/3.

(c) The natural-log key gives

ln⁡6≈1.792.\ln6\approx1.792.

This is an approximation to the exponent on ee that produces 66. The exact statement is eln⁡6=6e^{\ln6}=6. Substituting the rounded exponent gives e1.792≈6e^{1.792}\approx6, so the rounded value needs an approximation sign.

Check your understanding

Which pair is correct?

Answer choices

Undo both journeys on the right domains

Going forward and then backward returns the exponent. For example, (1/3)−2=9(1/3)^{-2}=9 and log⁡1/39=−2\log_{1/3}9=-2. Going backward and then forward returns a positive argument: log⁡28=3\log_2 8=3 and 23=82^3=8.

In general, for a positive base b≠1b\ne1, the two inverse identities are

log⁡b(bt)=tfor every real t,\log_b(b^t)=t\quad\text{for every real }t,

and

blog⁡bu=ufor u>0.b^{\log_b u}=u\quad\text{for }u>0.

The domains differ because btb^t is positive for every real tt, while the logarithm in the second identity must receive a positive input before anything can undo it. Matching bases matter too: ln⁡(10t)\ln(10^t) does not directly undo a base-1010 power.

Worked example 3 Keep the original domain after undoing

Problem. Simplify each expression and state its full real domain.

(a) A(x)=ln⁡(ex2−9)A(x)=\ln(e^{x^2-9}).

(b) B(x)=eln⁡(x2−9)B(x)=e^{\ln(x^2-9)}.

Solution. (a) The exponent x2−9x^2-9 can be any real number. The exponential is always positive, so it is always an allowed logarithm input. Thus A(x)=x2−9A(x)=x^2-9 for every real xx.

(b) First require the logarithm’s argument to be positive:

x2−9>0.x^2-9>0.

This means x<−3x<-3 or x>3x>3. On that domain, B(x)=x2−9B(x)=x^2-9. The original expression remains undefined at x=0x=0, although the polynomial alone would return −9-9 there. The same simplified formula does not make these two functions identical.

Check your understanding

For which inputs does 5log⁡5(1−x2)=1−x25^{\log_5(1-x^2)}=1-x^2 hold as a real identity?

Answer choices

Exchange points and the graph’s features

An inverse graph exchanges inputs and outputs. Since 2−1=1/22^{-1}=1/2, the exponential point (−1,1/2)(-1,1/2) becomes the logarithmic point (1/2,−1)(1/2,-1). Likewise, (0,1)(0,1) becomes (1,0)(1,0), and (2,4)(2,4) becomes (4,2)(4,2). Swapping coordinates reflects the graph across y=xy=x, with equal unit scales on the axes.

The base changes both sides of the inverse pair

y = 2ˣ. y = log₂ x. Base 2 is greater than 1, so both curves rise. Reflecting across y = x sends (1, 2) on the exponential to (2, 1) on the logarithm. The exponential never reaches y = 0 and the logarithm never reaches x = 0, which is that same asymptote reflected. A coordinate plane carrying an exponential curve, its logarithm, and the dashed diagonal line y = x that reflects each onto the other. Use the control below the figure to change the base. y = 2ˣ y = log₂ x -2 2 4 6 8 -2 2 4 6 8
Base

y = 2ˣ. y = log₂ x. Base 2 is greater than 1, so both curves rise. Reflecting across y = x sends (1, 2) on the exponential to (2, 1) on the logarithm. The exponential never reaches y = 0 and the logarithm never reaches x = 0, which is that same asymptote reflected.

For a valid base, the solid exponential and dashed logarithm reflect across y = x. Their marked points exchange coordinates. At base 1 the logarithm is absent because the exponential has no inverse function.

Choose base 22, then base 1/21/2. Both curves rise in the first case and fall in the second. Try base 11 too: the exponential becomes the horizontal line y=1y=1, and the logarithm disappears. The coordinate exchange requires a one-to-one original function.

The same exchange explains the allowed inputs, possible outputs, and asymptotes for every valid base:

FeatureExponential y=bxy=b^xLogarithm y=log⁡bxy=\log_b x
DomainAll real numbers(0,∞)(0,\infty)
Range(0,∞)(0,\infty)All real numbers
Axis crossing(0,1)(0,1)(1,0)(1,0)
AsymptoteHorizontal y=0y=0Vertical x=0x=0
Direction for b>1b>1IncreasingIncreasing
Direction for 0<b<10<b<1DecreasingDecreasing

The exponential’s positive outputs become the logarithm’s positive inputs. Its horizontal asymptote reflects to a vertical asymptote, so the logarithm never reaches the yy-axis. The direction stays the same: reading a strictly increasing or decreasing input-output pairing backward preserves that direction.

For a decreasing base, the direction near the vertical asymptote deserves a separate look. Powers (1/3)1=1/3(1/3)^1=1/3, (1/3)2=1/9(1/3)^2=1/9, and (1/3)3=1/27(1/3)^3=1/27 give logarithm points (1/3,1)(1/3,1), (1/9,2)(1/9,2), and (1/27,3)(1/27,3). Smaller positive inputs have larger outputs.

A decreasing exponential and its inverse both decreaseEqual-scale axes show the solid exponential y equals one third to the power x, its dashed logarithmic inverse, and the diagonal y equals x. The point negative one comma three becomes three comma negative one. The horizontal asymptote y equals zero reflects to the vertical asymptote x equals zero.y = x(-1, 3)(3, -1)xy-2-112345-2-112345Solid: y = (1/3)ˣ. Dashed: y = log₁/₃ x.
For a base below 1, both inverse curves decrease. Swapping (-1, 3) gives (3, -1); the axes serving as asymptotes exchange roles too.

When b>1b>1, log⁡bx\log_b x falls without bound as xx approaches zero from the right and rises without bound as xx grows. When 0<b<10<b<1, it rises without bound near zero from the right and falls without bound as xx grows. In both cases, its range includes every real number. A negative output is allowed; a nonpositive argument is not.

Check your understanding

For f(x)=(1/6)xf(x)=(1/6)^x, which description of f−1f^{-1} is correct?

Answer choices

Change the argument, then check the graph

A transformed argument changes which original inputs the logarithm sees. For h(x)=log⁡2(4−x)h(x)=\log_2(4-x), input 33 sends argument 11 to the logarithm, giving h(3)=0h(3)=0. Input 22 sends 22, giving h(2)=1h(2)=1. Following the argument prevents a shift from being mistaken for a new domain rule.

Worked example 4 Describe a logarithm with a reversed input

Problem. For h(x)=log⁡2(4−x)h(x)=\log_2(4-x), find its domain and range, its vertical asymptote, and both axis intercepts. State whether it increases or decreases, and describe its behavior near the asymptote.

Solution. Require 4−x>04-x>0, giving domain (−∞,4)(-\infty,4). As xx moves through that domain, 4−x4-x takes every positive value. The logarithm therefore still produces every real output, giving range R\mathbb R.

At x=3x=3 the argument is 11, so the horizontal-axis intercept is (3,0)(3,0). At x=0x=0 the argument is 44, so the vertical-axis intercept is (0,2)(0,2).

As xx increases, 4−x4-x decreases. Since log⁡2\log_2 increases with its argument, hh decreases with xx. When xx approaches 44 from the left, the positive argument approaches zero and the output falls without bound. The vertical asymptote is x=4x=4.

A reflected input moves the logarithm left of its asymptoteThe graph of y equals log base two of four minus x decreases on x less than four. It passes through zero comma two, two comma one, and three comma zero. The dashed vertical line x equals four is approached from the left, with the graph descending without bound.x = 4(0, 2)(2, 1)(3, 0)xy-2-112345-3-2-11234Only inputs to the left of x = 4 are allowed.
The argument 4 - x is positive only left of x = 4. The three marked points come from arguments 4, 2, and 1.

Check your understanding

For p(x)=ln⁡(x+7)p(x)=\ln(x+7), which domain and vertical asymptote are correct?

Answer choices

Common mistakes

Practice

Multiple Choice Questions (MCQ)

Progressively harder sets of questions. Each opens on its own page.

Core practice

Practice problems at the level of the course, to be worked out on paper. Hints one at a time, then the answer or the full worked solution, with your progress kept in this browser.

Core practice Work it out on paper 10 problems Start →
More resources (optional)

Other explanations of this lesson, if you want a second take.

A bit of history (optional)

John Napier published his work on logarithms in 1614 after years spent seeking ways to shorten difficult arithmetic. Astronomers, navigators, and surveyors benefited from the new tables. Napier’s original logarithms differed from the base-1010 form familiar today. Henry Briggs and his team undertook the labor of calculating revised tables, and Briggs published base-1010 logarithms in 1617.

National Museums Scotland describes Napier’s calculating inventions and the early logarithm tables.

Your progress

See all your progress →