Acessibilidade / Reportar erro

Generalization of the least uncomfortable journey problem

Abstract

The variational problem of the least uncomfortable journey between two locations on a straight line is simplified by a choice of the dependent variable. It is shown that taking the position, instead of the velocity, as the optimal function of time to be determined does away with the isoperimetric constraint. The same results as those found with the velocity as the dependent variable are obtained in a simpler and more concise way. Next the problem is generalized for motion on an arbitrary curve. In the case of acceleration-induced discomfort, it is shown that, as expected, motion on a curved path is always more uncomfortable than motion on a straight line. It is not clear that this is necessarily the case for jerk-induced discomfort, which appears to indicate that the acceleration provides a more reasonable measure of the discomfort than the jerk. The example of motion on a circular path is studied. Although we have been unable to solve the problem analytically, approximate solutions have been constructed by means of trial functions and the exact solution has been found numerically for some choices of the relevant parameters.

Keywords:
Calculus of variations; higher-derivative variational problem; free endpoints and boundary conditions; generalized least uncomfortable journey problem

1. Introduction

The calculus of variations is a powerful mathematical tool that finds application in virtually every branch of theoretical physics.

A variational problem of recent invention is that of finding the least uncomfortable way to travel from point A to point B on a straight line, with both the travel time and the distance between the two points fixed [1][1] D. Anderson, M. Desaix and R. Nyqvist, Am. J. Phys. 84, 690 (2016)..

Since frequent acceleration and deceleration make a trip uncomfortable, the discomfort can be quantified by the integral of the square of the acceleration taken over the duration of the journey. Abrupt changes of a constant acceleration are also a source of distress. Therefore, another possible quantification of the discomfort is in terms of the time rate of change of the acceleration, usually known as jerk. In this case the discomfort is defined by the square of the jerk integrated over the duration of the journey.

The choice of independent variable impacts a variational problem. Sometimes an unfortunate choice makes the problem seem much more difficult than it actually is. In [2][2] N.A. Lemos, Eur. J. Phys. 40, 055802 (2019). it is shown that with the time as independent variable the least uncomfortable journey problem becomes much simpler than with the position as independent variable, which was the original choice of Anderson, Desaix and Nyqvist [1][1] D. Anderson, M. Desaix and R. Nyqvist, Am. J. Phys. 84, 690 (2016)..

In both [1][1] D. Anderson, M. Desaix and R. Nyqvist, Am. J. Phys. 84, 690 (2016). and [2][2] N.A. Lemos, Eur. J. Phys. 40, 055802 (2019). the problem of the least uncomfortable journey was understood as a search for the optimal velocity, which minimizes the discomfort. Either with position [1][1] D. Anderson, M. Desaix and R. Nyqvist, Am. J. Phys. 84, 690 (2016). or time [2][2] N.A. Lemos, Eur. J. Phys. 40, 055802 (2019). as independent variable, this approach is characterized by the existence of an isoperimetric constraint, which is taken into account by the method of Lagrange multipliers. It turns out that the choice of dependent variable, namely the unknown function to be determined, also impacts a variational problem. We show that with time as independent variable and position as dependent variable, the isoperimetric constraint is automatically satisfied and, both for acceleration-induced and jerk-induced discomfort, one has to deal with an ordinary unconstrained variational problem. In the case in which the discomfort is measured by the jerk, natural boundary conditions arise because the acceleration cannot be prescribed either at the beginning or the end of the journey. For both choices of the discomfort functional the same results as those found in [2][2] N.A. Lemos, Eur. J. Phys. 40, 055802 (2019). are obtained in a more straighforward way, without having to bother about constraints.

Next we generalize the problem by considering motion on an arbitrary curve with the arc length s as the dependent variable. Both for discomfort measured by the acceleration and by the jerk, it so happens that if the curvature is not constant the velocity v=s˙ cannot be taken as the dependent variable. In the case of acceleration-induced discomfort, it is found that, as expected, motion on a curved path gives rise to more discomfort than motion on a straight line. It is somewhat surprising that this is not necessarily the case for jerk-induced discomfort. This leads us to believe that it is the acceleration, rather than the jerk, that provides the more trustworthy measure of the discomfort. As a case study, we consider motion on a circular path. In spite of some advances towards the exact solution, we have been unable to express it in an explicit and manageable form. Therefore, approximate solutions have been constructed by means of trial functions and compared with the exact solutions obtained numerically.

The paper is organized as follows. In Section 2 we recall the statement of the problem for motion on a straight line as the search for the optimal velocity function v(t) that minimizes the discomfort. In Section 3 we rephrase the problem as the search for the optimal position function x(t) that leads to the least discomfort, and it is pointed out that the isoperimetric constraint is automatically taken care of. The exact solution is found both for the acceleration-induced and jerk-induced discomfort, in the latter case taking into account the natural boundary conditions, which are derived. In Section 4 the least uncomfortable journey problem is generalized for motion on an arbitrary curve. With the arc length s as the dependent variable and time as the independent variable, it is shown that the acceleration-induced discomfort depends only on the curvature and is always larger for a curved trajectory than for a straight line. The jerk-induced discomfort depends both on the curvature and the torsion, but it is not always necessarily larger for a curved path than for a straight line. In Section 5 the case of motion on a circular path is studied and approximate trial-function solutions are given for the optimal function s(t) which are compared with the exact numerical solutions. Section 6 is dedicated to a few final remarks.

