APACHE CORPORATION $1,500,000,000 5.100% Notes due 2040 UNDERWRITING AGREEMENT