Problem

This question is posted for 2020 Team Selection Test/TST in Zhejiang Province for CMO.
In[]:=
<<MaTeX`
Out[]=

Analysis

If you go directly use Maximize function, the answer is quite obvious
In[]:=
Maximize
1
x+y+z+3
-
1
(x+1)(y+1)(z+1)
,x>0,y>0,z>0,{x,y,z}
Out[]=

2
27
,{x2,y2,z2}
In[]:=
2
27
<
1
6
3
Out[]=
True
When it comes to explore the fine structure of this inequality, I find SliceContourPlot3D very helpful. If we take the LHS of the expression as function,
In[]:=
h[x_,y_,z_]:=
1
x+y+z+3
-
1
(x+1)(y+1)(z+1)
h[x,y,z]
maps a point in a 3D space to a real number, which is a high dimensional scalar potential field.
Say
{x,y,z}∈(0,1)x(0,1)x(0,1)
, thinking about mapping this unit cube to itself and assign a color to each point. This can be physically done with DensityPlot3D function. The option ClipPlanes is added to break the 3D body in half along the given plane.
In[]:=
DensityPlot3D[h[x,y,z],{x,0.1,4},{y,0.1,4},{z,0.1,4},ClipPlanesInfinitePlane[{{0,0,0},{1,1,0},{1,1,1}}],OpacityFunctionScalingFalse,PlotLegendsAutomatic,ColorFunction"TemperatureMap",Boxed->False,AxesLabel{"x","y","z"},LabelStyle14]
Out[]=
Base on the color distribution, the 3D plots give a rough idea but it is still quite hard to see the details. Directly working with this function may be far beyond the reach of high school students and the result may not be convincing unless some solid theoretic contents are discussed.
So I have to slice the spit cake. Given the cyclic symmetry of variables in the problem, it is wise to choose a control plane with constant sum of x, y and z. There are two ways to use this plot function
◼
  • Scan the slicing plane so the contours and color functions are scaled on each plane locally. So it is pointless to compare the color across different planes.
  • Manipulate[SliceContourPlot3D[h[x,y,z],x+y+zη,{x,0.1,2},{y,0.1,2},{z,0.1,2},Contours10,BoxedFalse],{η,1,6}]
    Out[]=
    ◼
  • Use DiagonalStackedPlanes as the second parameter of SliceContourPlot3D. Then the color is scaled across the values all slicing planes. Similarly, the number of contours specified is shared on all planes
  • In[]:=
    SliceContourPlot3D
    1
    x+y+z+3
    -
    1
    (x+1)(y+1)(z+1)
    ,{"DiagonalStackedPlanes",5},{x,0.1,4},{y,0.1,4},{z,0.1,4},Contours50,BoxedFalse
    Out[]=
    I prefer to use the first plot in this problem. The benefit is clear because
    h[x,y,z]
    is basically zero for large value of arguments. Thus the color distribution is flat in the second case. Also it shows there is a local maximum in each slice in the first plot. This can be proved clearly with the following argument with AM-GM over non negative values
    Out[]=
    The equality sign is valid iff
    x=y=z
    . Therefore we see the brightest color in the center of each contour plot. If we control
    x+y+z=η
    , in which η is a constant. So is
    1/η
    . At x = y = z = η/3,
    ◼
  • (x+1)(y+1)(z+1)
    reaches maximum
  • ◼
  • 1/
    (x+1)(y+1)(z+1)
    reaches minimum
  • which is equivalent to say -1/
    (x+1)(y+1)(z+1)
    reaches maximum. So does
    1/η-1/(x+1)(y+1)(z+1)
    .
    We can check the minimum quickly
    In[]:=
    SimplifyMinimize
    1
    (x+1)(y+1)(η-x-y+1)
    ,0<x<η,0<y<η,x+y<η,{x,y},Assumptionsη>0
    Out[]=
    
    27
    3
    (3+η)
    ,xRoot4-
    108
    27+27η+9
    2
    η
    +
    3
    η
    -
    108η
    27+27η+9
    2
    η
    +
    3
    η
    -
    27
    2
    η
    27+27η+9
    2
    η
    +
    3
    η
    +-
    54η
    27+27η+9
    2
    η
    +
    3
    η
    -
    27
    2
    η
    27+27η+9
    2
    η
    +
    3
    η
    #1+
    81
    27+27η+9
    2
    η
    +
    3
    η
    +
    54η
    27+27η+9
    2
    η
    +
    3
    η
    2
    #1
    -
    27
    3
    #1
    27+27η+9
    2
    η
    +
    3
    η
    &,1,y
    1
    2
    η-Root4-
    108
    27+27η+9
    2
    η
    +
    3
    η
    -
    108η
    27+27η+9
    2
    η
    +
    3
    η
    -
    27
    2
    η
    27+27η+9
    2
    η
    +
    3
    η
    +-
    54η
    27+27η+9
    2
    η
    +
    3
    η
    -
    27
    2
    η
    27+27η+9
    2
    η
    +
    3
    η
    #1+
    81
    27+27η+9
    2
    η
    +
    3
    η
    +
    54η
    27+27η+9
    2
    η
    +
    3
    η
    2
    #1
    -
    27
    3
    #1
    27+27η+9
    2
    η
    +
    3
    η
    &,1
    The root object looks scary but you can simplify it further by convert it to a rational function in terms of
    t
    In[]:=
    Factor4-
    108
    27+27η+9
    2
    η
    +
    3
    η
    -
    108η
    27+27η+9
    2
    η
    +
    3
    η
    -
    27
    2
    η
    27+27η+9
    2
    η
    +
    3
    η
    +-
    54η
    27+27η+9
    2
    η
    +
    3
    η
    -
    27
    2
    η
    27+27η+9
    2
    η
    +
    3
    η
    #1+
    81
    27+27η+9
    2
    η
    +
    3
    η
    +
    54η
    27+27η+9
    2
    η
    +
    3
    η
    2
    #1
    -
    27
    3
    #1
    27+27η+9
    2
    η
    +
    3
    η
    &[t]
    Out[]=
    2
    (-3t+η)
    (9-3t+4η)
    3
    (3+η)
    For non-negative η and t (also η >t because η is sum of three variable), the only way for the expression to be zero is t = η/3, which is the repeated root for x and y. Therefore the true maximum of the LHS of the original problem is
    In[]:=
    Maximize
    1
    η+3
    -
    27
    3
    (3+η)
    ,η,PositiveReals
    Out[]=
    
    2
    27
    ,{η6}
    which is same as picking the maximum of all maxima associated with η

    Explore generalized cases

    Let’s look at the maximum value of the following expression with
    k≥1
    Out[]=
    We may use the same argument as above. The key is to understand that the local maximum of each slicing plane is invariant w.r.t
    k
    . For instance
    k=2
    In[]:=
    Maximize
    1
    η+3
    -2*
    27
    3
    (3+η)
    ,η,PositiveReals
    Out[]=
    
    -45+6(-3+9
    2
    )+
    2
    (-3+9
    2
    )
    1458
    2
    ,η-3+9
    2
    
    In[]:=
    Simplify[%]
    Out[]=
    
    2
    27
    ,η-3+9
    2
    
    For any
    k≥1
    , we have
    In[]:=
    SimplifyMaximize
    1
    η+3
    -k*
    27
    3
    (3+η)
    ,η,PositiveReals,Assumptionsk≥1
    Out[]=
    
    2
    27
    k
    ,ηRoot243-
    54
    k
    -729k+162-
    54
    k
    #1+27-
    18
    k
    2
    #1
    -
    2
    3
    #1
    k
    &,2
    Factor the root object and we find the values all variables