Logarithmic Functions: Definition, Laws of Logarithms, Change of Base, Graphs, Equations, Inequalities and Logarithmic Scales
A logarithm answers one question: which power? For example, log28=3 because 2 must be raised to the power 3 to give 8. Seen this way, every law of logarithms is just a law of exponents written backwards, and the graph of a logarithm is the graph of an exponential reflected in the line y=x. This page uses that idea to explain the laws, change of base, how to solve equations with the unknown in the exponent, how to spot extraneous solutions, and the scales used to measure sound, acidity and earthquakes.
After solving, check that every log in the original equation is still defined
Inequalities: base > 1 keeps the direction · base between 0 and 1 flips it
Definition and graph of a logarithm
Because bx is one-to-one, it has an inverse, and that inverse is logbx. Every feature of the graph therefore comes from swapping x and y in the exponential: the domain becomes (0,∞), the range becomes all real numbers, the point (0, 1) becomes (1, 0), and the horizontal asymptote y=0 becomes the vertical asymptote x=0. Logarithms grow very slowly: even when x reaches a million, log10x is only 6, which is exactly why they are used to build scales for quantities with a huge range.
L1 Definition
logbx=y⟺by=x,b>0,b=1,x>0
logx=log10x · lnx=logex · log2 is common in computer science
L2 Basic values
logb1=0,logbb=1,logbbx=x,blogbx=x
L3 Graph
y=logbx:D=(0,∞),R=R,VA x=0,(1,0),(b,1)
Laws of logarithms
The three laws translate the laws of exponents into the language of logs: multiplying powers of the same base adds the exponents, so the log of a product is the sum of the logs. Before calculators, engineers multiplied long numbers by adding logs from printed tables. The change-of-base formula lets you evaluate a log to any base with the log or ln key on a calculator.
(a) Expand logy100x3 (b) Write 2lnx−ln(x+1)+3ln2 as a single ln
(a) log100+logx3−logy1/2=2+3logx−21logy
(b) lnx2−ln(x+1)+ln23=lnx+18x2
(a) 2+3logx−21logy · (b) lnx+18x2
Exponential and logarithmic equations
When x sits in an exponent, take logs of both sides and use the power law to bring x down. When x sits inside a log, combine the logs into a single one and rewrite it as a power using the definition. Every time you combine logs, go back to the original equation and check that each log is defined at your answer, because combining quietly widens the domain.
L7 Solving with logs
Abkx=C⇒x=klnbln(C/A),AC>0
L8 Log equations
logbu=logbv⟺u=v(u,v>0),logbu=c⟺u=bc
Example L-3 · Rejecting an extraneous solution
Solve log2x+log2(x−2)=3
Domain: x>0 and x>2, so x>2
Combine: log2(x(x−2))=3⇒x2−2x=8
(x−4)(x+2)=0⇒x=4 or −2 · reject −2, which is outside the domain
x=4 (check: log24+log22=2+1=3)
Example L-4 · When the bases cannot be matched
Solve (a) 32x=7 (b) 3⋅2x=48
(a) 2xln3=ln7⇒x=2ln3ln7≈0.8856
(b) Divide by 3 first: 2x=16=24
(a) ≈0.8856 · (b) x=4
Logarithmic inequalities
Log inequalities have two traps. The first is the domain: every log must be defined. The second is the base: if the base is less than 1 the function is decreasing, and the direction of the inequality flips when you remove the log. The final answer is the intersection of these two conditions.
L9 Log inequalities
b>1:logbu>logbv⟺u>v>0,0<b<1:⟺0<u<v
Example L-5 · A base below 1
Solve log1/2(x−1)>−2
Domain: x−1>0⇒x>1
−2=log1/24 because (21)−2=4 · base ½ flips the sign: x−1<4
Combine the conditions: 1<x<5
(1,5)
Logarithmic scales: pH, decibels and Richter
When a quantity ranges over many powers of ten, a log turns multiplication into addition, so one step on the scale means multiplying by a fixed factor. In electrical engineering decibels are used every day for gain, noise and the Bode plots of control systems.
L10 Log scales
pH=−log[H+],LdB=10logP0P=20logV0V,M=logA0A
Example L-6 · pH and decibels
(a) A solution has [H+]=3.2×10−4 mol/L. What is its pH? (b) By how many dB does the level rise when sound power doubles, and when it grows 1,000 times?
(a) −log(3.2×10−4)=−(log3.2−4)=4−0.505
(b) 10log2≈3.01 dB · 10log1000=30 dB
(a) pH ≈ 3.49 · (b) ≈ 3 dB and 30 dB
Log lab: graph · calculate · solve
Graph mode draws logbx together with bx so you can see the reflection in y=x; try b between 0 and 1 to get a decreasing graph. Calculate mode accepts inputs like 1/9, sqrt(2) or e^3 and gives an exact answer when the result is a fraction. Solve mode shows the three steps of formula L7.
Common trapslog(a+b)=loga+logb · logbloga=logba · (logx)2=2logx · and forgetting that the answer must make every log in the original problem defined.
Practice (with answers)
1log48+log927
23+23
3
2If log2=a and log3=b, write log72 in terms of a and b
72=23⋅32
3a+2b
3Solve ln(x+3)−lnx=ln4
xx+3=4⇒x=1, which is in the domain
x=1
4Solve 5x=2x+1
xln5=(x+1)ln2⇒x(ln5−ln2)=ln2
x=ln2.5ln2≈0.7565
5Solve log3(2x−1)≤2
Domain x>21 · 2x−1≤9
21<x≤5
6An amplifier has a voltage gain of 50. What is that in dB?
In high-school books and on calculators, log x with no base written means base 10, while ln x is the logarithm to base e ≈ 2.718. Calculus uses ln because the derivative of ln x is exactly 1/x. The two are related by change of base: ln x = log x / log e ≈ 2.3026 log x.
Why do solutions of log equations need checking?
Combining several logs into one widens the domain. For example, log₂x + log₂(x − 2) = 3 becomes x(x − 2) = 8, giving x = 4 and x = −2, but x = −2 makes log₂x undefined and must be rejected. A value produced by the algebra that lies outside the domain is called an extraneous solution.
Is log(a + b) equal to log a + log b?
No. The correct law is log(ab) = log a + log b: a product becomes a sum. There is no rule for splitting log(a + b). For example, log(1 + 1) = log 2 ≈ 0.301, but log 1 + log 1 = 0.
Why are logarithmic scales used?
For quantities with an enormous range, such as sound intensities that differ by factors of a trillion, or hydrogen ion concentrations that span many powers of ten. Logs bring the numbers into a readable range and turn multiplication into addition: increasing power ten times means adding 10 dB.
Mod
Ajarn Mod · Teerawut Savangboon Lecturer in Electrical Engineering, Dhonburi Rajabhat University, Samut Prakan · Profile