WorksMathematics
Beyond periodicity: Fourier methods for optimal control
Abstract
Fourier-based spectral methods provide compact global approximations, permit simple differentiation and integration, and achieve spectral convergence for smooth periodic functions. Their use in finite-horizon optimal control problems (OCPs) is nevertheless challenged by the generally nonperiodic state and control trajectories: endpoint mismatch induces artificial discontinuities and can destroy spectral convergence. Leveraging Eckhoff-type endpoint-correction techniques, we develop a Fourier-based spectral framework for OCPs with possibly nonlinear dynamics and constraints. The correction improves convergence without enlarging the set of decision variables, yielding an efficient finite-dimensional numerical method. Furthermore, we formulate selected dynamics and obstacle-avoidance constraints through Sobolev residual bounds, which incorporate information about the residuals over the entire time horizon and improve constraint satisfaction. Numerical experiments on benchmark problems demonstrate competitive computational performance, lower residual errors, and improved solution accuracy.
Introduction
Optimal control problems arise in a wide range of applications, including robotics, aerospace systems, process control, and trajectory planning [2, 11]. In many applications, the state and control trajectories must satisfy dynamical equations and path constraints over the entire time horizon. For problems with sufficiently smooth trajectories, spectral methods provide an attractive numerical approach, allowing accurate approximation using relatively few global basis functions. By representing the state and control trajectories in a finite-dimensional basis, the original optimal control problem is approximated by an optimization problem in the corresponding coefficients [2, 3]. Among spectral methods, Fourier approximations play an important role due to their compact representation and favorable convergence properties for smooth periodic functions. However, these properties are generally lost when the endpoint compatibility conditions are not satisfied. In this paper, leveraging Eckhoff’s endpoint-correction technique, we develop a Fourier-based approximation method for optimal control problems with nonperiodic state and control trajectories.
One of the most established approaches to numerical optimal control are polynomial-based spectral methods, particularly those using Chebyshev and Legendre polynomials. These methods provide high-order approximation accuracy for sufficiently smooth trajectories without requiring periodic endpoint conditions. Moreover, their polynomial structure allows accurate differentiation and integration using spectral differentiation and quadrature techniques. The use of Gauss–Lobatto nodes, which include both endpoints, also facilitates the enforcement of initial and terminal conditions [3, 8]. Despite these advantages, Chebyshev and Legendre methods typically employ nonuniform collocation grids whose nodes depend on the polynomial degree. This can be inconvenient in applications requiring fixed uniform sampling times, such as the sensing problem considered in § 4.3. Moreover, approximating highly oscillatory trajectories may require relatively high polynomial degrees (see § 4.2), increasing the number of optimization variables. Polynomial spectral differentiation can also amplify errors, with worst-case first-derivative amplification growing quadratically with the polynomial degree, compared with linear growth for Fourier differentiation [3]. Fourier approximations therefore provide an attractive alternative for oscillatory trajectories, offering a compact harmonic representation, simple differentiation, and convenient evaluation on uniform grids. These advantages motivate our work on extending Fourier-based optimal control methods to nonperiodic settings.
Bernstein polynomial approximations provide another established approach to optimal control and trajectory planning. Their convex-hull property and simple endpoint evaluation facilitate the treatment of boundary and trajectory constraints [4, 5, 7]. Moreover, for sufficiently smooth functions,
Key words and phrases. Optimal control, spectral methods, Fourier approximation, Gibbs phenomenon, Eckhoff correction, Krylov–Lanczos correction, trajectory optimization.
The research is supported by the Higher Education and Science Committee of the MESCS RA under Research Project No. 24IRF-1A001. classical Bernstein approximations converge uniformly together with their derivatives up to any prescribed finite order [4]. However, the classical Bernstein approximation operator has a relatively slow convergence rate, which may require high polynomial degrees to accurately represent complex and oscillatory trajectories. To combine the advantages of Bernstein polynomials and Fourier approximations, mixed Bernstein–Fourier methods have recently been proposed, using Bernstein polynomials to represent nonperiodic behavior and Fourier modes to capture periodic components [12]. In contrast, the Fourier–Eckhoff approach considered in this paper accounts for nonperiodic behavior through endpoint corrections without introducing additional polynomial coefficients. The numerical experiments presented in this paper further illustrate the advantages and limitations of these approaches in terms of approximation accuracy, constraint satisfaction, and computational efficiency.
Despite these advantages, the convergence properties of Fourier approximations depend strongly on the periodic compatibility of the approximated functions. In finite-horizon optimal control problems, state and control trajectories are generally nonperiodic, even when they are smooth on the entire time interval. Mismatches in endpoint values introduce artificial discontinuities in their periodic extensions, leading to the Gibbs phenomenon and preventing uniform convergence. Moreover, mismatches in higher-order derivatives reduce the decay rate of Fourier coefficients and consequently slow down convergence. These limitations motivate endpoint-correction techniques, which account for the nonperiodic behavior and improve the convergence properties of Fourier approximations.
To overcome the limitations of Fourier approximation caused by endpoint incompatibility, several endpoint-correction techniques have been developed for approximating nonperiodic functions. These methods separate the nonperiodic behavior from the part represented by a Fourier series. The classical Krylov–Lanczos procedure constructs a correction polynomial using known endpoint values and derivatives, yielding a remainder with improved periodic compatibility [9, 10]. Unlike the Krylov–Lanczos approach, Eckhoff’s method does not require prior knowledge of the endpoint values or derivatives. Instead, it estimates the unknown endpoint jumps from the asymptotic behavior of high-frequency Fourier coefficients [1, 6]. We review these two approaches in § 2.2 and § 2.3, respectively, and use them as the foundation for the Fourier-based optimal control formulation developed in this paper.
Leveraging these approximation techniques, we develop a Fourier–Eckhoff method for finite-horizon optimal control problems with possibly nonlinear dynamics and constraints. The main idea is to parameterize the state and control trajectories by Fourier coefficients and express the unknown endpoint jumps directly in terms of these coefficients. Unlike the classical Eckhoff reconstruction, where the Fourier coefficients of a given function are known, in our formulation they are optimization variables. The endpoint corrections are computed as linear functions of these variables and therefore do not introduce additional independent optimization variables. The resulting approximation extends the applicability of Fourier methods to nonperiodic settings while retaining their main computational advantages, including compact representation of oscillatory trajectories, analytical differentiation, and convenient evaluation on uniform time grids. These properties are particularly useful for applications involving high-frequency oscillations and fixed-rate measurements, as illustrated in the numerical experiments in § 4. The proposed formulation is developed in § 3.5.
To obtain a fully finite-dimensional optimal control problem, the dynamics and path constraints are typically enforced at a finite set of discretization nodes. However, satisfying these constraints at the selected nodes does not guarantee their satisfaction over the entire time interval. In particular, constraint violations may occur between the nodes, which can be problematic in safety-critical applications. To address this limitation, we introduce a Sobolev residual formulation for enforcing dynamics and obstacle-avoidance constraints. Unlike standard pointwise enforcement, the proposed approach incorporates information about the residuals over the entire time interval through integral constraints. Using Sobolev embedding, we establish conditions under which these constraints provide uniform residual bounds. The numerical implementation uses discrete approximations of the Sobolev norms, and constraint satisfaction is evaluated on independent validation grids. This extension, including the use of slack trajectories for obstacle avoidance, is presented in § 5. The numerical results demonstrate improved dynamics residual control and positive sampled safety margins, whereas the tested pointwise methods exhibit small violations of the prescribed safety margins. Moreover, increasing the approximation order of these pointwise methods does not necessarily eliminate such violations.
The performance of the proposed methods is investigated through several numerical experiments. We first consider a minimum-energy optimal control problem with an explicit solution to evaluate approximation errors and computational time (§ 4.1). We then examine high-frequency trajectory tracking with a kinematic bicycle model (§ 4.2) and a bearing-only localization problem with fixed-rate measurements (§ 4.3). Finally, we investigate the effectiveness of Sobolev residual constraints in a five-obstacle avoidance problem (§ 5). The proposed methods are compared with discrete, Bernstein, Chebyshev, Legendre, Fourier–polynomial [13], and mixed Bernstein–Fourier [12] approximations. The comparisons consider approximation accuracy, objective values, constraint satisfaction, number of optimization variables, and computational time. The results illustrate the advantages and limitations of the different approaches, particularly for oscillatory trajectories, fixed-rate sensing, and safety-critical applications.
Preliminaries
In this section, we recall classical results on Fourier approximation of functions defined on finite intervals, emphasizing how smoothness and endpoint compatibility affect convergence rates. We then present the Krylov–Lanczos endpoint-correction procedure and Eckhoff’s asymptotic jump-recovery method, which account for endpoint mismatches and improve the approximation of nonperiodic functions. Finally, we introduce the class of finite-horizon nonlinear optimal control problems considered in this paper.
Fourier-Based Function Approximation
We begin by recalling the classical truncated Fourier representation on a finite interval, which serves as the foundation for the endpoint-corrected constructions introduced in the subsequent subsections. The truncated Fourier approximation of order of a function is defined by
where the harmonic frequencies are explicitly given by
The associated Fourier coefficients are uniquely determined by orthogonal projection onto the finite-dimensional trigonometric subspace according to the classical Euler–Fourier formulas:
The convergence rate of the Fourier approximation is determined jointly by the smoothness of the target function on and by the extent to which its values and derivatives agree at the two endpoints. Specifically, let , and suppose that
Assume further that the -th derivative does not satisfy the endpoint compatibility condition; that is,
Then, repeated integration by parts yields the following algebraic decay estimates for the Fourier coefficients (see [1])
In turn, the global approximation error measured in the norm satisfies the asymptotic rate (see [1])
whereas the uniform error on the compact interval satisfies
see [14]. Note that when , the convergence estimate, see (7) remains valid. However, uniform convergence on fails due to the endpoint discontinuity in the periodic extension and the associated Gibbs phenomenon. Nevertheless, pointwise convergence still holds for every , see [14].
These estimates show that the convergence rate depends on the order at which endpoint compatibility, (5), fails. Thus, even when a function is smooth on the entire interval, mismatches in its endpoint values or derivatives can significantly reduce the convergence rate of its Fourier approximation. This limitation motivates the Krylov–Lanczos construction (see [9, 10]), in which a correction term is chosen to reproduce the endpoint differences of the function and its derivatives.
Krylov-Lanczos Endpoint-Corrected Approximation
When the endpoint compatibility conditions in (5) are not satisfied, the Krylov–Lanczos procedure [9, 10] improves the Fourier approximation by introducing a correction polynomial that accounts for the endpoint mismatches. The main assumption is that the values of the function and its derivatives at both endpoints, up to a prescribed order, are known. The correction polynomial is constructed using Bernoulli polynomials, and subtracting it from the original function yields a remainder whose values and derivatives satisfy the endpoint compatibility conditions up to the prescribed order, leading to an improved convergence rate of the Fourier approximation.
For a prescribed correction order , denote the endpoint jumps
and assume that these quantities are known. The Krylov–Lanczos construction uses a standard family of correction functions , given by suitably normalized Bernoulli polynomials, to construct a correction polynomial as a finite linear combination of these functions. The defining property of these functions is that each carries exactly one unit endpoint jump in the corresponding derivative order:
where denotes the Kronecker delta. Thus, each correction function produces a unit jump in its -th derivative and zero jumps in all other derivatives included in the correction.
The Bernoulli correction functions are defined by
and, for , recursively by
together with the zero-mean normalization
For example, the first two correction functions generated by this recursion and normalization are
The truncated Fourier approximation of order of is given by
where the cosine coefficients are
and the sine coefficients are
Using these basis elements, we define the finite endpoint-correction polynomial of order as:
The original function is decomposed into a correction polynomial and a remainder
with the same interior smoothness as . Note that by (9) and (10), the remainder is guaranteed to meet the compatibility conditions, (5), up to the -th derivative order:
The improved periodic compatibility of permits the Fourier error estimates above (see (7) and (8)) to be applied at the corrected regularity order. Its Fourier projection is
where the coefficients are
where and are given by (15) and (16), respectively. Thus, the Krylov–Lanczos approximation is then reconstructed by re-introducing the polynomial baseline
Because the corrected remainder satisfies the endpoint compatibility conditions (5), the Krylov–Lanczos approximation achieves the corresponding Fourier convergence rates, see for example, [9]. More precisely, for , with , we have
and
Remark 2.1. Beyond the approximation of the trajectory functions themselves, optimal control problems also require accurate approximations of their derivatives. Here, we discuss the relationship between the derivative of a truncated Fourier expansion and the truncated Fourier expansion of the derivative, and examine how the Krylov–Lanczos correction improves the approximation of derivatives.
Since the truncated Fourier expansion is a finite linear combination of trigonometric functions, its derivative can be computed analytically by differentiating term by term:
Suppose that satisfies the endpoint compatibility condition
Then, differentiation commutes with the truncated Fourier projection, that is,
Indeed, integration by parts shows that the Fourier coefficients of are and , while .
However, when , this property no longer holds. In this case, integration by parts introduces additional boundary terms, and differentiating the truncated Fourier expansion of does not yield the truncated Fourier expansion of . Hence, special care is needed when approximating derivatives.
In the case of Krylov–Lanczos approximation for the remainder (satisfies the endpoint compatibility conditions up to order ). Consequently, for , we have
Differentiating the Krylov–Lanczos approximation (2.22), we obtain
where the last sum is understood to be empty when .
We now state the corresponding convergence estimates for the derivatives. Let , with . Since
and the corrected remainder satisfies
the standard Fourier approximation estimates applied to yield
Thus, the Krylov–Lanczos correction not only improves the approximation of the original function but also provides improved convergence rates for its derivatives.
Asymptotic Jump Estimation via Eckhoff's Method
The Krylov–Lanczos correction introduced in the previous subsection requires the endpoint jumps , , to be known in advance. In many applications, however, these quantities are unknown. Eckhoff’s method estimates them from the high-frequency behavior of the Fourier coefficients of ; see [1].
For , repeated integration by parts separates the endpoint jumps from a remainder with coefficients of order , giving the following asymptotic expansions
where and are defined by (2.15) and (2.16), respectively. These relations show that the leading large- behavior of the Fourier coefficients is determined by the endpoint jumps . This observation provides the basis for estimating the jumps from the large-index Fourier coefficients.
To estimate the unknown endpoint jumps, define
Since for even and for odd , the coefficient is nonzero for each . Adding the asymptotic relations (2.30) and (2.31) gives
We choose distinct large indices
from the available range of Fourier coefficients. Define
and
The vector of endpoint jumps is then estimated by solving the linear system
The matrix has a Vandermonde-type structure in the variables . Hence, for distinct nonzero indices , it is nonsingular in exact arithmetic. In practice, however, the system may become ill-conditioned when is large or when the values are close to one another. When is nonsingular, the estimate can be written formally as
Using the estimated jump vector , define the estimated endpoint-correction polynomial by
where
Equivalently,
We then define the corrected remainder by
The Fourier coefficients of this corrected remainder are computed from the original coefficients by subtracting the contribution of the estimated endpoint correction:
Since the correction functions have zero mean, the constant coefficient is unchanged. Hence,
The Eckhoff-corrected reconstruction is therefore
The same Fourier coefficients and are used both to estimate the endpoint jumps and to construct the corrected residual coefficients. Thus, once the original Fourier coefficients have been computed, the correction step does not require any additional quadrature.
In this setting, Eckhoff’s method can be viewed as a Krylov–Lanczos correction in which the endpoint jumps are estimated from the large-index Fourier coefficients rather than supplied in advance.
Optimal Control Problem Formulation
We now specify the class of finite-horizon optimal control problems to which the preceding approximation tools will be applied. The purpose of the Fourier, Krylov–Lanczos, and Eckhoff constructions is to provide finite-dimensional representations of trajectories that are defined on a finite time interval and need not satisfy periodic endpoint conditions. This is important in optimal control, where state and control trajectories are generally non-periodic and may therefore be poorly approximated by a direct truncated Fourier series near the endpoints.
Let be fixed. We consider state trajectories
and control trajectories
satisfying a nonlinear dynamical system, endpoint constraints, and pointwise path constraints. The general problem is
The numerical dynamics in this paper are autonomous, so the explicit argument can be omitted in those application formulas. Tracking costs still depend on time through the prescribed reference.
Here denotes the state vector and denotes the control vector. The mapping
defines the endpoint cost, while defines the running cost. The dynamics are governed by . The mappings and define the endpoint equality constraints and the pointwise path inequality constraints, respectively.
This formulation includes many standard finite-horizon trajectory optimization problems. For example, a quadratic tracking objective is obtained with
where and are symmetric matrices of appropriate dimensions. The fixed-rate sensing example (see § 4.3) later uses a sampled information functional instead of this Bolza objective. Its dependence on finitely many trajectory evaluations is handled by the same coefficient parameterization; it is an explicit extension of the objective class in (46).
The problem (46) is infinite-dimensional because the unknowns are the functions and . The following sections use the endpoint-corrected Fourier representations developed above to approximate these trajectories and obtain a finite-dimensional optimization problem.
Fourier-Based Approximations for Optimal Control Problems
The main approach considered in this paper for solving optimal control problems is based on spectral methods. The idea is to approximate the original infinite-dimensional problem by a finite-dimensional optimization problem, where the decision variables are the coefficients of the state and control trajectories represented in a chosen basis of functions. In this section, we present Fourier-based approximation methods, with particular emphasis on the Krylov–Lanczos and Eckhoff-corrected Fourier approximations introduced in Section 2.
Approximate State and Control Parameterization
Following the spectral approximation approach, let and denote finite-dimensional approximations of the state and control trajectories. We write
where each component of and is represented by a Fourier-based or mixed approximation chosen according to the qualitative structure of the problem. More precisely, for each state component , , and each control component , , we introduce approximations of the form
where and are finite collections of approximation coefficients. The complete decision vector is then
Substituting these approximants into the cost functional and constraints yields the approximate problem
subject to
and
In (3.5) choosing small enough , we ensure , . The trajectory parameterization first gives a finite-dimensional but semi-infinite problem: there are finitely many coefficients, but the path conditions are imposed for every .
In numerical implementation, the dynamics and other path inequalities are enforced at specified nodes (which may differ by constraint or method) making the problem finite dimensional. Particularly, the dynamic feasibility condition (3.5) is enforced on a prescribed grid ; that is,
where is a chosen tolerance.
The approximation framework is intentionally kept general at this stage. In the subsections below, we specify three practically important cases: pure Fourier approximation for periodic problems, Krylov–Lanczos correction for non-periodic problems with known endpoint jump data, and Eckhoff correction for non-periodic problems in which the jump data must be recovered from the spectral coefficients.
Standard Fourier Approximation
If the endpoint conditions admit periodic state and control approximants, and the trajectories are sufficiently smooth under periodic continuation, it is natural to use truncated Fourier series directly. A standard Fourier expansion always has equal values at and ; being “close to periodic” cannot make incompatible hard endpoint conditions feasible.
In that case, one sets
where , and the vectors , are optimization variables.
This representation is compact and spectrally efficient when the trajectories are smooth and satisfy periodic endpoint compatibility conditions. However, in many finite-horizon optimal control problems, these conditions are not satisfied, reducing the effectiveness of standard Fourier approximations. In particular, a mismatch in endpoint values prevents uniform convergence on the entire interval and leads to the Gibbs phenomenon near the endpoints.
Fourier Approximation With Polynomial Endpoint Correction
A classical way to reduce endpoint mismatch is to split the function into a low-order polynomial part and a Fourier part. One writes
where is a polynomial of degree , chosen so as to satisfy prescribed endpoint conditions, and is approximated by a truncated Fourier series. This yields the approximation
The remaining part is then represented by a Fourier series,
To solve OPC problem, for the state and control are used this approximation. In [13], a fifth-order polynomial is used,
The six polynomial coefficients can be determined from prescribed values of the total trajectory and its first two derivatives at and , after subtracting the corresponding Fourier contributions [13]. Any endpoint derivative not prescribed by the OCP remains an optimization variable in the implemented baseline. Thus, prescribing alone to have the desired endpoint values would generally be insufficient: the Fourier part need not vanish there.
The polynomial correction approach is effective when endpoint values and derivatives are available explicitly. However, the choice of polynomial degree is fixed a priori and is not directly tied to the asymptotic jump structure of the Fourier coefficients and it increase number of variables.
Krylov–Lanczos Approximation
In some practical optimal control problems, the trajectories are non-periodic but the endpoint data are sufficiently structured that the jump information can be determined from the boundary conditions and smoothness requirements. Typical examples include problems in which one prescribes
or analogous endpoint conditions for the control.
In such cases, one may apply the Krylov–Lanczos correction component-wise. For the available endpoint jumps as before set (coordinate-wise)
Then, the corrected approximation is
where
and is a truncated Fourier approximation vector of the corresponding periodic remainder. Analogously, we construct an approximation of the control trajectory using the available endpoint conditions. In vector form, the state and control approximations are written as
The correction order is dictated by the amount of available endpoint information. For example, if only the value mismatch is known, then a first-order correction may be used; if both value and first-derivative jumps are known, then a second-order correction becomes natural. More generally, the Krylov–Lanczos correction is appropriate when the problem admits sufficiently smooth feasible trajectories and the relevant endpoint jump quantities can be computed or imposed consistently from the optimal control formulation.
Fourier-Eckhoff Approximation
In this subsection, we present the main approach proposed in this paper, the Fourier–Eckhoff approximation for optimal control problems, which is applicable to both periodic and nonperiodic settings. Unlike the Fourier approximation with polynomial correction (see § 3.3), the proposed method does not introduce additional optimization variables. Moreover, in contrast to the Krylov–Lanczos approximation, it does not require prior knowledge of the endpoint values or derivatives of the optimal trajectories.
In the standard Eckhoff setting, the function Fourier coefficients, , are known; that is, (34) is given. We choose correction order and distinct large indices . Then, leveraging (33), we approximate the endpoint jumps by solving following linear system
where is known (non-singular) and given by (34). In the optimal control case, the Fourier coefficients of the solution, are unknown. Nevertheless, the estimate in (33) holds true for the solution, hence, we can use approximation in (3.20) to express the endpoint jumps in terms of the optimization variables ; that is,
Using this, we write the Eckhoff correction term in terms of Fourier coefficients of the optimal solution
Therefore, the Eckhoff-corrected approximation becomes
Repeating the above steps for the state and control, we get following approximations
In the OCP, the Fourier coefficients are optimization variables rather than known coefficients of an already available optimal trajectory. The recovered jumps are determined from those variables by the fixed linear map , and the corrected Fourier coefficients must be formed by (2.42)–(2.43). Thus the correction is part of the trajectory parameterization, not an additional set of free jump variables. For common order , the state and control representation has variables.
Numerical Results and Applications
In this section, we present numerical experiments to evaluate the performance of the proposed Fourier–Eckhoff approximation for solving optimal control problems. We first validate the method on a problem with a known optimal solution, followed by high-frequency trajectory tracking and a fixed-rate sensing application. The results are compared with alternative numerical methods in terms of solution accuracy, constraint satisfaction, and computational efficiency.
For an approximate state–control pair , we define the dynamics residual
Its reported maximum is evaluated on an independent validation grid:
Thus, is a sampled validation measure. Successful solver termination alone does not establish continuous-time feasibility.
Validation against an Explicit Solution
We first consider an optimal control problem with a known explicit solution to evaluate the accuracy of the proposed Fourier–Eckhoff approximation. This allows us to directly compare the numerical results with the exact optimal solution. Specifically, we consider the following minimum-energy problem:
No additional state or control bounds are imposed.
The unique optimal state and control are
where
Consequently,

