Contents

How far must you move your chainsaw?

Posted on June 8, 2026 by Daniel Vitek.
Tagged: , .
This past weekend, I happened to go to a timbersports competition for the first time.
Let’s not inquire as to why.
One category of events in the competition sees timbersportsmen cut through a log with a chainsaw in as little time as possible. Interestingly, the logs at this competition were slightly larger in diameter than the length of the chainsaw blades of the competitors. This led to a fair bit of planning and some rather-complicated chainsaw maneuvering from the contestants, which got me thinking about the following math problem:

You have a log with circular cross-section of radius RR and a chainsaw of length cRcR, where 1c21 \le c \le 2. What’s the minimum distance you need to move the handle of the chainsaw to be able to cut through the entire cross-section (as a function of cc)?

In particular, you’re allowed to rotate the chainsaw arbitrarily at no “movement cost”; the only constraint is that the chainsaw handle cannot enter the cross-section of the tree (since chainsaw handles are thicker than chainsaw blades).

Getting the correct answer to this question should be doable for a good high school student. Proving carefully that that answer is correct, however, is an entirely different matter that will take us a little further afield, and give us the opportunity to play with some fun topics in functional analysis and convex geometry. Let’s get started!

Setup

In order to give a careful proof, we’ll need a more formal statement of the problem. We’ll ignore the scaling factor RR, so that the closed unit ball B(0,1)R2B(0,1) \subset \mathbb{R}^2 represents the log. Then given 1c21 \le c \le 2 (the chainsaw-length-to-log-radius ratio), we let P(c)\mathcal{P}(c) be the set of absolutely continuous paths
In other words, those paths for which the arclength integral actually recovers the arclength.
γ:[0,1]R2B(0,1)\gamma: [0,1] \longrightarrow \mathbb{R}^2-B(0,1)^{\circ} such that, writing Γ=γ([0,1])\Gamma = \gamma([0,1]) for the image, supxB(0,1)d(x,Γ)c.\sup_{x \in B(0,1)} d(x, \Gamma) \le c. We’ll call paths in P(c)\mathcal{P}(c) admissible: these are the valid paths for the handle of the chainsaw, because the covering condition above captures the free rotation we allow and the R2B(0,1)\mathbb{R}^2-B(0,1)^{\circ} codomain enforces that the handle cannot enter the cross-section of the log.

Then the formal version of our informal question above simply asks for the value (up to a factor of RR that we ignore henceforth) of infγP(c)arclength(γ).\inf_{\gamma \in \mathcal{P}(c)} \mathrm{arclength}(\gamma).

Let’s start with an easy warm-up exercise: namely, showing that the supremum in the constraint on paths in P(c)\mathcal{P}(c) can actually be replaced by a maximum. This is the standard first-course-in-analysis exercise that xd(x,Γ)x \longmapsto d(x, \Gamma) is continuous, which is perhaps most easily accomplished via showing the stronger statement that xd(x,Γ)x \longmapsto d(x, \Gamma) is 1-Lipschitz using a quick triangle-inequality argument. This lets us talk about “the worst point of the log” later, which we will want to do once we’re actually doing geometry and not just functional analysis.

The plan

Here is the claim we’re going to spend the rest of this post proving.

Theorem. For 1c21 \le c \le 2, infγP(c)arclength(γ)=4arccos(c/2),\inf_{\gamma \in \mathcal{P}(c)} \mathrm{arclength}(\gamma) = 4\arccos(c/2), and the infimum is attained by traversing any closed arc of the unit circle of angular width 4arccos(c/2)4\arccos(c/2) (without backtracking).

Our approach can be broken into three separate steps, which draw on three different fields:
  1. Functional analysis: a shortest admissible path exists.
  2. Convex geometry: radially projecting a path onto the unit circle never hurts.
  3. Euclidean geometry: the narrowest admissible arc has arclength 4arccos(c/2)4\arccos(c/2).

Note that steps 2 and 3 together suffice to prove the theorem, so that strictly speaking, step 1 is unnecessary. But it’s also where I learned the most in writing this up, so we’ll do it anyway.

The direct method

The standard calculus-of-variations technique for showing existence of a minimizer of some bounded-below functional on a space of admissible functions is rather uncreatively called the direct method. The steps of the direct method are:

