Skip to content

Logarithms and the logarithm laws

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

logax=yay=x,a>0,a1,x>0.\boxed{\log_a x=y\quad\Longleftrightarrow\quad a^y=x}, \qquad a>0,\quad a\ne1,\quad x>0.

For example, log28=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 logax\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 log381\log_3 81, log5(1/125)\log_5(1/125) and log162\log_{16}2.

Translate each logarithm into an exponential statement:

34=81log381=4,3^4=81 \quad\Longrightarrow\quad \boxed{\log_3 81=4}, 53=1125log5(1125)=3,5^{-3}=\frac1{125} \quad\Longrightarrow\quad \boxed{\log_5\left(\frac1{125}\right)=-3},

and

161/4=2log162=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:

loga1=0becausea0=1,\boxed{\log_a1=0} \quad\text{because}\quad a^0=1, logaa=1becausea1=a.\boxed{\log_a a=1} \quad\text{because}\quad a^1=a.

Evaluate exactly:

  1. log749\log_7 49
  2. log2(1/16)\log_2(1/16)
  3. log255\log_{25}5
  4. log61\log_6 1
Answers
  1. 22, since 72=497^2=49.
  2. 4-4, since 24=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, logax\log_a x requires

a>0,a1,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 loga0\log_a0 and loga(3)\log_a(-3) have no real values. Do not interpret loga0\log_a0 as 00: in fact, loga1=0\log_a1=0.

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

ln(2x5) is defined when 2x5>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:

logx=log10x,lnx=logex,\log x=\log_{10}x, \qquad \ln x=\log_e x,

where e=2.7182818e=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 xR,\ln(e^x)=x \quad\text{for every }x\in\mathbb R,

and

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

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

Simplify

ln(e7),eln12,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(e7)=7,\ln(e^{-7})=-7, eln12=12,e^{\ln12}=12,

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

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

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

loga(MN)=logaM+logaN\boxed{\log_a(MN)=\log_aM+\log_aN} loga(MN)=logaMlogaN\boxed{\log_a\left(\frac MN\right)=\log_aM-\log_aN} loga(Mk)=klogaM.\boxed{\log_a(M^k)=k\log_aM}.

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

p=logaM,q=logaN.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 loga\log_a gives

loga(MN)=p+q=logaM+logaN.\log_a(MN)=p+q=\log_aM+\log_aN.

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

Given that loga2=p\log_a2=p and loga3=q\log_a3=q, express loga72\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:

loga72=loga(23×32)=loga(23)+loga(32)=3loga2+2loga3=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)=4lnx+12lny3lnz.\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

2lnx12ln(x+1)+ln32\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)+ln3.\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,

klnx=ln(xk),k\ln x=\ln(x^k),

not ln(kx)\ln(kx).

  1. Expand loga(25x3/y)\log_a(25x^3/y) fully.
  2. Write 3lnp+2lnqlnr3\ln p+2\ln q-\ln r as one logarithm.
  3. Given loga2=u\log_a2=u and loga5=v\log_a5=v, express loga(20/2)\log_a(20/\sqrt2) in terms of uu and vv.

Assume all variables used as logarithm arguments are positive.

Answers
  1. 2loga5+3logaxlogay2\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 loga\log_a for every base. The change of base formula is

logax=logbxlogba,\boxed{\log_a x=\frac{\log_bx}{\log_ba}},

where bb is any valid base. In particular,

logax=lnxlna=logxloga.\log_a x=\frac{\ln x}{\ln a}=\frac{\log x}{\log a}.

To derive it, let y=logaxy=\log_ax, so ay=xa^y=x. Taking logb\log_b of both sides gives

ylogba=logbx,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 log720\log_7 20 to four significant figures.

log720=ln20ln7=1.539\log_720=\frac{\ln20}{\ln7}=1.539\ldots

Therefore

log720=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<log720<21<\log_720<2.

A useful consequence is the reciprocal identity

logab=1logba.\boxed{\log_a b=\frac1{\log_b a}}.

Since y=logaxy=\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=logaxy=\log_ax has:

  • domain x>0x>0;
  • range R\mathbb R;
  • xx-intercept (1,0)(1,0) because loga1=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,

log1/2x=log2x,\log_{1/2}x=-\log_2x,

so y=log1/2xy=\log_{1/2}x is the reflection of y=log2xy=\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(x3)+2.y=\ln(x-3)+2.

Starting from y=lnxy=\ln x:

  • x3x-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(x3)+2=0ln(x3)=2\ln(x-3)+2=0 \quad\Longrightarrow\quad \ln(x-3)=-2 x3=e2x=3+e2.\Longrightarrow\quad x-3=e^{-2} \quad\Longrightarrow\quad x=3+e^{-2}.

Thus the exact intercept is (3+e2,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. log28\log_28 means the exponent 33, not 2×82\times8.
  • Arguments must be positive. In ln(x4)\ln(x-4), require x4>0x-4>0, not merely x>0x>0.
  • Products split, sums do not. ln(xy)=lnx+lny\ln(xy)=\ln x+\ln y, but ln(x+y)\ln(x+y) cannot be split.
  • A power becomes a coefficient. ln(x3)=3lnx\ln(x^3)=3\ln x, whereas (lnx)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 ln20/ln7\ln20/\ln7 in the calculator and round only the final result.
  1. State the domain of f(x)=log3(72x)f(x)=\log_3(7-2x).
  2. Simplify loga(a5)+loga(1/a2)\log_a(a^5)+\log_a(1/a^2).
  3. Write ln12+lnxln4\ln12+\ln x-\ln4 as one logarithm.
  4. Solve log5x=2\log_5x=-2.
  5. Evaluate log49\log_49 to three significant figures.
  6. Explain why ln(x2)=2lnx\ln(x^2)=2\ln x is not valid for every nonzero real xx.
Answers
  1. Require 72x>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=52=1/25x=5^{-2}=1/25.
  5. log49=ln9ln4=1.58\displaystyle \log_49=\frac{\ln9}{\ln4}=1.58 to three significant figures.
  6. If x<0x<0, then lnx\ln x is not real. The valid identity for every x0x\ne0 is ln(x2)=2lnx\ln(x^2)=2\ln|x|. At this stage, it is safest to state x>0x>0 before using ln(x2)=2lnx\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.