Figure 1. Exact optimal state and control.
To see why this solution is optimal, write any other feasible control as . The terminal condition implies , and therefore
Equality holds only when almost everywhere. Hence, is a minimizer.
The numerical formulations use uniform nodes and dynamics tolerance . The polynomial methods use . FE and Krylov–Lanczos (KL) use and ; KL is supplied with the exact endpoint jumps. The Fourier–polynomial method uses 15 Fourier modes, a quintic state correction, and a linear control correction. The mixed method uses Bernstein degree 5 and 13 Fourier modes per signal.
On an independent grid of 16 385 points, we measure
Table 1 shows that FE reproduces the optimal state with maximum error while maintaining a sampled dynamics residual below . The mixed method gives smaller state and control errors in this experiment. The comparison also illustrates that a small dynamics residual does not by itself imply a small error relative to the optimal solution.
| Method | Time (s) | |||
| Discrete | 3.84 | 3.80 | 0.019 | |
| Bernstein | 0.979 | |||
| Chebyshev | 0.960 | |||
| Legendre | 1.080 | |||
| Fourier–polynomial | 3.95 | 11.058 | ||
| Mixed Bernstein–Fourier | 1.229 | |||
| KL | 21.922 | |||
| FE | 3.285 |
Table 1. Explicit-solution validation.
High-Frequency Tracking with a Kinematic Bicycle Model
This experiment examines whether the Fourier representation can describe an oscillatory tracking task with fewer optimization variables than the tested polynomial representations.
Let
where denotes position, heading, speed, acceleration, and steering angle. The kinematic bicycle dynamics are
We minimize the tracking objective
subject to (80),
and
Here , , and . The terminal state is penalized, rather than imposed as an equality constraint.
With , define
The desired reference is
Its lateral component contains 12 and 20 oscillations over the horizon. The reference specifies the tracking task; it is not an exact optimal solution.
The weights are
The parameterized formulations enforce constraints at 3000 uniform points, with dynamics tolerance . In this experiment, Chebyshev and Legendre use modal representations evaluated on the same uniform grid.
Costs and residuals are checked independently on a dense validation grid.
| Method | Parameters | Variables | Time (s) | ||
| Chebyshev | 486 | 2.167488 | 133.566 | ||
| Legendre | 486 | 2.167488 | 114.990 | ||
| FE | , | 414 | 2.180732 | 96.492 | |
| Fourier–polynomial | — | — | — | — | |
| Bernstein | — | — | — | — | |
| Mixed Bernstein–Fourier | , | — | — | — | — |
Table 2. High-frequency bicycle tracking.
and denote the Bernstein degree and Fourier order of the mixed method. The recorded trial ended with an implementation exception (SystemError); no usable numerical result or solver time was recorded. These entries are not classified as time-limit terminations.
FE obtains a cost approximately 0.61% above the Chebyshev and Legendre values while using 14.8% fewer optimization variables. It also has a shorter recorded solution time and approximately half their sampled dynamics residual. Its residual slightly exceeds the nominal tolerance on the independent grid.
These results support the efficiency of the tested FE representation for this oscillatory problem. They do not establish a general superiority over polynomial methods at all approximation orders.