2. Original statement of the least uncomfortable journey problem

The problem of finding the least uncomfortable way to travel between two points on a straight line was posed by Anderson, Desaix, and Nyqvist [1][1] D. Anderson, M. Desaix and R. Nyqvist, Am. J. Phys. 84, 690 (2016).. On a straight road, a vehicle departs from point A at t=0 and arrives at point B when t=T. Let the coordinate system be so chosen that the departure point A corresponds to x=0 and the arrival point B corresponds to x=D. The travel time T is fixed. The problem consists in finding the velocity v(t) that minimizes the discomfort functional defined by

(1) A [ v ] = 0 T v ˙ 2 d t

with the boundary conditions

(2) v ( 0 ) = 0 , v ( T ) = 0 ,

and under the isoperimetric constraint

(3) 0 T v d t = D .

If the discomfort is measured by the integral of the square of the jerk, the problem is the same as above except that now the discomfort functional to be minimized is

(4) J [ v ] = 0 T v ¨ 2 d t

under the same isoperimetric constraint (3) and, as argued in [2][2] N.A. Lemos, Eur. J. Phys. 40, 055802 (2019)., the boundary conditions

(5) v ( 0 ) = 0 , v ( T ) = 0 , v ¨ ( 0 ) = 0 , v ¨ ( T ) = 0.

In both cases the unknown function is the velocity v. With this choice of dependent variable, an essential feature of the problem is the isoperimetric constraint (3).

The treatment of the problem in [1][1] D. Anderson, M. Desaix and R. Nyqvist, Am. J. Phys. 84, 690 (2016). was based on choosing the position x as the independent variable and searching for the optimal velocity v(x) that minimizes the discomfort. It is a fact that sometimes a judicious choice of independent variable makes a variational problem more tractable. In [2][2] N.A. Lemos, Eur. J. Phys. 40, 055802 (2019). it is shown that choosing the time as the independent variable and searching for the optimal velocity v(t) leads to a drastic simplification of the problem, especially in the case in which the discomfort is measured by the jerk. Similarly, the choice of dependent variable, that is, the function to be determined, may simplify a variational problem. As we proceed to show, if one looks for the position as a function of time the isoperimetric constraint disappears and one is led to a simpler unconstrained higher-derivative variational problem.

3. Position as the dependent variable

Let us take the time t as the independent variable, the position x as the dependent variable and search for the function x(t) that yields the minimum discomfort.

3.1. Discomfort measured by the acceleration

The functional to be minimized is

(6) A [ x ] = 0 T a ( t ) 2 d t = 0 T x ¨ ( t ) 2 d t

with the boundary conditions

(7) x ( 0 ) = 0 , x ( T ) = D .

Since the journey starts from rest and ends at rest, we have the additional boundary conditions

(8) x ˙ ( 0 ) = 0 , x ˙ ( T ) = 0.

Note that by taking x as the dependent variable the isoperimetric constraint (3) is automatically incorporated in the boundary conditions (7). This means that now we are dealing with a common unconstrained higher-derivative variational problem, since the functional to be minimized depends on the second derivative of the unknown function.

For a functional of the form

(9) A [ x ] = 0 T L ( x , x ˙ , x ¨ , t ) d t

under the standard boundary conditions of fixed values for x(t) and x˙(t) at t=0 and t=T, it is well known [3[3] M. Kot, A First Course in the Calculus of Variations (American Mathematical Society, Providence, 2014)., Section 4.1] that a necessary condition for a function x(t) to minimize the functional (9) is that it obey the generalized Euler-Lagrange equation

(10) d 2 d t 2 ( L x ¨ ) d d t ( L x ˙ ) + L x = 0.

For the discomfort functional (6) we have

(11) L = x ¨ 2 ,

and equation (10) becomes simply

(12) d 4 x d t 4 = 0.

The general solution to this equation is

(13) x ( t ) = a 0 + a 1 t + a 2 t 2 + a 3 t 3 ,

where a0,a1,a2,a3 are arbitrary constants. Application of the boundary conditions (7) and (8) leads easily to

(14) x ( t ) = D ( 3 t 2 T 2 2 t 3 T 3 ) ,

which is the same result found in [2][2] N.A. Lemos, Eur. J. Phys. 40, 055802 (2019)., in which the original treatment with v as the dependent variable was adopted. The minimum value of the discomfort is obtained by inserting the above x(t) into the right-hand side of equation (6). An easy calculation yields

(15) A m i n = 12 D 2 T 3 .

3.2. Discomfort measured by the jerk

Now the functional to be minimized is

(16) J [ x ] = 0 T a ˙ ( t ) 2 d t = 0 T x ( t ) 2 d t

