Because logs are inverse exponentials, the log laws follow directly from the index laws:
| Index law | Log law |
|---|
| am⋅an=am+n | log(xy)=logx+logy |
| am/an=am−n | log(x/y)=logx−logy |
| (am)n=amn | log(xn)=nlogx |
(These hold for any base, so I've omitted the subscript.)
Worked example. Expand log(7x2).
- Product rule: log7+log(x2).
- Power rule: log7+2logx.
Worked example. Combine 3log2+log5−log4 into a single log.
- 3log2=log(23)=log8.
- log8+log5=log(8×5)=log40.
- log40−log4=log(40/4)=log10=1 (using base 10).
Change of base (Extended-level extension): logax=logbalogbx. Lets you compute any-base log on a calculator that only does log10 or ln.
Example: log2100=log102log10100=0.3012≈6.64.