Books · The Fiddler: Solutions
Chapter 95
When Is a Triangle Like a Circle?
For a circle, the derivative of the area with respect to the radius equals the circumference: . Define the differential radius of any shape as the length for which , where is the area and the perimeter as the shape is scaled. What is the differential radius of an equilateral triangle of side ?
The Fiddler, Zach Wissner-Gross, May 17, 2024(original post)
Solution
Scale any shape by a factor . Its area grows as and its perimeter as , while the differential radius, being a length, scales linearly, . Then and setting this equal to forces , so at the shape’s actual size (), This is the area over the semiperimeter, which for any shape with an inscribed circle is exactly the inradius. For the equilateral triangle, and , giving : precisely the triangle’s inradius. A triangle behaves like a circle of its own inscribed circle.
The computation
Encode the definition rather than the answer: set the area and perimeter as functions of the scale , form with , and solve for . For the equilateral triangle it returns .
import sympy as sp
t, s, a, b, lam = sp.symbols('t s a b lambda', positive=True)
def diff_radius(A_of_t, P_of_t):
r = lam * t # the differential radius scales linearly
dA_dr = sp.diff(A_of_t, t) / sp.diff(r, t)
lam_sol = sp.solve(sp.Eq(dA_dr, P_of_t), lam)[0]
return sp.simplify((lam_sol * t).subs(t, 1)) # evaluate at actual size
print(diff_radius(sp.sqrt(3)/4 * (s*t)**2, 3*s*t)) # sqrt(3)*s/6
Extra Credit
What is the differential radius of a rectangle with sides and ?
Solution
The same holds. With and , half the harmonic mean of the sides. For a square () it is , the inradius again; for a long thin rectangle it tends to half the short side, the largest disc the rectangle can hold.
The computation
The same diff_radius routine, now with the rectangle’s area and perimeter, returns .
print(diff_radius(a*b * t**2, 2*(a+b) * t)) # a*b/(a + b)