TITLE: Necessary and sufficient condition for a curve to have infinite length
QUESTION [8 upvotes]: What is the necessary and sufficient condition for a curve to have infinite length in a compact interval? 
Say the curve is restricted to $[0, 1]$.
I vaguely remember that it is related to the boundedness of the total variation. I checked already the answers here but they are related to specific examples.

REPLY [6 votes]: Given a function
$$f:\quad [a,b]\to{\mathbb R}^n, \qquad t\mapsto f(t)\ ,$$
the total variation of $f$ over $[a,b]$ is defined by
$$V(f):=\sup_{\cal P}\sum_{k=1}^N|f(t_k)-f(t_{k-1})|\leq\infty\ ,\tag{1}$$
whereby the $\sup$ ranges over all partitions
$${\cal P}:\qquad a=t_0<t_1<\ldots<t_N=b\ ,\qquad N=N_{\cal P}\ .$$
If $V(f)<\infty$ the function $f$ is called of bounded variation.
Consider now a curve
$$\gamma:\quad [a,b]\to {\bf z}(t):=\bigl(x(t), y(t)\bigr)\tag{2}$$
in the plane. Then the length  $L(\gamma)$ is by definition the total variation of the vector-valued function ${\bf z}(\cdot)$ used for the parametrization of $\gamma$:
$$L(\gamma):=V({\bf z}(\cdot))\leq\infty\ .$$
Note that for any two points ${\bf z}_0$, ${\bf z}_1$ one has
$$\max\{|x_1-x_0|,\>|y_1-y_0|\}\leq|{\bf z}_1-{\bf z}_0|\leq|x_1-x_0|+|y_1-y_0|\ .$$
From $(1)$ it then easily follows that the function ${\bf z}(\cdot)$ in $(2)$ is of bounded variation iff both $x(\cdot)$ and $y(\cdot)$ are of bounded variation.This allows to  conclude that a graph
$$\gamma:\quad [a,b]\to{\mathbb R}^2,\qquad x\mapsto\bigl(x,f(x)\bigr)$$
has finite length iff $V(f)<\infty$, since the total variation of the first coordinate is $=b-a<\infty$ in any case.