with the boundary conditions (7) and (8).

For a functional of the form

(17) J [ x ] = 0 T L ( x , x ˙ , x ¨ , x , t ) d t ,

the minimizer function x(t) has to satisfy the generalized Euler-Lagrange equation

(18) d 3 d t 3 ( L x ) + d 2 d t 2 ( L x ¨ ) d d t ( L x ˙ ) + L x = 0.

This is a sixth-order ordinary differential equation, and the boundary conditions (7) and (8) are insufficient to determine a unique solution for x(t). The additional boundary conditions would seem to be [1][1] D. Anderson, M. Desaix and R. Nyqvist, Am. J. Phys. 84, 690 (2016).

(19) x ¨ ( 0 ) = 0 , x ¨ ( T ) = 0.

These, together with (7) and (8), would comprise the standard boundary conditions for a variational problem involving the third derivative of the unknown function. However, as argued in [2][2] N.A. Lemos, Eur. J. Phys. 40, 055802 (2019)., the specification of the initial acceleration is at odds with the basic principles of Newtonian mechanics, and its enforcement might require pathological, unphysical forces.

The right thing to do [2][2] N.A. Lemos, Eur. J. Phys. 40, 055802 (2019). is leave x¨(0) and x¨(T) free, which leads to a variational problem with variable endpoints as concerns the values of x¨(t) at t=0 and t=T. Variable endpoints give rise to what are commonly called natural boundary conditions [3[3] M. Kot, A First Course in the Calculus of Variations (American Mathematical Society, Providence, 2014)., Section 9.1].

Let us present a short derivation of the natural boundary conditions for the functional (17) with x¨(0) and x¨(T) free. Because of the boundary conditions (7) and (8) the variation δx is required to satisfy

(20) δ x ( 0 ) = 0 , δ x ( T ) = 0 , δ x ˙ ( 0 ) = 0 , δ x ˙ ( T ) = 0.

The variation of the functional (17) is

(21) δ J = 0 T ( L x δ x + L x ˙ δ x ˙ + + L x ¨ δ x ¨ + L x δ x ) d t .

Successive integrations by parts lead to

(22) δ J = L x δ x ¨ | 0 T + ( L x ¨ d d t L x ) δ x ˙ | 0 T + ( L x ˙ d d t L x ¨ + d 2 d t 2 L x ) δ x | 0 T + 0 T [ d 3 d t 3 ( L x ) + d 2 d t 2 ( L x ¨ ) d d t ( L x ˙ ) + L x ] δ x d t .

With the use of (20) this reduces to

(23) δ J = L x δ x ¨ | 0 T + 0 T [ d 3 d t 3 ( L x ) + d 2 d t 2 ( L x ¨ ) d d t ( L x ˙ ) + L x ] δ x d t .

If x(t) is to minimize J one must have δJ=0 for arbitrary δx with arbitrary values of δx¨(t) at t=0 and t=T. This means that we are free to choose the variation δx such that δx¨=0 at both t=0 and t=T. In this case the boundary term on the right-hand side of (23) vanishes. Apart from the conditions at t=0 and t=T, the variation δx is an otherwise arbitrary function. Then the fundamental lemma of the calculus of variations [3[3] M. Kot, A First Course in the Calculus of Variations (American Mathematical Society, Providence, 2014)., p. 39] establishes that the condition δJ=0, which is necessary for a minimum, implies that the coefficient of δx in the integral on the right-hand side of (23) vanishes. Consequently, the minimizer x(t) must satisfy the previously announced generalized Euler-Lagrange equation (18). This, in turn, further reduces δJ to

(24) δ J = L x δ x ¨ | 0 T .

Since the values of δx¨(t) are arbitrary at t=0 and t=T, we can choose the variation δx(t) in such a way that δx¨(0)0,δx¨(T)=0 and vice versa. Therefore, the condition δJ=0 requires that the following boundary conditions be obeyed:

(25) L x | t = 0 = 0 , L x | t = T = 0.

These are natural boundary conditions [3[3] M. Kot, A First Course in the Calculus of Variations (American Mathematical Society, Providence, 2014)., p. 194] for the problem with variable endpoints as regards x¨(t).

For the discomfort functional (16) we have

(26) L = x 2

and the natural boundary conditions (25) become

(27) x ( 0 ) = 0 , x ( T ) = 0.

These are exactly the same natural boundary conditions as those expressed by equation (24) in [2][2] N.A. Lemos, Eur. J. Phys. 40, 055802 (2019)., where they were derived on the basis of taking the velocity v as the dependent variable.

With L given by (26) it follows that the generalized Euler-Lagrange equation (18) yields

(28) d 6 x d t 6 = 0.

The general solution to this equation is

(29) x ( t ) = a 0 + a 1 t + a 2 t 2 + a 3 t 3 + a 4 t 4 + a 5 t 5 .

The six initially arbitrary constants are readily found by imposing the boundary conditions (7), (8) and (27). After a little algebra the result is

