I've been looking into rocket propulsion a bit and got stumped on something. I read that the thrust generated by an engine can be determined by the following: $$ F = \frac{w}{g}v_{e}+A_{e}(P_{e}-P_{a}) $$ where $\frac{w}{g}$ is the mass flow rate, $v_{e}$ is the exhaust speed, $A_{e}$ is the exit area, $P_{e}$ is the exit pressure and $P_{a}$ is the ambient pressure. Apparently the max thrust can be obtained when the exit and ambient pressures are equal as this makes the second term zero. I don't understand this. Wouldn't you want to maximize $P_{e}$ so as to increase the value of $F$?
Hope this isn't a dumb question...