MathLabs

Problem 1

Let x,y,zx,y,z be nonnegative real numbers with x+y+z=1x+y+z=1. Show that 0≤xy+yz+zx−2xyz≤7270\le xy+yz+zx-2xyz\le\frac{7}{27}.
Step 3 of 4: Handle the two signs
In plain words

A linear function on an interval reaches its maximum at one endpoint; the sign tells us which endpoint to choose.

s≤12: f≤s(1−s)≤14<727;s≥12: f≤g(s)=12s3−54s2+ss\le\frac12:\ f\le s(1-s)\le\frac14<\frac7{27};\qquad s\ge\frac12:\ f\le g(s)=\frac12s^3-\frac54s^2+s
The cubic upper-bound gap on the relevant interval.
A plot of the cubic g(s)-7/27 used in the upper-bound check.
Detailed analysis

If s≤1/2s\le1/2, the coefficient of pp is nonpositive, so the maximum uses p=0p=0. If s≥1/2s\ge1/2, it is nonnegative, so the maximum uses p=s2/4p=s^2/4, giving the displayed cubic gg.