Figure 2. Bicycle states.

Figure 3. Bicycle controls.
Uniform Grids for Fixed-Rate Sensing
The purpose of this experiment is to examine an application in which uniform sampling is imposed by the measurement process. A moving observer selects its trajectory to improve bearing-only information about a stationary target, while satisfying motion and obstacle constraints.
The observer state and control are
with dynamics
We use seconds and impose
The path constraints are
The target is at . The observer must satisfy , where . Six circular obstacles have centers
Their physical radius is , and the required clearance is . Thus,
Measurements arrive at the fixed rate Hz:
Let and define
The normalized information matrix is
The optimal control problem minimizes
subject to the dynamics, endpoint conditions, and path constraints above. A larger indicates greater information, although the optimized objective also includes the motion penalty.
All methods use the same 501 sensor times for information accumulation and sampled path constraints. FE and Bernstein also enforce dynamics at these times. The tested Chebyshev and Legendre formulations enforce dynamics at their respective Lobatto nodes. The dynamics tolerance in the optimization is , and validation uses 25 001 uniform points.
| Method | Parameters | Variables | Time (s) | ||
| Bernstein | 125 | 7.18622 | 114.12 | ||
| FE | , | 125 | 7.21268 | 91.55 | |
| Chebyshev | 205 | 7.32487 | 141.58 | ||
| Legendre | 205 | 7.32048 | 131.12 | ||
| FE | , | 205 | 7.30996 | 271.44 |
Table 3. Fixed-rate sensing with six obstacles.
At 125 optimization variables, FE provides slightly greater information than Bernstein, with a smaller dynamics residual and shorter recorded computing time. At 205 variables, FE provides information close to the Chebyshev and Legendre results while reducing the sampled dynamics residual by more than two orders of magnitude. This improvement requires more dynamics-enforcement points and a longer solution time.
The experiment illustrates the convenience of aligning the FE discretization with physical sensor times. However, it does not isolate grid uniformity from the number of enforcement points. Polynomial representations can also be evaluated on uniform grids, as in the preceding experiment. Furthermore, small negative obstacle-clearance values were observed during dense validation; sampled enforcement alone therefore does not establish continuous-time obstacle feasibility.