(30) x = D 2 ( 5 t 2 T 2 5 t 4 T 4 + 2 t 5 T 5 ) ,

which coincides with equation (41) in [2][2] N.A. Lemos, Eur. J. Phys. 40, 055802 (2019)..

3.3. Comments

We have just shown that by taking as dependent variable — that is, the unknown function to be determined — the position x instead of the velocity v, the isoperimetric constraint is eliminated and, in the case of the discomfort measured by the acceleration, one is left with an ordinary higher-derivative variational problem. Just as the choice of independent variable, a proper choice of dependent variable may simplify a variational problem and eliminate constraints by having them automatically satisfied. If the discomfort is measured by the jerk, taking x as the dependent variable also eliminates the isoperimetric constraint and leads to a higher-derivative variational problem with variable endpoints as concerns x¨. The natural boundary conditions in this case are exactly the same as those found by treating v as the dependent variable.

For our treatment of the problem with the position as dependent variable, it is also straightforward to prove, as in [4][4] N.A. Lemos, Eur. J. Phys. 41, 039401 (2020)., that the optimal positions (14) and (30) actually yield, in each case, the minimum discomfort.

4. Generalization of the least uncomfortable journey problem

Let us suppose the motion takes place along a prescribe curve. It will be convenient to parameterize the curve by the arc length s:

(31) r ( s ) = x ( s ) x ^ + y ( s ) y ^ + z ( s ) z ^ .

The motion is completely characterized once the function s(t) is given.

4.1. Discomfort induced by the acceleration

For the velocity we have

(32) v = d r d t = d r d s d s d t = r ( s ) s ˙ .

The acceleration is given by

(33) a = d v d t = r ( s ) s ¨ + d r ( s ) d t s ˙ = r ( s ) s ¨ + r ( s ) s ˙ 2 .

We shall first consider the case in which the discomfort is measured by the acceleration, which means that the discomfort functional to be minimized is

(34) A [ s ] = 0 T | a | 2 d t .

From (33) it follows that

(35) | a | 2 = a a = r ( s ) r ( s ) s ¨ 2 + 2 r ( s ) r ( s ) s ˙ 2 s ¨ + r ( s ) r ( s ) s ˙ 4

Since

(36) r ( s ) r ( s ) = d r d s d r d s = d r d r d s 2 = d s 2 d s 2 = 1 ,

upon differentiation with respect to s this equation yields

(37) r ( s ) r ( s ) = 0.

Therefore,

(38) | a | 2 = s ¨ 2 + r ( s ) r ( s ) s ˙ 4 .

By definition

(39) r ( s ) r ( s ) = κ 2 ( s ) ,

where κ(s) is the curvature of the curve. Therefore, the discomfort functional (34) becomes

(40) A [ s ] = 0 T [ s ¨ 2 + κ 2 ( s ) s ˙ 4 ] d t .

The boundary conditions are

(41) s ( 0 ) = 0 , s ( T ) = D

as well as

(42) s ˙ ( 0 ) = 0 , s ˙ ( T ) = 0

inasmuch as the velocity is zero both at the beginning and at the end of the journey.

Equation (40) shows that, as expected, curvature adds to the discomfort: if κ0 the discomfort given by (40) is larger than the discomfort for motion on a straight line, which is given by (6) with x=s.

It is to be noted that, unless κ(s) is a constant, as for a circle or a helix, the discomfort (40) cannot be regarded as a functional of the speed v=s˙ alone, that is, the approach followed in [1][1] D. Anderson, M. Desaix and R. Nyqvist, Am. J. Phys. 84, 690 (2016). and [2][2] N.A. Lemos, Eur. J. Phys. 40, 055802 (2019). is impossible.

It is a straightforward exercise to show that with

(43) L = s ¨ 2 + κ 2 ( s ) s ˙ 4

the generalized Euler-Lagrange equation

(44) d 2 d t 2 ( L s ¨ ) d d t ( L s ˙ ) + L s = 0

yields

(45) d 4 s d t 4 6 κ 2 ( s ) ( d s d t ) 2 d 2 s d t 2 3 κ ( s ) κ ( s ) ( d s d t ) 4 = 0.

Since the function L defined by (43) does not depend explicitly on time, we have the constant of the motion [3[3] M. Kot, A First Course in the Calculus of Variations (American Mathematical Society, Providence, 2014)., Problem 4.10.3]

(46) s ¨ L s ¨ s ˙ [ d d t ( L s ¨ ) L s ˙ ] L = c = constant ,

which is a generalization of the Jacobi integral of mechanics [7][7] N.A. Lemos, Analytical Mechanics (Cambridge University Press, Cambridge, 2018).. By inserting (43) into the above equation we find

(47) s ¨ 2 2 s ˙ s + 3 κ 2 ( s ) s ˙ 4 = c .

Since s˙(0)=0, letting t=0 in this equation shows that c is positive.

4.2. Discomfort induced by the jerk

We have

(48) r ˙ = r ( s ) s ˙ = s ˙ t ( s ) ,

