This is not really a United-specific question. We have a whole separate forum for this:
http://www.flyertalk.com/forum/travel-children-221/
I would just add that it is never advisable to hold your baby on your lap for safety reasons, let alone for four hours.