Logarithms Explained: Definition, Rules, and Examples