where t=dr/ds is the unit tangent vector to the curve. By definition

(49) d t d s = r ( s ) = κ ( s ) n ( s ) ,

where κ(s)0 is the curvature and n is the principal normal vector. Therefore, from equation (48) it follows that the acceleration is given by

(50) r ¨ = s ¨ t ( s ) + κ ( s ) s ˙ 2 n ( s ) .

Thus the jerk is

(51) r = s t ( s ) + s ¨ κ ( s ) n ( s ) s ˙ + κ ( s ) s ˙ 3 n ( s ) + 2 κ ( s ) s ˙ s ¨ n ( s ) + κ ( s ) s ˙ 2 d n d s s ˙ .

With the use of the Frenet (or Frenet-Serret) formula [5[5] M.P. Carmo, Geometria Diferencial de Curvas e Superfícies (Sociedade Brasileira de Matemática, Rio de Janeiro, 2005).,6[6] A. Pressley, Elementary Differential Geometry (Springer, London, 2007).]

(52) d n d s = κ ( s ) t ( s ) + τ ( s ) b ( s ) ,

where b=t×n is the binormal vector and τ is the torsion,1 1 Note that different authors adopt different conventions regarding the sign of the torsion. we finally obtain

(53) r = ( s κ 2 ( s ) s ˙ 3 ) t ( s ) + ( 3 κ ( s ) s ˙ s ¨ + κ ( s ) s ˙ 3 ) n ( s ) + κ ( s ) τ ( s ) s ˙ 3 b ( s ) .

Since {t(s),n(s),b(s)} is an orthonormal set of vectors, we have

(54) | r | 2 = ( s κ 2 ( s ) s ˙ 3 ) 2 + ( 3 κ ( s ) s ˙ s ¨ + κ ( s ) s ˙ 3 ) 2 + κ 2 ( s ) τ 2 ( s ) s ˙ 6 .

Thus, the jerk-induced discomfort is given by

(55) J [ s ] = 0 T | r | 2 d t = 0 T [ s 2 2 κ 2 ( s ) s ˙ 3 s + 9 κ 2 ( s ) s ˙ 2 s ¨ 2 + 6 κ ( s ) κ ( s ) s ˙ 4 s ¨ + ( κ 4 ( s ) + κ ( s ) 2 + κ 2 ( s ) τ 2 ( s ) ) s ˙ 6 ] d t .

The functional (55) is of the form (17) with

(56) L = s 2 2 κ 2 ( s ) s ˙ 3 s + 9 κ 2 ( s ) s ˙ 2 s ¨ 2 + 6 κ ( s ) κ ( s ) s ˙ 4 s ¨ + ( κ 4 ( s ) + κ ( s ) 2 + κ 2 ( s ) τ 2 ( s ) ) s ˙ 6 .

The boundary conditions for the problem of minimizing the jerk-induced discomfort (55) are

(57) s ( 0 ) = 0 , s ( T ) = D , s ˙ ( 0 ) = 0 , s ˙ ( T ) = 0.

Because s˙(t) vanishes both at t=0 and t=T, the natural boundary conditions

(58) L s | t = 0 = 0 , L s | t = T = 0

take the same form as in the straight line case, namely

(59) s ( 0 ) = 0 , s ( T ) = 0.

The generalized Euler-Lagrange equation for the functional (55) — equation (18) with s substituted for x and L given by (56) — is terribly complicated and will not be written down here.

Integration by parts with the use of (57) leads to

(60) 0 T κ 2 ( s ) s ˙ 3 s d t = κ 2 ( s ) s ˙ 3 s ¨ | 0 T 0 T d d t [ κ 2 ( s ) s ˙ 3 ] s ¨ d t = 0 T [ 2 κ ( s ) κ ( s ) s ˙ 4 s ¨ + 3 κ 2 ( s ) s ˙ 2 s ¨ 2 ] d t .

With this result the jerk-induced discomfort (55) becomes

(61) J [ s ] = 0 T [ s 2 + 15 κ 2 ( s ) s ˙ 2 s ¨ 2 + 10 κ ( s ) κ ( s ) s ˙ 4 s ¨ + ( κ 4 ( s ) + κ ( s ) 2 + κ 2 ( s ) τ 2 ( s ) ) s ˙ 6 ] d t .

If the curvature is constant, the discomfort for motion on a curved path is always larger than that for motion on a straight line, which is characterized by κ=τ=0. However, since for variable curvature the third term in the above integrand may be negative, the integral of the sum of all terms but the first may conceivably be negative and one might experience less discomfort by moving on a path with curvature and torsion than on a straight line, for which the discomfort would be given by the integral of the first term alone. Torsion contributes a positive term, but if τ=0 it is not clear that variable curvature necessarily adds to the jerk-induced discomfort, which appears counterintuitive. This is the reason why the discomfort is seemingly better measured by the acceleration than by the jerk.

5. Example: circular path

Let the path be an arc of a circle of radius R with the starting point of the journey at the origin.

In terms of the angle θ shown in Figure 1, the parametric equation of the path is

