若x+y=3,求½x²+xy+½y²的值.