Figure 4. Sensor times and dynamics-enforcement grids.
Sobolev Constraints and Five-Obstacle Avoidance
The final experiment addresses a limitation of pointwise constraint enforcement: a reconstructed trajectory may satisfy a constraint at the optimization nodes and violate it between them. We first describe the Sobolev formulation and then evaluate it on a five-obstacle avoidance problem.
Controlling the dynamics residual
Assume that and define
The one-dimensional Sobolev estimate gives
Hence the single scalar constraint
is sufficient to bound every dynamics-residual component by throughout the time interval.
In the numerical implementation, let , where . For a scalar function , define
where
For a vector residual, the squared quantities are summed over its components. The implemented dynamics constraint is
It is essential to distinguish (95) from the exact norm constraint (5.0.1). If a verified error bound satisfies
then the tightened condition
guarantees the continuous-time residual bound. Without such an error bound, dense-grid checks provide numerical evidence rather than a rigorous continuous-time certificate.
Extending the idea to obstacle constraints
A bound on the dynamics residual does not directly control obstacle clearance. To treat an obstacle inequality
we introduce a scalar slack trajectory and the residual
If and
then, for every ,
Thus, an exact Sobolev bound on each safety residual implies obstacle avoidance throughout the interval.
The slack trajectories are represented by FE expansions. In the implementation, their safety residual norms are approximated using (5.1). The same distinction between an exact norm bound and its numerical approximation applies here.
Five-obstacle optimal control problem
The purpose of this experiment is to compare pointwise constraint enforcement with simultaneous Sobolev control of dynamics and obstacle residuals.
We use the bicycle dynamics (4.9) and objective (4.10), now with
and the straight-line reference
The terminal state remains a soft target. The weights are
The bounds are
Five obstacles are placed at
Each obstacle has physical radius 0.54, prescribed clearance 0.12, and additional margin 0.05. The inflated safety radius is therefore
The obstacle constraints are
The straight-line reference intersects the inflated obstacles, so a feasible trajectory must perform repeated lateral avoidance maneuvers.
The parameterized formulations use uniform nodes and dynamics tolerance . The discrete baseline uses nodes. All methods are initialized from the same slalom construction, represented in their respective approximation spaces.
The pointwise formulations impose the dynamics and obstacle inequalities at the optimization nodes. FE-S instead uses one aggregate Sobolev constraint for the dynamics and one Sobolev constraint for each of the five safety residuals. The remaining state and control bounds are enforced at the nodes.
For FE-S, the state and control order is , the slack order is , and . We use
Since ,
The implemented safety-norm constraints include additional tightening:
This tightening provides numerical margin but is not, by itself, a verified bound on norm approximation error.
Validation uses 100 001 uniform points. Basis representations are differentiated analytically; the discrete solution is reconstructed piecewise linearly. In addition to cost and dynamics residual, we report the minimum sampled safety margin
A negative value indicates a violation of the inflated safety boundary, not necessarily an intersection with the physical obstacle.
Among the converged pointwise parameterized formulations in Table 4, FE gives the lowest recorded cost, with computing time close to those of Bernstein, Chebyshev, and Legendre. However, all these pointwise solutions exhibit small negative safety margins on the dense validation grid. The discrete baseline has a still lower cost, but its large reconstructed dynamics residual prevents interpreting this as a comparable dynamically feasible result.
| Method | Parameters | Variables | (mm) | Time (s) | ||
| Discrete | 6006 | 1.205274 | 0.687 | |||
| Bernstein | 150 | 1.785481 | 29.473 | |||
| Chebyshev | 246 | 1.432037 | 27.080 | |||
| Legendre | 246 | 1.432037 | 26.632 | |||
| Fourier–polynomial | 240 | 1.344416 | 195.261 | |||
| FE | , | 294 | 1.292812 | 28.424 | ||
| FE-S† | , , | 1019 | 1.731065 | 209.815 | ||
| Mixed Bernstein–Fourier‡ | , | 192 | 1.454210 | 281.366 |
Table 4. Five-obstacle avoidance.
FE-S reduces the sampled dynamics residual by approximately a factor of 30 relative to FE and maintains a positive minimum sampled safety margin of approximately 1.98 mm.
The independently evaluated maximum safety-residual norm is approximately , below the nominal value .
These improvements require additional slack variables, a higher objective value, and a longer solution time.
Figure 6 compares the minimum obstacle distances for the configurations in Table 4. Increasing the approximation order alone did not ensure satisfaction of the prescribed safety margin in the additional recorded runs. For Chebyshev and Legendre, increasing the degree from 40 to 56 reduced the minimum-margin violation from approximately 0.0448 mm to 0.0034 mm, but did not eliminate it. Bernstein runs at degrees 28 and 32 also retained negative safety margins and reached the 270 s CPU-time limit. These are violations of the inflated safety boundary, not observed collisions with the physical obstacles. Higher order increases the number of decision variables and can increase computing time, although the measured times are not monotone in degree. Thus, FE-S’s longer solution time buys explicit Sobolev residual control and a positive sampled safety margin in this experiment; increasing the order of a pointwise formulation alone does not provide the same guarantee. The continuous-time safety guarantee in (5.4) remains conditional on satisfaction of the stated Sobolev norm bound.
The experiment therefore demonstrates a trade-off: the pointwise FE formulation provides a compact and comparatively inexpensive approximation, whereas the Sobolev extension gives stronger numerical control of dynamics and obstacle residuals. The continuous-time implication (5.4) is mathematical; the reported discretized computations support it numerically but do not supply a verified quadrature-error certificate.
In the five-obstacle experiment, FE-S reduces the sampled dynamics residual by approximately a factor of 30 and yields a positive sampled safety margin. These improvements require additional variables, a higher objective value, and more computing time. The discretized results support improved residual control, while continuous-time guarantees remain conditional on verified norm bounds.
Figure 5. FE-S path around five obstacles.

