Skip to content

Logarithms and the logarithm laws

By MathLab · Reviewed

A logarithm is an exponent. For a valid base aa,

log⁡ax=y⟺ay=x,a>0,a≠1,x>0.\boxed{\log_a x=y\quad\Longleftrightarrow\quad a^y=x}, \qquad a>0,\quad a\ne1,\quad x>0.

For example, log⁡28=3\log_2 8=3 because 23=82^3=8. This definition is the key to the whole topic. It explains logarithm values, their laws, their graphs and their use in solving exponential equations.

You should be able to:

To evaluate log⁡ax\log_a x, ask:

To what power must I raise aa to obtain xx?

Worked example 1: integer, negative and fractional answers

Section titled “Worked example 1: integer, negative and fractional answers”

Evaluate log⁡381\log_3 81, log⁡5(1/125)\log_5(1/125) and log⁡162\log_{16}2.

Translate each logarithm into an exponential statement:

34=81⟹log⁡381=4,3^4=81 \quad\Longrightarrow\quad \boxed{\log_3 81=4}, 5−3=1125⟹log⁡5(1125)=−3,5^{-3}=\frac1{125} \quad\Longrightarrow\quad \boxed{\log_5\left(\frac1{125}\right)=-3},

and

161/4=2⟹log⁡162=14.16^{1/4}=2 \quad\Longrightarrow\quad \boxed{\log_{16}2=\frac14}.

A negative logarithm is perfectly valid. It means the argument is produced by a negative power of the base. The logarithm itself may be any real number, although its argument must be positive.

Two values follow immediately from the definition:

log⁡a1=0becausea0=1,\boxed{\log_a1=0} \quad\text{because}\quad a^0=1, log⁡aa=1becausea1=a.\boxed{\log_a a=1} \quad\text{because}\quad a^1=a.

Evaluate exactly:

  1. log⁡749\log_7 49
  2. log⁡2(1/16)\log_2(1/16)
  3. log⁡255\log_{25}5
  4. log⁡61\log_6 1
Answers
  1. 22, since 72=497^2=49.
  2. −4-4, since 2−4=1/162^{-4}=1/16.
  3. 1/21/2, since 251/2=525^{1/2}=5.
  4. 00, since 60=16^0=1.

In real A level mathematics, log⁡ax\log_a x requires

a>0,a≠1,x>0.a>0,\qquad a\ne1,\qquad x>0.

These restrictions have different purposes.

  • The base must be positive so that aya^y is defined as a real number for every real yy.
  • The base cannot be 11 because 1y=11^y=1 for every yy, so it cannot produce a one-to-one function with an inverse.
  • The argument must be positive because ay>0a^y>0 for every real yy. No real power of a positive base gives 00 or a negative number.

Therefore log⁡a0\log_a0 and log⁡a(−3)\log_a(-3) have no real values. Do not interpret log⁡a0\log_a0 as 00: in fact, log⁡a1=0\log_a1=0.

When a logarithm contains an algebraic expression, the whole argument must be positive. For example,

ln⁡(2x−5) is defined when 2x−5>0,\ln(2x-5)\text{ is defined when }2x-5>0,

so its domain is x>5/2x>5/2.

Two bases have special calculator notation:

log⁡x=log⁡10x,ln⁡x=log⁡ex,\log x=\log_{10}x, \qquad \ln x=\log_e x,

where e=2.7182818…e=2.7182818\ldots.

The common logarithm uses base 1010. The natural logarithm uses base ee and is central in calculus and continuous growth. A logarithm without a displayed base usually means base 1010 in A level calculator work, but always follow the notation in the question.

The inverse relationships give

ln⁡(ex)=xfor every x∈R,\ln(e^x)=x \quad\text{for every }x\in\mathbb R,

and

eln⁡x=xfor x>0.e^{\ln x}=x \quad\text{for }x>0.

The domain condition in the second identity matters: ln⁡x\ln x must exist first.

Simplify

ln⁡(e−7),eln⁡12,ln⁡(1e3).\ln(e^{-7}),\qquad e^{\ln 12},\qquad \ln\left(\frac1{e^3}\right).

Since logarithms and exponentials with the same base undo one another,

ln⁡(e−7)=−7,\ln(e^{-7})=-7, eln⁡12=12,e^{\ln12}=12,

and, after writing 1/e3=e−31/e^3=e^{-3},

ln⁡(1e3)=ln⁡(e−3)=−3.\ln\left(\frac1{e^3}\right)=\ln(e^{-3})=-3.

For M>0M>0, N>0N>0 and a valid base aa,