The really interesting part here will be the compactness, because our first attempt is going to fail. Before we get there, though, let’s check two easy preliminaries: that our functional is bounded below, and that an admissible path exists. The first is obvious, since arclength is nonnegative. The second follows by noting that γ(t)=(cos2πt,sin2πt)\gamma(t) = (\cos 2\pi t, \sin 2\pi t) is admissible for all c1c \ge 1.

A failed argument

Pick a minimizing sequence γkP(c)\gamma_k \in \mathcal{P}(c), writing Lk=arclength(γk).L_k = \mathrm{arclength}(\gamma_k). Since Lkm=infγP(c)arclength(γ),L_k \longrightarrow m = \inf_{\gamma \in \mathcal{P}(c)} \mathrm{arclength}(\gamma), after discarding finitely many terms we may assume Lkm+1L_k \le m + 1 for all kk. Since each γk\gamma_k is absolutely continuous, its arclength is computed by the usual integral, so this is the statement that 01γk(t)dt=Lkm+1.\int_0^1 |\gamma_k'(t)| \, dt = L_k \le m + 1. In other words, the derivatives γk\gamma_k' are bounded in L1L^1.

The most straightforward way to construct a minimizer from here would be to extract a weakly convergent subsequence of the derivatives and integrate the weak limit back up into an actual path. In a reflexive space, this would work, because bounded sequences in a reflexive Banach space always have weakly convergent subsequences. Unfortunately L1L^1 is not reflexive, and bounded subsets of L1L^1 need not be weakly sequentially compact. The obstruction
The Dunford–Pettis theorem, which says that a bounded subset of L1L^1 is relatively weakly compact iff it is uniformly integrable, tells us that mass concentration is in fact the only obstruction.
here is mass concentration, exhibited by the classic example fk=k1[0,1/k]f_k = k \cdot \mathbf{1}_{[0,1/k]}. This sequence is bounded in L1L^1 (since each fkf_k has integral 11), but no subsequence converges weakly, because testing against continuous functions shows the only candidate limit is a Dirac delta at 00 (which is not in L1L^1).

This is a real problem for our argument, since a minimizing sequence of admissible paths is perfectly free to concentrate its derivative on the time interval [0,1/k][0, 1/k] and then stand still for the rest of its time. The speeds γk|\gamma_k'| of such a sequence are, more or less exactly, the concentrating example above.

Reparametrization to the rescue

The derivative-concentration failure mode is kind of stupid in our context, though, since it’s just an artifact of how we parametrized the path, and the only two properties we care about—distance from the image and arclength—are independent of the parametrization of γ\gamma. So we have a sort of gauge freedom, because we don’t have to care about the parametrization. We can use this gauge freedom to replace a path γ\gamma by its arclength reparametrization, which has much better properties, namely:

Fact. Let γ\gamma be an absolutely continuous path of arclength LL. The arclength reparametrization γ~\tilde\gamma is LL-Lipschitz (and hence absolutely continuous).

To see this, observe that for u<vu < v, γ~(u)γ~(v)|\tilde\gamma(u) - \tilde\gamma(v)| is at most the arclength of γ~\tilde{\gamma} between t=ut = u and t=vt = v, which is exactly L(vu)L(v - u). Also note that γ~\tilde{\gamma} is still admissible because it has the same image as γ\gamma.

The upshot here is that a uniform Lipschitz bound is a much stronger form of compactness than a uniform L1L^1 bound on derivatives. Indeed, we basically just incant “Arzelà–Ascoli” and get a uniformly convergent subsequence
Which is what we wanted out of our compactness argument to begin with.
, since the uniform Lipschitz bound gives us the equicontinuity hypothesis of Arzelà–Ascoli.

Running the machine

Let’s start from the top with our new reparametrized direct-method approach. We still know that our arclength functional is bounded from below, and we know that an admissible path exists. So let’s let γk\gamma_k be some minimizing sequence, and let’s replace each γk\gamma_k by its arclength reparametrization γ~k\tilde{\gamma}_k, which (again after discarding finitely many terms) is (m+1)(m+1)-Lipschitz.

We have three steps left to run:

