Step-by-step explanation:
Let l be the length of west side and w be the length of north side.
East side = West side = l
North side = South side = w
Area = lw = 540 ft²
We have
[tex]lw=540\\\\w=\frac{540}{l}[/tex]
Cost for fencing
C = 30 w + 30 l + 20 w = 30 l + 50 w
[tex]C=30l+50\times \frac{540}{l}\\\\C=30l+\frac{27000}{l}[/tex]
At minimum cost derivative is zero,
That is
[tex]dC=30dl-\frac{27000}{l^2}dl\\\\30-\frac{27000}{l^2}=0\\\\30=\frac{27000}{l^2}\\\\l^2=900\\\\l=30ft[/tex]
We have
lw = 540
30 x w =540
w = 18 ft
Cost = 30 l + 50 w =30 x 30 + 50 x 18 = 1800 $
Minimum cost is 1800 $