I dunno if I did this right but 3Gs battery life is awful. I contacted Apple they told me to return it. This would make the third one since June 20th. I haven't gone yet because I don't want to deal with the Genius bar because I don't think it's the phone I believe its the battery... ahh something like that.
I have researched and and researched this. Some sources say that it is a hardware defect, this is the reason that att&apple will give you a new iphone; however i believe this to be a software neglection, and that the system is not optimized and wwill probably be fixed with a software update as is the problem with a lot of smartphones upon initial release.
Also i have noticed that if you follow the rules of battery charging, (i.e. giving the phone a complete charge, fully discharge battery and fully charge a minimum of 6 hrs with no use while charging it will increase your battery life.
in addition do this charge with charging from the wall , and not your computer. the wall is a contant DC source, and computer is an AC source like a car charger and current is variable. So a 100% charge from the Computer is not the same as a 100% charge from the wall outlet.
Hope this helps, even with good battery charging is still barely make it through a 14 hr day of moderate use, or about 5-4 hrs of heavy use.