Vismo · Create · Library · Topics · Guides · Pricing

Optimization: the biggest rectangle for a fixed perimeter

An animation shows a rectangle with fixed perimeter 20 changing shape as its width varies, tracing the area function A(w) = w(10 - w) on a graph. The derivative 10 - 2w is shown crossing zero at w = 5, marking the maximum area of 25, achieved by a square. Useful for students learning optimization, connecting algebraic functions, calculus derivatives, and geometric intuition about shape and area.

16:9 · every frame verified for overlaps, spacing and edges before rendering

The prompt that made it

With perimeter 20, the rectangle's area A(w) = w(10 - w) is traced as the width changes; the derivative 10 - 2w = 0 gives w = 5 and the square, area 25, wins.

Make your own version

Make the next one in this series

Related animations

Where e comes from: compounding more and more often
Where e comes from: compounding more and more often

This animation tracks one dollar growing under 100% annual interest as the number of compounding periods incre…

Gradient descent: walk downhill on the loss
Gradient descent: walk downhill on the loss

A ball rolls along the parabola L(w) = (w-3)^2 + 1, starting at w = -1 and updating via w <- w - eta dL/dw wit…

The harmonic series diverges
The harmonic series diverges

Bars representing 1/n shrink toward zero, illustrating why it seems the sum should settle down. The animation …

The squeeze theorem: why sin x / x tends to 1
The squeeze theorem: why sin x / x tends to 1

This animation visualizes why sin x / x approaches 1 as x approaches 0, even though the function itself is und…

Newton's method: follow the tangent to the root
Newton's method: follow the tangent to the root

Starting from x0 = 2.5 on f(x) = x^2 - 2, this animation draws each tangent line and follows it down to the x-…

1/2 + 1/4 + 1/8 + ... = 1: filling a square
1/2 + 1/4 + 1/8 + ... = 1: filling a square

A unit square is progressively filled by repeatedly halving the remaining area, generating the series 1/2 + 1/…