Mating with a King and Rook

A king and rook together can mate a king. Here's a typical final position. Note that the white rook is attacking the black king. Note also that the king cannot move to any neighboring square because the white king and rook combine to control them all.

So how to force the king into the corner? Here's how.