There are usually two methods to solve the condition maximum:
1, elimination method is to establish the functional relationship between two quantities according to conditions, and then substitute it into algebraic formula to solve the maximum value of the function;
2. Flexible deformation conditions: by replacing the constant "1", we construct a formula in which the sum or product is a constant, and then use basic inequality to solve the maximum value.