log⁡a(MN)=log⁡aM+log⁡aN\boxed{\log_a(MN)=\log_aM+\log_aN} log⁡a(MN)=log⁡aM−log⁡aN\boxed{\log_a\left(\frac MN\right)=\log_aM-\log_aN} log⁡a(Mk)=klog⁡aM.\boxed{\log_a(M^k)=k\log_aM}.

They are index laws viewed through an inverse function. To justify the product law, let

p=log⁡aM,q=log⁡aN.p=\log_aM,\qquad q=\log_aN.

Then M=apM=a^p and N=aqN=a^q, so

MN=apaq=ap+q.MN=a^pa^q=a^{p+q}.

Taking log⁡a\log_a gives

log⁡a(MN)=p+q=log⁡aM+log⁡aN.\log_a(MN)=p+q=\log_aM+\log_aN.

The quotient and power laws follow similarly from ap/aq=ap−qa^p/a^q=a^{p-q} and (ap)k=apk(a^p)^k=a^{pk}.

Given that log⁡a2=p\log_a2=p and log⁡a3=q\log_a3=q, express log⁡a72\log_a72 in terms of pp and qq.

Factorise the argument:

72=23×32.72=2^3\times3^2.

Apply the product and power laws:

log⁡a72=log⁡a(23×32)=log⁡a(23)+log⁡a(32)=3log⁡a2+2log⁡a3=3p+2q.\begin{aligned} \log_a72 &=\log_a(2^3\times3^2)\\ &=\log_a(2^3)+\log_a(3^2)\\ &=3\log_a2+2\log_a3\\ &=\boxed{3p+2q}. \end{aligned}

Expand

ln⁡(x4yz3),x>0, y>0, z>0.\ln\left(\frac{x^4\sqrt y}{z^3}\right), \qquad x>0,\ y>0,\ z>0.

Use the quotient law, then the product law, then the power law:

ln⁡(x4yz3)=ln⁡(x4y)−ln⁡(z3)=ln⁡(x4)+ln⁡(y1/2)−ln⁡(z3)=4ln⁡x+12ln⁡y−3ln⁡z.\begin{aligned} \ln\left(\frac{x^4\sqrt y}{z^3}\right) &=\ln(x^4\sqrt y)-\ln(z^3)\\ &=\ln(x^4)+\ln(y^{1/2})-\ln(z^3)\\ &=\boxed{4\ln x+\frac12\ln y-3\ln z}. \end{aligned}

The positivity conditions make every logarithm in the expanded form valid.

Worked example 5: combine into one logarithm

Section titled “Worked example 5: combine into one logarithm”

Write

2ln⁡x−12ln⁡(x+1)+ln⁡32\ln x-\frac12\ln(x+1)+\ln3

as one logarithm, where x>0x>0.

First move coefficients into powers:

ln⁡(x2)−ln⁡((x+1)1/2)+ln⁡3.\ln(x^2)-\ln((x+1)^{1/2})+\ln3.

Addition corresponds to multiplication and subtraction corresponds to division:

ln⁡(3x2x+1).\boxed{\ln\left(\frac{3x^2}{\sqrt{x+1}}\right)}.

Do not move a coefficient inside by multiplication. In general,

kln⁡x=ln⁡(xk),k\ln x=\ln(x^k),

not ln⁡(kx)\ln(kx).

  1. Expand log⁡a(25x3/y)\log_a(25x^3/y) fully.
  2. Write 3ln⁡p+2ln⁡q−ln⁡r3\ln p+2\ln q-\ln r as one logarithm.
  3. Given log⁡a2=u\log_a2=u and log⁡a5=v\log_a5=v, express log⁡a(20/2)\log_a(20/\sqrt2) in terms of uu and vv.

Assume all variables used as logarithm arguments are positive.

Answers
  1. 2log⁡a5+3log⁡ax−log⁡ay2\log_a5+3\log_ax-\log_ay.
  2. ln⁡(p3q2r)\displaystyle \ln\left(\frac{p^3q^2}{r}\right).
  3. Since 20/2=23/2×520/\sqrt2=2^{3/2}\times5, the answer is 32u+v\displaystyle \frac32u+v.

Calculators provide log⁡\log and ln⁡\ln, but not usually log⁡a\log_a for every base. The change of base formula is

log⁡ax=log⁡bxlog⁡ba,\boxed{\log_a x=\frac{\log_bx}{\log_ba}},

where bb is any valid base. In particular,

log⁡ax=ln⁡xln⁡a=log⁡xlog⁡a.\log_a x=\frac{\ln x}{\ln a}=\frac{\log x}{\log a}.

To derive it, let y=log⁡axy=\log_ax, so ay=xa^y=x. Taking log⁡b\log_b of both sides gives

ylog⁡ba=log⁡bx,y\log_ba=\log_bx,

and rearranging produces the formula.

Worked example 6: calculate an unfamiliar base