Figure 6. Obstacle distance and minimum safety margin for Table 4.
DiGREA Lab, CSIE, National Polytechnic University of Armenia
DiGREA Lab, CSIE, Institute of Mathematics SNCO
DiGREA Lab, CSIE, Institute of Mathematics SNCO, Armenia; Yerevan State University
DiGREA Lab, CSIE, Institute of Mathematics SNCO, Armenia; Yerevan State University
Email address: [email protected]
References
- [1]A. Barkhudaryan, R. Barkhudaryan, and A. Poghosyan. Asymptotic behavior of Eckhoff’s method for Fourier series convergence acceleration. Analysis in Theory and Applications, 23(3):228–242, 2007.
- [2]John T. Betts. Practical Methods for Optimal Control and Estimation Using Nonlinear Programming. SIAM, Philadelphia, 2 edition, 2010.DOI
- [3]John P. Boyd. Chebyshev and Fourier Spectral Methods. Dover Publications, Mineola, NY, 2 edition, 2001.
- [4]Venanzio Cichella, Isaac Kaminer, Claire Walton, Naira Hovakimyan, and António Pascoal. Consistency of approximation of bernstein polynomial-based direct methods for optimal control. Machines, 10(12):1132, 2022.DOI
- [5]Venanzio Cichella, Isaac Kaminer, Claire Walton, Naira Hovakimyan, and Antonio Pascoal. Optimal multivehicle motion planning using bernstein approximants. IEEE Transactions on Automatic Control, 66(4):1453–1467, 2021.DOI
- [6]Knut S. Eckhoff. Accurate reconstructions of functions of finite regularity from truncated Fourier series expansions. Mathematics of Computation, 64(210):671–690, 1995.
- [7]Rida T. Farouki. The Bernstein polynomial basis: A centennial retrospective. Computer Aided Geometric Design, 29(6):379–419, 2012.DOI
- [8]Divya Garg, Michael Patterson, William W. Hager, Anil V. Rao, David A. Benson, and Geoffrey T. Huntington. A unified framework for the numerical solution of optimal control problems using pseudospectral methods. Automatica, 46(11):1843–1851, 2010.
- [9]A. N. Krylov. On Approximate Calculations. Tipolitography of Birkenfeld, St. Petersburg, 1907. Lectures delivered in 1906; in Russian.
- [10]Cornelius Lanczos. Discourse on Fourier Series. Oliver and Boyd, Edinburgh, 1966.
- [11]Steven M. LaValle. Planning Algorithms. Cambridge University Press, 2006.
- [12]Liraz Mudrik, Sean Kragelund, and Isaac Kaminer. Optimal motion planning using mixed Bernstein–Fourier approximants. In 2025 American Control Conference (ACC), pages 5060–5066, 2025.
- [13]Mark L. Nagurka and V. Yen. Fourier-based optimal control of nonlinear dynamic systems. Journal of Dynamic Systems, Measurement, and Control, 112(1):17–26, 1990.
- [14]Antoni Zygmund. Trigonometric Series. Cambridge University Press, 3 edition, 2002. Volumes I and II combined.