(62) x = R sin θ , y = R ( 1 cos θ ) .
Figure 1
Circular arc path.

Since θ=s/R, the parameterization of the circle in terms of the arc length is

(63) r ( s ) = R sin ( s R ) x ^ + R [ 1 cos ( s R ) ] y ^ .

Thus we have

(64) r ( s ) = 1 R [ sin ( s R ) x ^ cos ( s R ) y ^ ] ,

whence

(65) κ 2 ( s ) = r ( s ) r ( s ) = 1 R 2 .

Consequently, the discomfort to be minimized is

(66) A [ s ] = 0 T ( s ¨ 2 + s ˙ 4 R 2 ) d t .

We shall circunscribe our discussion to the acceleration-induced discomfort. Since the curvature κ=1/R is constant, equation (45) takes the simpler form

(67) d 4 s d t 4 6 R 2 ( d s d t ) 2 d 2 s d t 2 = 0

and its associated constant of the motion (47) is given by

(68) s ¨ 2 2 s ˙ s 3 R 2 s ˙ 4 = c R 2

where the value of the constant of the motion has been written as c/R2 for future convenience. As a consistency check, note that in the limit R the circle turns into a straight line and equation (67) coincides with equation (12), as it should. Also, for very high curvature (R0,κ) the discomfort (66) becomes enormous, as intuition suggests.

Our task is to solve the fourth-order nonlinear differential equation (67) with the boundary conditions (41) and (42). We start by taking advantage of the constant of the motion (68), which we write as

(69) u ˙ 2 2 u u ¨ + 3 R 2 u 4 = c R 2

in terms of

(70) u = s ˙ .

The standard trick to lower the order of equation (69) is to introduce a new variable w defined by

(71) w = u ˙

and replace the independent variable t by u, so that

(72) u ¨ = d w d t = d w d u d u d t = w d w d u .

Thus, equation (69) is reduced to

(73) w 2 2 u w d w d u + 3 R 2 u 4 = c R 2 .

Setting

(74) r = w 2

we are led to

(75) u d r d u r 3 R 2 u 4 + c R 2 = 0

or, equivalently,

(76) u d r + ( c R 2 3 R 2 u 4 r ) d u = 0.

Let us attempt to find an integrating factor for the above differential 1-form as a function F of u alone. To this end we write as ω=M(u,r)dr+N(u,r)du the 1-form obtained by multiplying the left-hand side of equation (76) by F(u). The necessary and sufficient condition for the 1-form ω to be exact is M/u=N/r. This leads to uF(u)=2F(u), which is solved by F(u)=u2. Therefore, multiplication of equation (76) by u2 leads to

(77) 1 u d r + ( c R 2 u 2 3 R 2 u 2 r u 2 ) d u = d Φ = 0

where

(78) Φ ( r , u ) = r u u 3 R 2 c R 2 u .

Thus, by combining this last equation with (77) we conclude that

(79) r u u 3 R 2 c R 2 u = a R 2 ,

where a is a constant. Taking into account that r=u˙2 — see (71) and (74) —, equation (79) can be rewritten as

(80) ( d u d t ) 2 = 1 R 2 ( c + a u + u 4 ) .

Separating variables in the above equation and integrating we find

(81) d u c + a u + u 4 = t + b R ,

where b is a constant. This integral can be reduced to an elliptic integral, but this is not easy to do explicitly [8[8] D.F. Lawden, Elliptic Functions and Applications (Springer, New York, 1989). [9] J.W. Armitage and W.F. Eberlein, Elliptic Functions (Cambridge University Press, Cambridge, 2006).-10[10] H. Hancock, Elliptic Integrals (Wiley, New York, 1917).]. This means that, by inversion, u(t) will be given by a very complicated combination of elliptic functions. Since u=s˙, in order to find s(t) one will still have to compute the integral of this intricate combination of elliptic functions. This will give s(t) in a quite unmanageable and unilluminating form.

5.1. Trial functions

Since the exact solution is unwieldy, we shall first consider analytical approximate solutions to our minimization problem. Let us first consider the function

(82) s ~ ( t ) = D sin 2 ( π t 2 T ) = D 2 [ 1 cos ( π t T ) ] .

It follows at once that

(83) s ~ ˙ ( t ) = π D 2 T sin ( π t T )

and

(84) s ~ ¨ ( t ) = π 2 D 2 T 2 cos ( π t T ) .

It is clear from (82) and (83) that the boundary conditions (41) and (42) are fulfilled. The discomfort brought about by the trial function (82) is

(85) A [ s ~ ] = 0 T [ π 4 D 2 4 T 4 cos 2 ( π t T ) + 1 R 2 π 4 D 4 16 T 4 sin 4 ( π t T ) ] d t .

With the change of variable x=πt/T this simplifies to

(86) A [ s ~ ] = π 3 D 2 4 T 3 0 π cos 2 x d x + π 3 D 4 16 R 2 T 3 0 π sin 4 x d x .

With the use of

