Let's calculate the value of Z at each corner point:
At point A(0,8): ZA=a(0)+b(8)=8b
At point B(4,0): ZB=a(4)+b(0)=4a
At point C(8,0): ZC=a(8)+b(0)=8a
For a maximum to occur on segment AB (not just at endpoints), the function must increase from C to B and from B to A.
For Z to increase from C to B: ZB>ZC which means 4a>8a, so a<0
For Z to increase from B to A: ZA>ZB which means 8b>4a, so 2b>a
For the maximum to occur exactly on segment AB, the level curves of Z must be parallel to AB.
The slope of AB is:
4−00−8=4−8=−2
The slope of the level curves Z=ax+by is −ba
For these to be parallel: −ba=−2
Which simplifies to: a=2b
The relation between a and b is a=2b.
We can verify: If a=2b, then ZA=8b and ZB=4a=4(2b)=8b, confirming equal values at both points.