Solve exponential equations using logarithms