(87) 0 π cos 2 x d x = π 2 , 0 π sin 4 x d x = 3 π 8

we finally have

(88) A [ s ~ ] = π 4 D 2 8 T 3 ( 1 + 3 D 2 16 R 2 ) .

This provides an upper bound on the minimum discomfort:

(89) A m i n π 4 D 2 8 T 3 ( 1 + 3 D 2 16 R 2 ) .

As a check, note that in the limit R we have A[s~]=π4D2/8T3. Since π4/812.18, a comparison with (15) shows that for motion on a straight line the error committed is only 1.5%, that is, our approximation is pretty good. This suggests that the function (82) may furnish a fairly good approximation to the optimal solution also for finite but not too small R as compared to D.

A better trial function for the straight line case is

(90) s ¯ ( t ) = D 2 [ 1 ( 1 + α ) cos ( π t T ) + α cos ( 3 π t T ) ]

where the real parameter α is to be chosen so as to yield the least discomfort within this class of trial functions. An elementary calculation yields

(91) A s t r [ s ¯ ] = 0 T s ¯ ¨ 2 d t = π 4 D 2 8 T 3 [ ( 1 + α ) 2 + 81 α 2 ] .

The minimum of the function of α within brackets is attained at α=1/82. For this value of α we have

(92) A s t r [ s ¯ ] = 12.027 D 2 T 3 ,

which is only 0.2% larger than the true minimum (15).

The computation of the discomfort associated with (90) for the circular path is a bit laborious but requires only the use of trigonometric identities such as

(93) sin 3 x = 3 sin x 4 sin 3 x , cos 3 x = 4 cos 3 x 3 cos x ,

and the following definite integrals, where n is a natural number:

(94) 0 π cos 2 n x d x = 0 π sin 2 n x d x = π ( 2 n ) ! ( 2 n n ! ) 2 .

The result for the discomfort (66) associated with the function (90) is

(95) A [ s ¯ ] = π 4 D 2 16 T 3 { 2 ( 1 + α ) 2 + 162 α 2 + D 2 R 2 [ 3 8 ( 1 + α ) 4 + 3 2 α ( 1 + α ) 3 + 27 2 α 2 ( 1 + α ) 2 + 243 8 α 4 ] } .

Let f(α) be the function within braces, which is to be minimized. Setting f(α)=0 one gets a third degree algebraic equation to be solved, whose coefficients depend on the parameter D/R. Although a formula in terms of radicals for the roots of a cubic equation is known, it is too complicated to be useful here. Therefore, for a few values of D/R we have numerically computed (for free at the website https://keisan.casio.com) the real root of f(α)=0 and calculated the minimum value of A[s¯]. In the table below we make a comparison between A[s~], the discomforted generated by the trial function (82), and Amin[s¯], the minimum discomfort brought about by the family of functions (90), with the values of the discomfort expressed in units of D2/T3.

D / R Optimal α A m i n [ s ¯ ] A [ s ~ ] 1 -0.01909 14.06 14.46 2 -0.03350 19.79 21.31 π -0.04913 30.96 34.71 2 π -0.07286 76.38 102.31

This table shows that the best approximation provided by the family of functions (90) is systematically better than the approximation furnished by the single function (82), and the improvement becomes more and more significant as D increases beyond the semicircumference of the circle.

A physical explanation of why, for DR, the optimal approximation within the family of functions (90) is much better than the approximation afforded by the function (82) might run as follows. For D big compared to R, which would also be the case for fixed D and a highly curved circle, the discomfort (66) is dominated by the term involving the speed s˙ rather than the one involving the tangential acceleration s¨. This means that comparatively smaller values of the speed may result in less discomfort in spite of comparatively larger speed changes. This is because the pull on the passenger towards the center of the trajectory, connected with the radial (centripetal) acceleration associated with the speed and customarily felt as if being pressed against the wall of the vehicle, causes more discomfort than speed changes. This is illustrated in Figures 2 and 3 for the case D=2πR, in which the best approximation within the class (90) is compared with the approximation (82). For the better approximation the maximum value attained by the speed is lower, as shown by the solid line in Figure 2, and the smaller contribution to the discomfort of the speed term amply compensates the bigger contribution owing to the larger speed changes, represented by the solid line in Figure 3.

Figure 2
Best speed s¯˙ (solid line)) within the family (90) for α=0.07286 (for the case D/R=2π) compared with s~˙ (dashed line) given by (83). Speeds are displayed in units of D/T.
Figure 3
Best tangential acceleration s¯¨ (solid line) within the family (90) for α=0.07286 compared with s~¨ (dashed line) given by (84). Accelerations are displayed in units of π2D/2T2.

5.2. Numerical solutions

In order numerically to solve the ordinary differential equation (67) with the boundary conditions (41) and (42), lets us first reformulate the problem in dimensionless form. Let τ and σ(τ) be dimensionless quantities defined by

(96) s ( t ) = D σ ( τ ) , τ = t T .

Note that both τ and σ(τ) take values in the closed interval [0, 1]. The chain rule gives

