So say you had $5^x=25$ where $x$ is obviously $2$, how would you work $x$ out if the question wasn't obvious?
edit: What if the question was something like $a^x=-1$ (where $a$ is any number).
PS to all the maths elitists out there: Feel free to down vote, I just want to know how to do this.
A bit of context :
For $a >0$, real, define the function
$exp_a :\mathbb{R} \rightarrow \mathbb{R}$ by
$exp_a (x) = \exp (x\log a)$.
The image of this function is $(0,\infty)$.
Special cases:
$a^x = -1$.
$a$ cannot be a positive real (see above).
However, if $a=-1$,
the equation $(-1)^n =-1$, has solutions for $n \in \mathbb{Z}$.