Steply

A rectangular garden of 50 m² is fenced on three sides. A wall is…

Step by step, with the reason for every step · Optimization · Calculus 1

Step by step

The question

Question: A rectangular garden of 50 m² is fenced on three sides.

A wall is the fourth side.

Find the least fencing needed.

1 Draw and name

The wall is one side: no fence there.

The two sides that touch the wall are x.

The side across is y.

x = each side touching the wall
y = the side across

2 Write the fencing

The fence is two x sides and one y side.

L = 2x + y

3 Use only one letter

Two letters.

The area gives the link: x times y is 50.

xy = 50

So y = 50 over x.

y = 50x

Put it in place of y.

L = 2x + 50x

4 Which x make sense

A length is positive: x is more than 0.

x > 0 =

5 Slope = 0

The smallest value is where the slope is 0.

2x gives 2.

50/x is 50x to the power −1, which gives −50/x².

L′(x) = 2 − 50x2
50x = 50x−1 → −50x−2

Set it to 0, and move the fraction across.

50x2 = 2

Times both sides by x², so they stay equal.

50 = 2x2

Divide by 2.

x2 = 25

x squared is 25, so x is 5.

Minus 5 squared is also 25, but x must be positive.

x = 5 (not −5)

Careful!

A length cannot be negative.

Only x = 5 is allowed.

Careful: not x = −5 ✗

6 Make sure it is the smallest

Before 5, the slope is negative: going down.

After it, positive: going up.

Down, then up: the bottom.

A minimum.

L′(4) = −1.12 < 0 ↘, L′(6) = 0.61 > 0 ↗

7 Answer the question

The other side: 50/5 is 10.

y = 505 = 10

So the least fencing is 20 m.

L(5) = 2 × 5 + 10 = 20 m

8 Check

Let's check with x a bit smaller: 4 gives 20.5.

x = 4: L = 20.5

And x = 6 gives 20.33.

Both are bigger than 20.

Right!

x = 6: L = 20.33

Let's look back.

First: draw and name.

Then: write the fencing.

Then: use only one letter.

Then: which x make sense.

Then: slope = 0.

Then: make sure it is the smallest.

Then: answer the question.

Last: check.

Answer
L(5) = 2 × 5 + 10 = 20 m

Your turn

Try this one yourself, then check:

Show the answer
least fencing = 40 m

More from Optimization

The whole lesson: Optimization →