y=-x²+mx
=-[x²-2·(m/2)x+(m/2)²]+(m/2)²
=-[x-(m/2)]²+(m/2)².
∴x=m/2=3,即m=6时,
所求最小值为:
y|min=(m/2)²=(6/2)²=9.