Tutorials › Calculus I › Maximizing An Inscribed Rectangle In A Circle

Optimization and Newton's Method · Tutorial 874 of 1495

Maximizing An Inscribed Rectangle In A Circle

Parameterize the rectangle using the circle’s radius, then use calculus and endpoint checks to identify and verify its maximum-area dimensions.

Advanced 11 min read

What You'll Learn

  • Express the rectangle’s half-width and half-height using the circle equation.
  • Reduce the area to a function of one variable with a precise feasible domain.
  • Find the interior critical point and check the boundary cases.
  • Prove that the maximizing rectangle is a square.
  • Compute the maximum dimensions and area for circles with specified centers or radii.
  • Recognize and correct common errors involving half-dimensions.

From Inscribed Geometry to an Area Function

A rectangle inscribed in a circle has all four vertices on the circle. Its dimensions cannot vary independently: making it wider changes how tall it can be while still fitting inside the same circle. Optimization turns this geometric restriction into a one-variable problem.

We will consider a nondegenerate rectangle whose sides are parallel to the coordinate axes, inscribed in a circle of radius \(R>0\). The circle may have any center. We will show that the unique largest-area rectangle is a square, and find its dimensions and area.

Definition: An axis-aligned rectangle has sides parallel to the coordinate axes. A rectangle is inscribed in a circle when each of its four vertices lies on the circle.

Why the Rectangle Is Centered at the Circle’s Center

First place the circle’s center at \((a,b)\). The rectangle’s horizontal coordinates are \(u\) and \(v\), with \(u<v\), and its vertical coordinates are \(s\) and \(t\), with \(s<t\). Its four vertices are \((u,s)\), \((u,t)\), \((v,s)\), and \((v,t)\).

The circle equation is \((X-a)^2+(Y-b)^2=R^2\). Since all four vertices lie on the circle, compare the equations for \((u,s)\) and \((v,s)\). Subtracting gives

$$ (u-a)^2-(v-a)^2=0 \quad\Longrightarrow\quad (u-v)(u+v-2a)=0. $$

Because \(u\ne v\), it follows that \(u+v=2a\). Repeating the comparison for \((u,s)\) and \((u,t)\) gives \(s+t=2b\). Thus the rectangle’s center is \((a,b)\), the circle’s center.

Let \(x=(v-u)/2\) be the rectangle’s half-width and \(y=(t-s)/2\) its half-height. Both are positive. The top-right vertex is \((a+x,b+y)\), so its membership in the circle gives the constraint \(x^2+y^2=R^2\). The full width is \(2x\), and the full height is \(2y\).

Key setup: The half-dimensions satisfy \(x^2+y^2=R^2\), while the area of the rectangle is \(A=4xy\). The factors of \(2\) matter: \(x\) and \(y\) are half-dimensions, not full side lengths.

Build the One-Variable Objective

From \(x^2+y^2=R^2\), the positive half-height corresponding to a chosen half-width \(x\) is \(y=\sqrt{R^2-x^2}\). A nondegenerate rectangle has \(0<x<R\). For checking the limiting cases, extend the area function to the closed interval \(0\le x\le R\); at either endpoint the area is zero, corresponding to a degenerate rectangle.

$$ A(x)=4x\sqrt{R^2-x^2}, \qquad 0\le x\le R. $$

This function is continuous on the closed interval, so it attains a maximum there. On the interior, differentiate using the product rule and the chain rule:

$$ \begin{aligned} A'(x) &=4\sqrt{R^2-x^2} +4x\left(\frac{-x}{\sqrt{R^2-x^2}}\right)\\ &=\frac{4(R^2-x^2)-4x^2}{\sqrt{R^2-x^2}}\\ &=\frac{4(R^2-2x^2)}{\sqrt{R^2-x^2}}. \end{aligned} $$