Getting a limit. We already have the equicontinuity hypothesis of Arzelà–Ascoli taken care of, so we only need the uniform boundedness. The idea here is to use the admissibility condition plus the Lipschitz property to bound each γ~k\tilde{\gamma}_k in a large ball. Writing Γk\Gamma_k for the image of γ~k\tilde{\gamma}_k, the admissibility constraint tells us that d(0,Γk)c2d(0, \Gamma_k) \le c \le 2. Hence some point γ~k(sk)\tilde{\gamma}_k(s_k) has γ~k(sk)2|\tilde{\gamma}_k(s_k)| \le 2. Hence γ~(t)γ~k(sk)+γ~k(t)γ~k(sk)2+(m+1)(tsk)m+3,|\tilde{\gamma}(t)| \le |\tilde{\gamma}_k(s_k)| + |\tilde{\gamma}_k(t) - \tilde{\gamma}_k(s_k)| \le 2 + (m+1)(t-s_k) \le m+3, so that γ~k\tilde{\gamma}_k is uniformly bounded. Then by Arzelà–Ascoli, some subsequence converges uniformly to a map γ:[0,1]R2\gamma_\infty: [0,1] \longrightarrow \mathbb{R}^2 with image Γ\Gamma_{\infty}.

The limit is admissible. A pointwise limit of (m+1)(m+1)-Lipschitz maps is (m+1)(m+1)-Lipschitz, and Lipschitz maps are absolutely continuous; furthermore, the closed conditions γ~k(t)1|\tilde{\gamma}_k(t)| \ge 1 pass to the limit γ\gamma_{\infty}. So γ\gamma_\infty is an absolutely continuous path in R2B(0,1)\mathbb{R}^2 - B(0,1)^\circ; now we just need to check the distance condition.

Let ϵk=suptγk(t)γ(t)0\epsilon_k = \sup_t |\gamma_k(t) - \gamma_\infty(t)| \longrightarrow 0. For every xB(0,1)x \in B(0,1) we have d(x,Γ)d(x,Γk)+ϵkd(x, \Gamma_\infty) \le d(x, \Gamma_k) + \epsilon_k. Since the γ~k\tilde{\gamma}_k are admissibile, this gives d(x,Γ)c+ϵkd(x, \Gamma_\infty) \le c + \epsilon_k for every kk, so that d(x,Γ)cd(x, \Gamma_\infty) \le c. Hence γ\gamma_{\infty} is accessible.

Arclength is lower semicontinuous. Recall that the arclength of a curve γ:[0,1]Rn\gamma: [0,1] \longrightarrow \mathbb{R}^n is given by arclength(γ)=sup0t0<<tn1i=0n1γ(ti)γ(ti+1).\mathrm{arclength}(\gamma) = \sup_{0 \le t_0 < \cdots < t_n \le 1} \sum_{i=0}^{n-1} |\gamma(t_i) - \gamma(t_{i+1})|. For a fixed partition 0t0<<tn10 \le t_0 < \cdots < t_n \le 1, the functional γiγ(ti+1)γ(ti)\gamma \longmapsto \sum_i |\gamma(t_{i+1}) - \gamma(t_i)| is continuous under pointwise convergence. Arclength is the supremum of these functionals over all partitions, and a supremum of continuous functionals is lower semicontinuous.
Arclength is not continuous under pointwise or even uniform convergence, however: consider the case of ever-finer zigzags across a segment converging to the segment.

We may now run the rest of the direct-method argument, and conclude that arclength(γ)=m\mathrm{arclength}(\gamma_{\infty}) = m; we have thus produced a minimizer.

Snapping to the circle

Next we show that radially projecting a path onto the unit circle never hurts: that is, it preserves admissibility and weakly decreases arclength. The key tool is a single fact from convex geometry, used three times.

Fact. The nearest-point projection xπC(x)x \longmapsto \pi_C(x) onto a closed convex set CRnC \subseteq \mathbb{R}^n is 11-Lipschitz.

Proof: We first claim that xπC(x),zπC(x)0\langle x - \pi_C(x), z - \pi_C(x) \rangle \le 0 for all zCz \in C. This is obvious for z=πC(x)z = \pi_C(x). If some zπC(x)z \neq \pi_C(x) does not satisfy this, then some convex combination tπC(x)+(1t)zt\pi_C(x) + (1-t)z has shorter distance to xx than πC(x)\pi_C(x), contradicting the definition.

Now for arbitrary x,yx, y we have xπC(x),πC(y)πC(x)+yπC(y),πC(x)πC(y)0,\langle x - \pi_C(x), \pi_C(y) - \pi_C(x) \rangle + \langle y - \pi_C(y), \pi_C(x) - \pi_C(y) \le 0, which rearranges to πC(x)πC(y)2xy,πC(x)πC(y).|\pi_C(x) - \pi_C(y)|^2 \le \langle x-y, \pi_C(x) - \pi_C(y)\rangle. Then Cauchy–Schwarz gives πC(x)πC(y)xy|\pi_C(x) - \pi_C(y)| \le |x - y| as desired.

