Logarithm Rules
Product, quotient, power, and change-of-base rules for logs.
Core log rules
Valid for any base $b > 0,\ b \ne 1$, with positive arguments.
| Rule | Formula |
|---|
| logb(xy)=logbx+logby |
| logb(x/y)=logbx−logby |
| logb(xp)=plogbx |
| logbx=logkblogkx |
| logbb=1 |
| logb1=0 |
| logb(bx)=x,blogbx=x |
Natural log & e
The natural log uses base $e \approx 2.71828$; it is the default in ML (cross-entropy, log-likelihood).
| Rule | Formula |
|---|
| lnx=logex |
| ln(ex)=x,elnx=x |
| ln1=0,lne=1 |
| ax=exlna |
| ln∑iezi is a smooth max used in softmax stability |
| dxdlnx=x1 |