I'm not aware of a tutorial but generally speaking, that system is called an inverted pendulum.

You can find a lot more about it here http://en.wikipedia.org/wiki/Inverted_pendulum