Positioning textblock in LaTeX Beamer

There are times that we wanted to position an equation on the top right of the slide in beamer. The easiest way to do it is to use two packages: textpos and eso-pic. textpos package positions the textblock, while eso-pic sets up a grid system on the slides.