Here's a lot of reading for ya, some really great info.
gears
gear ratios
manual transmissions
differentials
They should be read in that order to better understand the whole system.
For more on engines, brakes, transmissions and other automotive stuff (even rotary engines) check out the howstuff works
automotive section.