For \(0<x<R\), the denominator is positive. Therefore an interior critical point occurs exactly when \(R^2-2x^2=0\). Since \(x>0\), the solution is \(x=R/\sqrt{2}\). The constraint then gives \(y=R/\sqrt{2}\) as well.

Why This Critical Point Is the Global Maximum

A critical point alone does not establish a global maximum. We must also account for the endpoints and determine how the area changes across the feasible interval. The derivative provides that information: its sign is the sign of \(R^2-2x^2\).

1
Before the critical point.
When \(0<x<R/\sqrt{2}\), we have \(R^2-2x^2>0\). Thus \(A'(x)>0\), so the area increases.
2
At the critical point.
When \(x=R/\sqrt{2}\), the numerator of \(A'(x)\) is zero. The constraint gives \(y=R/\sqrt{2}\).
3
After the critical point.
When \(R/\sqrt{2}<x<R\), we have \(R^2-2x^2<0\). Thus \(A'(x)<0\), so the area decreases.
4
At the endpoints.
The extended function has \(A(0)=0\) and \(A(R)=0\), both less than its positive interior value.

The function therefore increases to the critical point and decreases afterward. That point is the unique global maximum on the full feasible interval. Substituting \(x=y=R/\sqrt{2}\), the full side lengths are \(2x=2y=\sqrt{2}R\), and the maximum area is \(4xy=2R^2\).

Theorem: Among all axis-aligned rectangles inscribed in a circle of radius \(R\), the unique maximum-area rectangle is a square. Its side length is \(\sqrt{2}R\), and its area is \(2R^2\). Its diagonal is \(2R\), the circle’s diameter.

A Geometric Check on the Result

At the maximum, the two half-dimensions are equal. The rectangle is consequently a square, and the circle constraint confirms its diagonal: if each side is \(\sqrt{2}R\), the square’s diagonal has length

$$ \sqrt{(\sqrt{2}R)^2+(\sqrt{2}R)^2} =\sqrt{2R^2+2R^2} =2R. $$

This agrees with the fact that the square’s opposite vertices lie at opposite ends of a diameter. The area of the largest rectangle is \(2/\pi\) times the area \(\pi R^2\) of the circle. That ratio is the same for every radius: changing the circle’s size scales all lengths by the same factor and areas by its square.

Worked Examples

Worked Example: A Circle of Radius 5

Find the dimensions and area of the largest axis-aligned rectangle inscribed in a circle of radius \(5\) units. Here \(R=5\). The maximizing half-dimensions are

$$ x=y=\frac{R}{\sqrt{2}}=\frac{5}{\sqrt{2}}=\frac{5\sqrt{2}}{2}\text{ units}. $$

Each full side length is twice its half-dimension:

$$ 2x=2y=2\left(\frac{5\sqrt{2}}{2}\right)=5\sqrt{2}\text{ units}. $$

The area is

$$ A=(5\sqrt{2})(5\sqrt{2})=25\cdot 2=50\text{ square units}. $$

Check the result against the circle constraint using the half-dimensions: \(x^2+y^2=25/2+25/2=25=R^2\). The full side lengths also give a diagonal \(\sqrt{(5\sqrt{2})^2+(5\sqrt{2})^2}=\sqrt{50+50}=10\) units, equal to the circle’s diameter. Both checks agree.

Worked Example: A Circle with Diameter 12

Find the maximum-area inscribed rectangle when the circle’s diameter is \(12\) centimeters. The radius is half the diameter, so \(R=12/2=6\) centimeters. The maximum-area rectangle is a square with side length

$$ \sqrt{2}R=6\sqrt{2}\text{ centimeters}. $$

Its area is

$$ 2R^2=2(6^2)=2(36)=72\text{ square centimeters}. $$

To check, the square’s diagonal is \(\sqrt{(6\sqrt{2})^2+(6\sqrt{2})^2}=\sqrt{72+72}=\sqrt{144}=12\) centimeters. Its area computed from its sides is \((6\sqrt{2})(6\sqrt{2})=72\) square centimeters, matching the maximum-area formula.

Worked Example: A Circle Not Centered at the Origin

Suppose a circle has equation \((X-4)^2+(Y+3)^2=100\). Find the maximum-area axis-aligned rectangle inscribed in it. Comparing the equation with \((X-a)^2+(Y-b)^2=R^2\), its center is \((4,-3)\) and its radius is \(R=10\).

The maximum-area rectangle is centered at the circle’s center, and its half-width and half-height are both \(10/\sqrt{2}=5\sqrt{2}\). Thus its width and height are each \(10\sqrt{2}\) units, and its area is

$$ (10\sqrt{2})(10\sqrt{2})=100\cdot 2=200\text{ square units}. $$

The four vertices are \((4\pm5\sqrt{2},-3\pm5\sqrt{2})\), with the two signs chosen independently. For every such vertex, the squared coordinate differences from the center sum to \((5\sqrt{2})^2+(5\sqrt{2})^2=50+50=100\). Hence all four vertices lie on the given circle, and the side lengths produce the stated area.

Common Pitfall: Confusing Half-Dimensions with Side Lengths

The variables \(x\) and \(y\) in the constraint \(x^2+y^2=R^2\) measure from the circle’s center to one corner. They are half the rectangle’s width and height. Forgetting that distinction loses a factor of four in the area.

For example, with \(R=5\), the maximizing half-dimensions are \(x=y=5/\sqrt{2}\). A mistaken calculation might call these the full side lengths and report an area of \((5/\sqrt{2})^2=25/2\) square units. But each full side is twice as long, so the correct area is

$$ (2x)(2y)=4xy =4\left(\frac{5}{\sqrt{2}}\right)\left(\frac{5}{\sqrt{2}}\right) =4\left(\frac{25}{2}\right) =50\text{ square units}. $$

A reliable check is to calculate the rectangle’s dimensions from the center-based variables before calculating area: width \(=2x\), height \(=2y\), and area \(=(2x)(2y)\).

When This Optimization Method Is Useful

The circle equation is the constraint, and the rectangle’s area is the objective. Expressing one half-dimension in terms of the other reduces the problem to a single variable; checking the critical point together with the boundary completes the global comparison. This same structure appears whenever a geometric restriction links dimensions that would otherwise vary independently.

The answer also captures a general geometric tradeoff. A rectangle can use more of the available radius in one direction only by using less in the perpendicular direction. At the maximum, neither direction is favored: the half-width and half-height are equal. The result is not just a plausible symmetric guess; the derivative and endpoint checks establish that it is the unique largest-area choice.

Check Your Understanding

Use the center-based half-dimensions and account for the feasible endpoints in your reasoning.

  1. For a circle of radius \(8\), what are the side lengths and maximum area of an inscribed axis-aligned rectangle?
  2. Why does the constraint involve the half-width and half-height rather than the full side lengths?
  3. For the area function \(A(x)=4x\sqrt{R^2-x^2}\), on which part of its domain is the area increasing?
  4. Why must the endpoints \(x=0\) and \(x=R\) be checked even after finding an interior critical point?
  5. How does the result change if the circle is translated without changing its radius?

Test yourself: Calculus I final exam practice

Ready to check what you know? Work a full-length practice final, then open the complete worked solutions.

Want all 1,114 practice problems?

This tutorial covers one topic. Calc Pass covers the full Calculus AB & BC curriculum (the core of Calculus I and II): full review, every practice question, and step-by-step solutions to each one.

QR code to download the Calc Pass app

Get the Calc Pass App

Scan to download and practice on the go, with instant scoring.

Calc Pass Volume 1: 1,114 Practice Questions book cover

Vol. 1: 1,114 Questions

The complete practice question bank, organized by AB & BC topic.

View on Amazon
Calc Pass Volume 2: Solutions Manual book cover

Vol. 2: Solutions Manual

Fully worked solutions to every question in Volume 1.

View on Amazon