(97) d s d t = D d σ d τ d τ d t = D T d σ d τ , d 2 s d t 2 = D T 2 d 2 σ d τ 2 , d 4 s d t 4 = D T 4 d 4 σ d τ 4 .

Substituting these results into (67), the dimensionless boundary-value problem to be numerically solved consists of the fourth-order differential equation

(98) d 4 σ d τ 4 6 D 2 R 2 ( d σ d τ ) 2 d 2 σ d τ 2 = 0

together with the boundary conditions

(99) σ ( 0 ) = 0 , σ ( 1 ) = 1 , σ ( 0 ) = 0 , σ ( 1 ) = 0.

By means of the Maple software we have numerically solved this boundary value problem for σ(τ), and the figures below compare the speed for the exact (numerical) solution with the speed that arises from the trial function (90) for the values of D/R considered in the table above.

Figure 4 shows that if D/R2 the qualitative behavior of the numerically computed speed is not too different from that pertaining to the straight-line case discussed in [2][2] N.A. Lemos, Eur. J. Phys. 40, 055802 (2019).. For D=R the trial function (90) provides a tolerable approximation to the exact solution, but for D=2R the discrepancy is already significant.

Figure 4
Cases D=R,α=0.01909 and D=2R,α=0.03350: the numerically computed speed (solid line) compared with the speed associated with the trial function (90). Speeds are displayed in units of D/T.

As can be seen from Figure 5, for D equal to or bigger than the semicircumference of the circle the trial function (90) is a very bad approximation to the exact solution. As D approaches and increases beyond the circumference of the circle, the strategy to minimize the discomfort becomes clear: accelerate quickly from rest to a speed not much above the average speed D/T, keep this speed nearly constant for most of the journey, then slow down quickly to a full stop.

Figure 5
Cases D=πR,α=0.04913 and D=2πR,α=0,07286: the numerically computed speed (solid line) compared with the speed associated with the trial function (90). Speeds are displayed in units of D/T.

The trial function (90) provides a very poor approximation to the exact solution for D/R2 and becomes worse and worse as the ratio D/R increases beyond two. An improvement would require a trial function depending on more than one parameter. But this would make it extremely cumbersome to compute the integral (66) and subsequently solve the problem of minimizing a function of several variables. Let us note, nevertheless, that the trial function (90) provides an excellent approximation to the exact solution for DR/2, as Figure 6 illustrates very well.

Figure 6
Case D=R/2,α=0.01406: the numerically computed speed (solid line) compared with the speed associated with the trial function (90). Speeds are displayed in units of D/T.

6. Final Remarks

The problem of the least uncomfortable journey affords the opportunity to acquaint advanced undergraduate or beginning graduate students with several useful techniques of the calculus of variations. It illustrates nicely that the appropriate choice of independent and dependent variables can make a variational problem much more tractable, sometimes allowing us to get rid of constraints. It also provides a nice example of a higher-order variational problem of physical interest.

The generalization of the least uncomfortable journey problem to motion on an arbitrary path makes it possible to compare the measures of discomfort induced by acceleration and jerk. The acceleration-induced discomfort is always larger for a curved path than for a straight line, as intuitively expected. This is not necessarily so for the jerk-induced discomfort, which suggests that the integral of the square of the acceleration provides a more reliable measure of the discomfort than the one supplied by the jerk.

Acknowledgment

The author is thankful to the anonymous reviewer whose suggestions helped to improve the manuscript significantly.

References

  • [1] D. Anderson, M. Desaix and R. Nyqvist, Am. J. Phys. 84, 690 (2016).
  • [2] N.A. Lemos, Eur. J. Phys. 40, 055802 (2019).
  • [3] M. Kot, A First Course in the Calculus of Variations (American Mathematical Society, Providence, 2014).
  • [4] N.A. Lemos, Eur. J. Phys. 41, 039401 (2020).
  • [5] M.P. Carmo, Geometria Diferencial de Curvas e Superfícies (Sociedade Brasileira de Matemática, Rio de Janeiro, 2005).
  • [6] A. Pressley, Elementary Differential Geometry (Springer, London, 2007).
  • [7] N.A. Lemos, Analytical Mechanics (Cambridge University Press, Cambridge, 2018).
  • [8] D.F. Lawden, Elliptic Functions and Applications (Springer, New York, 1989).
  • [9] J.W. Armitage and W.F. Eberlein, Elliptic Functions (Cambridge University Press, Cambridge, 2006).
  • [10] H. Hancock, Elliptic Integrals (Wiley, New York, 1917).
  • 1
    Note that different authors adopt different conventions regarding the sign of the torsion.

Publication Dates

  • Publication in this collection
    14 Sept 2020
  • Date of issue
    2020

History

  • Received
    10 Mar 2020
  • Reviewed
    03 June 2020
  • Accepted
    28 June 2020
Sociedade Brasileira de Física Caixa Postal 66328, 05389-970 São Paulo SP - Brazil - São Paulo - SP - Brazil
E-mail: marcio@sbfisica.org.br