$\displaystyle 9^x = 81.$ Determine x.

Now I found that the answer is 2 via trial and error. However, I wanted to know whether or not there was a formal mathematical procedure which proves my answer. I haven't been taught this unit yet, for the unit I'm working on now (involving inverse functions) hasn't been assigned yet. I've just been working ahead.