Okay--this is a maximization problem given a constraint.
We have our function to be maximized f(x,y) [[here f(x,y) = A(x,y) = xy to be maximized)
We have our constraint function (shown below) we call g(x,y)
g(x,y) is the dimensions of the poster = 180 = (y+10)(x+8)
vertical y + 6" + 10" margins, horiz + two 4" margins
We set "Solution= S(x,y) = f(x,y) - λg(x,y)
We take dS/dx = dS/dy = 0
(((SEE BELOW AT "SOLUTION")))
********************************************************************************************************************
We want to maximize the area of say X*Y=A within the border of the poster which has 6" margin atop, and 4" margins L, R, and below--if I interpreted correct.
Let X be our imaged horizontal and y, our vertical.
Hence
f(x,y) = xy
g(x,y) = (x+8)(y+10) = 180 = xy + 10x + 8y + 80
(Do you get this?) IF SO--SKIP TO BELOW THE ILLUSTRATION
*********************************************************************************************
The same result can be found by adding the squares and rectangles of the image
(crappy job here but does trick---
----------------------------
| 6^ |
| ____x___ |
| 4 | | 4 |
| | (y)| |
| |________| |
| 4 |
---------------------------
First the CORNER SQUARES OF THE MARGIN
View upper left square of 4x6, upper right of 4x6 (all in cm squared)
lower left and lower right both of 4x4----this gives 24+24+16+16 or 48+32 or
**(80)
NOW THE SIDES AND TOP AND BOTTOM RECTANGLES: We have atop "x" by 6;
at left and right we have "y" by 4, and at bottom we have "x" by 4--this gives
**4x+6x+4y+4y= 10X+8Y
Now we add the central quadrilateral: area of
X*Y
Adding these we get XY+ 10X+8Y+80=180 which is equivalent to (x+8)(y+10)=180 (see?)
****************************************************************************************************************
SOLUTION
So we have "S(x,y)" = f(x,y) - λ g(x,y)
then dS/dx = 0 = dS/dy
or xy - λ(xy+10x+8y-100)
or xy - λxy - 10xλ - 8yλ -100λ
TAKE DERIVATIVE w/rspct to x:
y - λy - 10λ = 0 OR λ = y / (y+10)
TAKE DERIVATIVE w/rspct to y:
x - λx - 8λ = 0 OR λ = x / (x+8)
NOW SET λs equal: x/(x+8) = y / (y+10)
x(y+10) = y(x+8)
xy + 10x = xy + 8y
10x = 8y
1.25x=y
Substitute this into (x+8)(y+10)=180
or xy + 10x + 8y - 100=0 to get
1.25x2 + 10x+ 8*(1.25x) -100 = 0
Solve using (a,b,c) = (1.25, 20,-100) to get X=4 Y =5
The area is 20; the dimensions are as noted.