Section titled “Worked example 6: calculate an unfamiliar base”

Evaluate log⁡720\log_7 20 to four significant figures.

log⁡720=ln⁡20ln⁡7=1.539…\log_720=\frac{\ln20}{\ln7}=1.539\ldots

Therefore

log⁡720=1.539 to four significant figures.\boxed{\log_720=1.539\text{ to four significant figures}}.

The answer is plausible because 71<20<727^1<20<7^2, so 1<log⁡720<21<\log_720<2.

A useful consequence is the reciprocal identity

log⁡ab=1log⁡ba.\boxed{\log_a b=\frac1{\log_b a}}.

Since y=log⁡axy=\log_ax is the inverse of y=axy=a^x, their graphs are reflections of one another in the line y=xy=x. Therefore every graph y=log⁡axy=\log_ax has:

  • domain x>0x>0;
  • range R\mathbb R;
  • xx-intercept (1,0)(1,0) because log⁡a1=0\log_a1=0;
  • vertical asymptote x=0x=0;
  • no yy-intercept.

If a>1a>1, the graph is increasing. If 0<a<10<a<1, it is decreasing. For example,

log⁡1/2x=−log⁡2x,\log_{1/2}x=-\log_2x,

so y=log⁡1/2xy=\log_{1/2}x is the reflection of y=log⁡2xy=\log_2x in the xx-axis.

Worked example 7: transform a logarithmic graph

Section titled “Worked example 7: transform a logarithmic graph”

Describe the graph

y=ln⁡(x−3)+2.y=\ln(x-3)+2.

Starting from y=ln⁡xy=\ln x:

  • x−3x-3 translates the graph 33 units right;
  • +2+2 translates it 22 units up.

The asymptote x=0x=0 becomes x=3x=3, and the domain becomes

x>3.x>3.

For the xx-intercept, set y=0y=0:

ln⁡(x−3)+2=0⟹ln⁡(x−3)=−2\ln(x-3)+2=0 \quad\Longrightarrow\quad \ln(x-3)=-2 ⟹x−3=e−2⟹x=3+e−2.\Longrightarrow\quad x-3=e^{-2} \quad\Longrightarrow\quad x=3+e^{-2}.

Thus the exact intercept is (3+e−2,0)(3+e^{-2},0). There is no yy-intercept because x=0x=0 is outside the domain.

  • A logarithm is not a base times an argument. log⁡28\log_28 means the exponent 33, not 2×82\times8.
  • Arguments must be positive. In ln⁡(x−4)\ln(x-4), require x−4>0x-4>0, not merely x>0x>0.
  • Products split, sums do not. ln⁡(xy)=ln⁡x+ln⁡y\ln(xy)=\ln x+\ln y, but ln⁡(x+y)\ln(x+y) cannot be split.
  • A power becomes a coefficient. ln⁡(x3)=3ln⁡x\ln(x^3)=3\ln x, whereas (ln⁡x)3(\ln x)^3 is a different expression.
  • Use one base consistently in change of base. Both numerator and denominator must use the same logarithm function.
  • Do not round midway. Keep ln⁡20/ln⁡7\ln20/\ln7 in the calculator and round only the final result.
  1. State the domain of f(x)=log⁡3(7−2x)f(x)=\log_3(7-2x).
  2. Simplify log⁡a(a5)+log⁡a(1/a2)\log_a(a^5)+\log_a(1/a^2).
  3. Write ln⁡12+ln⁡x−ln⁡4\ln12+\ln x-\ln4 as one logarithm.
  4. Solve log⁡5x=−2\log_5x=-2.
  5. Evaluate log⁡49\log_49 to three significant figures.
  6. Explain why ln⁡(x2)=2ln⁡x\ln(x^2)=2\ln x is not valid for every nonzero real xx.
Answers
  1. Require 7−2x>07-2x>0, so x<7/2x<7/2.
  2. 5+(−2)=35+(-2)=3.
  3. ln⁡(3x)\ln(3x), with x>0x>0.
  4. x=5−2=1/25x=5^{-2}=1/25.
  5. log⁡49=ln⁡9ln⁡4=1.58\displaystyle \log_49=\frac{\ln9}{\ln4}=1.58 to three significant figures.
  6. If x<0x<0, then ln⁡x\ln x is not real. The valid identity for every x≠0x\ne0 is ln⁡(x2)=2ln⁡∣x∣\ln(x^2)=2\ln|x|. At this stage, it is safest to state x>0x>0 before using ln⁡(x2)=2ln⁡x\ln(x^2)=2\ln x.

You should now be able to translate between logarithmic and exponential form, apply the three laws in either direction, change base and identify the domain of a logarithm. Next, use these skills to solve exponential and logarithmic equations. They also underpin growth and decay models and linearising data.