Are you asking about the theory or practically how to do it to get more than 5 use out of yeast?
If your asking about the whys and wherefore's homebrewers mostly just bottom crop (scoop some sediment from the bottom) so doing this repeatedly put selective pressure on the yeast so you end up with results like theredarren has detailed.
Large breweries have dedicated labs for yeast propogation and smaller (micro) brewers simply uses dried yeast as it's a lot more economically sound to use it as it's much easier to handle. Also the yeast labs like white labs or wyeast will propogate a strain up to commercial pitching levels for you if a brewery wants
If your asking about
how to go more than 5 generations I know three ways that you can go to at least 13 gens possibly infinitaley (or until you got bored with the strain)
1. Top cropping. This is just simply scooping the krausen and reusing it. Because you get lots of different types of cells you can top crop afaik indefinately. There are a couple of caveats. Not all strains are true top cropping strains so not worth bother doing it. I've read you have to get at the 'middle of the krausen too.
2. This technique is one I've come across recently and only read of it once, on another forum. 36 hours after pitching scoop a hole in the krausen and collect about 500ml of the the wort from just below the krausen in to a bottle. Let it ferment out then put the yeast you've got into a starter when you need it. I tried the first part of this and it worked well. Because your collecting just below the krausen you get all the different types of cells as the wort churns due to fermentation so I think you could possibly do this infinatley. Similar to top cropping but you dont need a big krausen
3. Overbuilding. Detailed here
http://brulosophy.com/methods/yeast-harvesting/ He says he has gone to 13 gens so if you just repitched the trub from each gen 5 time then you could potentially get 13x5 uses out of 1 yeast packet/vial
3.