We now fix C=B(0,1)C = B(0,1) and drop CC from the notation, writing π(x)=x/max(1,x)\pi(x) = x/\max(1, |x|). Take any γP(c)\gamma \in \mathcal{P}(c). Since γ(t)1|\gamma(t)| \ge 1 for all tt, the composition πγ=γ/γ\pi \circ \gamma = \gamma/|\gamma| is precisely the radial projection of the path onto the unit circle S1R2B(0,1)S^1 \subset \mathbb{R}^2 - B(0,1)^{\circ}. The three remaining properties to check follow immediately from the fact that π\pi is 1-Lipschitz:

In particular, applying this to the minimizer γ\gamma_{\infty} produced by the direct method, πγ\pi \circ \gamma_{\infty} is admissible with arclength at most mm (hence exactly mm), so there is a minimizer whose image lies in the unit circle.
A little bit more work with the arclength integral lets us show that all minimizers have image contained in the unit circle.

Back to Euclid

We’re now done with the high-tech math, and can finish our proof with elementary arguments. We need to do two things: first, show that a minimizing path on the unit circle (which we now denote by γ\gamma_{\infty}, implicitly assuming that we have projected to the unit circle) does not backtrack, and second, characterize the arclength of its image as a function of cc.

No backtracking

The image Γ\Gamma_{\infty} of our projected minimizer γ\gamma_{\infty} is a compact, connected subset of S1S^1. Unless Γ=S1\Gamma_{\infty} = S^1 (which we will rule out later), we claim that no triple 0t0<t1<t210 \le t_0 < t_1 < t_2 \le 1 satisfies γ(t0)=γ(t2)\gamma_{\infty}(t_0) = \gamma_{\infty}(t_2) and γ(t0)γ(t1)\gamma_{\infty}(t_0) \neq \gamma_{\infty}(t_1): in other words, no backtracking occurs. To see this, consider two cases: either γ([t0,t1])=γ([t1,t2])\gamma_{\infty}([t_0, t_1]) = \gamma_{\infty}([t_1, t_2]) or γ([t0,t1])γ([t1,t2]).\gamma_{\infty}([t_0, t_1]) \neq \gamma_{\infty}([t_1, t_2]). In the latter case, Γ=S1\Gamma_{\infty} = S^1. In the former case, we may define γ\gamma_{\infty}^* to be γ\gamma_{\infty} on [0,t0][0, t_0] and [t2,1][t_2, 1] and to be constant on [t0,t1][t_0, t_1]. Then any partition of [0,1][0, 1] containing t1t_1 demonstrates that arclength(γ)<arclength(γ),\mathrm{arclength}(\gamma_{\infty}^*) < \mathrm{arclength}(\gamma_{\infty}), contradicting our minimizing assumption.

Since no backtracking occurs (except for the Γ=S1\Gamma_{\infty} = S^1 case), the arclength of a minimizer γ\gamma_{\infty} is determined by its image, which is either S1S^1 or a connected arc in S1S^1. In the S1S^1 case, we have arclength(γ)2π\mathrm{arclength}(\gamma_{\infty}) \ge 2\pi. To rule out this case, we can simply demonstrate shorter arcs that work for all 1c21 \le c \le 2, which will just take a little bit of high-school geometry.

Minor arcs

For 1c21 \le c \le 2, the shorter arcs that work are the green arcs in the figure below. Note that for c=2c = 2 the arcs collapse to a single point.
The circular sectors our optimal path uses to cover the entirety of the (top half of the) log.

To see that these arcs work, we can simply look at the two circular sectors in the figure above.

Performing the analogous movement on the bottom half of the log covers the entirety of the log. So the path our chainsaw sweeps out starts tangent to the log at the left end of the top green arc, where the blade rotates downwards (but the handle stays fixed) until the blade is pointing at the center of the log. Then we proceed to move the handle along the circumference of the log until we reach the appropriate point on the bottom of the log, whereupon we once again rotate the blade through the remaining cross-section of the log.

Now we can finish by determining the length of the green arcs. Since cos(θ)=c/2\cos(\theta) = c/2, the central angle sweeping out the top arc has measure 2arccos(c/2)2\arccos(c/2), so the green arcs together have length 4arccos(c/2)4\arccos(c/2), exactly as claimed. We can do some quick sanity checks to make sure:

I hope you find this useful in your future timbersports competitions.