Abstract
While the established theory of computer-aided geometric design (CAGD) suggests that rational Bernstein–Bézier polynomials associated with control points can be used to accurately represent conics and quadrics, this paper shows that the same goal can be achieved in a different manner. More specifically, rational Lagrange polynomials of the same degree, associated with nodal points lying on the true curve or surface, can be combined with appropriate weights to yield equivalent numerical results within a Bézier patch. The specific application of this equivalence to derive weights for Lagrange nodes on conics and quadrics is shown in this paper. Although this replacement may not be crucial for CAGD purposes, it proves useful for the direct implementation of boundary conditions in isogeometric analysis, since it allows the use of nodal values on the exact boundary.
Keywords:
Lagrange polynomial; Bernstein–Bézier polynomial; Bézier patch; computer-aided geometric design; isogeometric analysis; finite element method MSC:
41A10; 41A15; 65N30
1. Introduction
Since the mid-1970s, research in computer-aided geometric design (CAGD) has heavily relied on Bernstein–Bézier polynomials as a foundational tool for representing and manipulating curves and surfaces. This preference stems primarily from their strong geometric intuition: the shape of a Bézier curve or surface is governed by a finite set of control points, which usually lie outside the geometric entity itself and act as handles for interactive design and editing. A second important reason is the mathematical flexibility of the Bernstein basis, which supports essential operations such as degree elevation, subdivision, and knot insertion, enabling local refinement without altering the global geometry’s key features for adaptive modeling and analysis [1].
Furthermore, Bernstein polynomials are central to the construction of non-uniform rational B-splines (NURBSs), which extend polynomial representations by incorporating weights. This allows for the exact representation of conic sections and other analytic shapes, a capability critical to engineering design and manufacturing applications. As a result, Bernstein-based representations remain a cornerstone of modern computer-aided design and computer-aided manufacturing (CAD/CAM) systems and form the basis of isogeometric analysis, which unifies geometric modeling [1,2,3], finite element analysis [4], and boundary element analysis [5].
It is well established in the literature that the weighted, or rational, Bernstein–Bézier formulation enables the exact representation of conic sections and quadrics, provided that suitable weights are assigned to the appropriate control points (e.g., see [1,2,3], among hundreds of other sources). This capability is one of the key advantages of rational Bézier and NURBS representations in computer-aided geometric design and CAD systems. However, there have also been a limited number of investigations into using Lagrange polynomials for similar geometric modeling tasks, particularly for approximating circular arcs and ellipses, but for efficient isogeometric analysis as well [6,7]. Focusing on circular arcs, these approaches can produce visually acceptable results but typically suffer from small but non-negligible numerical errors due to the inability of polynomial Lagrange interpolation to exactly represent circular shapes [8,9,10,11].
On the other hand, Lagrange interpolation in itself is quite robust and efficient. The mentioned instabilities are related to Runge oscillations, which only occur on equidistant nodal distributions (for example, see Ref. [12]). Within this context, Lagrange interpolation might break down in such a case for high polynomial orders. However, a simple remedy is to use non-equidistant nodal distributions that accumulate nodes near the interval boundaries. This has been done in the Spectral Element Method (SEM), where Gauss–Lobatto–Legendre (GLL) or Gauss–Lobatto–Chebyshev (GLC) nodes are employed to replace equidistant nodes [13,14]. Such non-equidistant nodes result in excellent interpolation properties and mitigate any instabilities. Employing GLL or GLC nodes, it has been noticed that the element matrices are well conditioned, and numerical problems do not arise [15].
From the above discussion, it follows that Lagrange polynomials offer high accuracy when applied in conjunction with non-equidistant nodal distributions (e.g., GLL or GLC points), whereas Bernstein polynomials possess the advantage of incorporating weights that enable the exact representation of conics and quadrics.
In this paper, we lay the groundwork for combining these two advantages into a unified framework. Specifically, we determine the nodal coordinates and the associated weights that can be directly applied to both uniform and non-uniform Lagrange polynomials, thereby establishing an equivalent functional basis of rational Lagrange polynomials within a rational Bézier curve or a rational Bézier patch.
The present paper is structured as follows: Section 2 introduces the transformation matrix from Bernstein to Lagrange polynomials. Section 3 derives the weights applicable to Lagrange polynomials when nodal points lie on the true curve. Section 4 presents illustrative examples of a circular arc. Section 5 extends the proposed method to a spherical cap. Section 6 addresses the numerical implementation for tensor-product surfaces of arbitrary topology. Section 7 reports numerical solutions of a two-dimensional boundary-value problem governed by the Laplace equation. Section 8 provides a discussion that places the findings in context and highlights their implications. Finally, Section 9 summarizes the main conclusions and outlines directions for future work.
2. General Formulation
2.1. Degree Elevation Using Bernstein–Bézier Polynomials
Rational Bézier curves can be readily handled within the framework of computer-aided geometric design (CAGD). Beginning with a low degree, such as , and employing an appropriate set of homogeneous (projected) control points , with weights (), the shape of the curve remains invariant under degree elevation, with the control points being updated accordingly at each step as follows:
with
The updated homogeneous weights that accompany the elevated control points (or the 2-D analogue) follow exactly the same convex-combination pattern as for the degree elevation formula for Bernstein (polynomial) Bézier curves (cf. Equation (1)):
with the boundary values preserved,
Once the homogeneous points are updated, we obtain the control points (in Cartesian coordinates) simply by dehomogenising:
This degree-elevation step may be applied repeatedly; after k successive elevations (to degree ), the same recurrence is used at each stage, guaranteeing that the rational Bézier curve’s shape remains unchanged, while its control-polygon flexibility increases.
2.2. Replacing Bernstein Polynomials with Lagrange Polynomials
While the procedure of degree elevation is straightforward in conjunction with Bernstein polynomials, this is not the case with Lagrange polynomials. Of course, since both sets span the same space (of powers ), these two sets are linearly interrelated.
In more detail, let us consider the reference unit length . For a certain degree n, i.e., for the nodal points , let be the column vector (of size ) including all relevant univariate Lagrange polynomials of degree n (the superscript ⊤ stands for the transpose):
and be the column vector (of size ) including all univariate Bernstein polynomials of degree n:
Then, we can write
and
where (from Bernstein to Lagrange) and (from Lagrange to Bernstein) are transformation matrices, which have been discussed in detail elsewhere [16]. For the purposes of this paper, the determination of transformation matrix that must be applied to Lagrange polynomials—according to Equation (9)—plays a critical role. This issue is discussed in detail in Section 2.5.
Actually, since a linear transformation occurs between two functional sets (here, the subscripts are B: Bernstein–Bézier; L: Lagrange), not only the different sets of polynomials (cf. Equations (8) and (9)) but also the homogeneous coordinates () and the weights () are interrelated according to the theorem detailed below. Note that each of the matrices () is an array of size , where the first column corresponds to the x-coordinates, the second to the y-coordinates, and the third to the z-coordinates of nodal points or control points. Moreover, each of () is a column vector of size .
Theorem 1.
The homogeneous (projected) cordinates of nodal points () associated with the true boundary of curve in the Lagrange formulation are related to the projected control points () of the same curve in the Bernstein formulation, as follows:
Moreover, weights in the Lagrange formulation are related to weights in the initial Bernstein formulation, as follows:
Proof.
The proof is based on the fact that the shape of the curve under consideration is preserved (in shape and parametrically [2]). Therefore, expressing first in terms of Lagrange polynomials (forming the vector ) and second in terms of Bernstein polynomials (forming the vector ), we have
Remark 1.
Weights. In a previous work (see pp. 80–83, [16]) regarding a circular arc of 90 degrees modeled by quadratic Bernstein polynomials, Equation (11) was proven from scratch (after manipulation), but here the formula was generalized in matrix form for any degree n.
Therefore, if we restrict our study, for example, to a circular arc with a central angle of 90°, we may begin with a quadratic polynomial () associated with the weights (see, Ref. [17]). Subsequently, Equation (3) can be applied to compute the weights resulting from successive degree elevations until a certain degree .
For each of the abovementioned degree elevations, we can determine the transformation matrix , and then implement Equation (11) to determine the weights associated with the rational Lagrange polynomials.
Remark 2.
Nodal points. By definition, non-uniform rational B-splines (NURBS) are a non-uniform interpolation. This means that even if the interval is uniformly subdivided by the points , the corresponding nodal points do not generally subdivide the curve in equal arc lengths. This issue is shown later in Section 3.1.2.
2.3. Determination of Transformation Matrix
In this section, we present two alternative procedures for constructing the transformation matrix.
2.3.1. Detailed Algebraic Procedure
Since Bernstein and Lagrange polynomials span the same space (of monomials ), any univariate function will be equally written in any of them. By equating the coefficients of the same powers , we can derive a relationship between nodal values and generalized coefficients . This relationship is set in the form
Example 1.
Let us set function in terms of quadratic Lagrange polynomials (based on uniform nodal points at ), as follows:
Alternatively, let us set the same function in terms of Bernstein polynomials:
By equating the coefficients of the same powers between the quadratic polynomials given by Equations (15) and (16), we obtain the following system:
Equation (18) can be solved for either of the two vectors. Choosing the second one, after matrix inversion, we have
Comparing Equation (20) with the first equality of Equation (15), the unique representation—in terms of ()—leads to the following relationships:
Therefore, if we pack all triplets into the relevant column vectors
the above relationships are written in matrix form as follows:
and
with
2.3.2. A Shorter Numerical Procedure
Since the transformation matrices simply relate the nodal vector to the coefficient vector as given in Equation (26), in a unique manner (due to the same polynomial degree), we can begin by implementing the well-known formula
at the uniform points (with which the nodal values are associated), and thus we shortly obtain
Therefore, by applying the Bernstein-based series expansion Equation (28) at three points on the true curve associated with uniform parameters , we can shortly obtain the transpose of the transformation matrix :
which denotes the change from the Lagrange (L) to the Bernstein (B) basis.
The generalization of the above procedure to an arbitrary degree p is presented in Section 2.5.
2.4. From Approximation Theory and Numerical Analysis to CAGD
In this subsection, we continue the discussion, restricting it to .
The conclusions of Section 2.3 pertain to the relationship between the nodal values and the generalized coefficients . Within the context of computer-aided geometric design (CAGD), the nodal values correspond to the Cartesian coordinates of nodal points (i.e., of size ) on the true curve , whereas the generalized coefficients are interpreted as control points (each of them is of size ), which form an exoskeleton of curve .
Within this context, in non-rational formulation, the substitute of Equation (28) is
where (i.e., of size ).
Therefore, when the weights are equal to unity (), Equation (31) can be applied at nodal points on the exact curve (at specific—thus far uniform—parameter values ) and then solved for . Next, we show that the matrix relating the three nodal points (of size ) and the three control points (of size ) is
where is the aforementioned transformation matrix of size , defined in Equation (30).
Actually, when the weights are non-unit (), Equation (31) extends to
where the projected (homogeneous) control points, packed into matrix of size , are given by the well-known formula
Depending on the value of parameter , the row vector (of size ) in the numerator of Equation (33) is one out of the three rows of matrix involved in Equation (30). In more detail, considering Equation (34), we have
The totality of Equations (35)–(37) forms matrix of nodal points on curve (for , this matrix is of size ), which was calculated at the uniform values of parameter :
From Equations (35)–(37) it is also concluded that, in terms of the projected control points , we can calculate the projected nodal coordinates (generally located outside the true curve ), as follows (see also Equation (10)):
where
with (see also Equation (11))
Based on the three nodal points given by Equation (40), we shall now show how they can be incorporated into the formulation of the geometry description.
The first step is to rewrite the denominator of Equation (33), so that its last equality becomes
where is the column vector of the abovementioned weights in the classical Bernstein formulation:
The second step is to substitute the row vector of Bernstein polynomials (of size ) in both the numerator and denominator of Equation (33), by row vector (using the second equality of Equation (25)), as follows:
The third step is to apply Equations (10) and (11) to the numerator and denominator of Equation (44), respectively, and thus it eventually becomes
Regarding Equation (45), one may observe that in the numerator, weights have been incorporated into the projected (homogeneous) nodal coordinates , which are related to—but generally do not coincide with—the i-th projected control point (). The denominator, on the other hand, consists of the product of the Lagrange polynomials associated with the three nodal points and the weight column vector in the Lagrangian system.
It is worth mentioning that although the three nodal points () subdivide the circular arc into two equal parts, due to the presence of weights , the mapping from the parameter space to the physical space is, in general, non-uniform, even if each part is further subdivided into uniform increments . This implies that increments of the corresponding central angles will also be non-uniform, as will be further discussed in Section 3.1.2.
2.5. General Procedure for the Determination of Transformation Matrix
2.5.1. Uniform Points
Then, Equation (46) is applied to the set of uniform points (with which the nodal values are associated), and thus we eventually obtain
where the Bernstein polynomials of degree p are given by
Two methods are available for computing the Bernstein polynomials in Equation (47), as follows:
- Direct evaluation via Equation (48);
- Utilization of efficient B-spline algorithms using the knot vector(see, [12]), an example of which is the spcol function in MATLAB ver. R2025a.
Obviously, for a polynomial degree p, transformation matrix is of size .
A library of transformation matrices, , for , together with the corresponding weight vectors , is provided in Section 3.
2.5.2. Non-Uniform Points
A similar procedure is followed when points to which Equation (46) is applied are non-uniform. Equation (47) holds again, but is applied to a set of points non-uniformly distributed in the interval . An example is given in Section 3.1.2.
3. Weights
3.1. Circular Arc with Central Angle 90°
3.1.1. Uniform Distribution
We consider a circular arc of central angle 90° and radius in the first quadrant. We start with degree in conjunction with the well-known control points , , and , and the initial weights (, according to [17]).
As a first step, we continuously elevate the polynomial degree applying Equation (3), thus determining the updated weights for each degree. Furthermore, applying Equation (1), we determine the Lagrange-based weights.
The second step is to determine the transpose of transformation matrix for the desired degree p. Collectively, by implementing Equation (47) for degrees until , we obtain
Table 1.
Weights and for the quarter of a circle.
3.1.2. Non-Uniform Distribution
Now, we consider the case of non-uniform distribution of nodal points along the edges of a 27-node classical transfinite element (shown in Figure 1), where the nodes along the horizontal edge AB are located at non-uniform positions:
Figure 1.
Twenty-seven node classical transfinite element ABCD.
The formulation follows Equation (47), where the Bernstein polynomials are evaluated at the -vector given in Equation (54). Consequently, the transformation matrix takes the following form:
whence the updated associated weight vector (according to Equation (11)) becomes
One may observe in Equation (56) that the non-uniform node distribution (Equation (54)) leads to the non-symmetric form of vector .
In the following section, we shall demonstrate that—using Equations (55) and (56)—both a straight segment and a circular arc can be represented accurately.
- Straight segment
Taking the uniform set of control points associated with the Bernstein basis of degree (in the x-direction, considering weights , whereas ),
and left-multiplying by the non-uniform transformation matrix given by in Equation (55) according to Equation (10), we derive the true non-uniform x-coordinates (obviously ):
The result of Equation (58) is validated by the non-uniform nodal points shown on edge AB of Figure 1.
Remark 3.
- II.
- Circular arc
The projected coordinates in the Lagrange formulation can be computed from Equation (10), using the Cartesian coordinates of the control points in the Bernstein formulation (Table 2) together with the associated weights in Table 1. Subsequently, these projected coordinates are divided by the corresponding entries of the column vector given in Equation (56), thereby yielding the Cartesian coordinates.
Table 2.
Central angles and , with (in degrees) associated with the endpoints of .
The results of the above procedure are illustrated in Figure 2, where the nodal sequence {1,2,3,4,5,6} of the Lagrangian formulation is oriented counterclockwise. The five central angles formed by the radii corresponding to the endpoints of each nodal segment (i.e., 1–2, …, 5–6) are listed in Table 2. It can be observed that nodal point 4 (at ) lies exactly at the midpoint of the circular arc (i.e., ). However, the remaining nodes do not divide the two portions—three segments (nodes 1 to 4) and two segments (nodes 4 to 6)—into equal magnitudes. In other words, parameter increments differ from the increments in central angle in the Lagrangian formulation, as is also the case for the corresponding central angle in the Bernstein formulation (with control points to shown in magenta).
Figure 2.
Modelling of edge AB in the 27-node classical transfinite element (see Figure 1).
Finally, the rational and non-rational shape functions corresponding to nodal points 1–6 on the circular arc are shown in Figure 3, with identical colors used for matching curves.
Figure 3.
Shape functions for rational (solid lines) and standard non-rational (dashed lines) Lagrange polynomials (corresponding to the nodal points on edge AB in Figure 1).
3.2. Central Angle Different than 90°
The control triangle of the arc must be isosceles, the end weights can be set to 1, and the middle weight is the cosine of the angle between the chord joining the endpoints and one of the legs [17].
Therefore, if the central angle of the circular arc equals to , to accurately represent the geometry, one choice of the weights is
However, the end weights do not have to remain 1; the arc can be “reweighted” using the shape invariance ratio:
For example, an equivalent choice to that of Equation (59) may be
4. Examples
4.1. Example 1: The Case of Degree p = 2
Let us consider a circular arc in the first quadrant, with a central angle of 90°. Considering the transformation matrix given by Equation (49) as well as the well-known column vector of weights (Ref. [17]), the Lagrangian weights are given by the column vector (see Equation (11)):
Moreover, supressing the third Cartesian coordinate (), Equation (10) shows that the nodal points on the circular arc are given as
To obtain the Cartesian coordinates () of the nodal points onto the circular arc, the entries of matrix (Equation (63)) must be divided by the corresponding elements of vector (Equation (62)), thus obtaining
Therefore, in Equation (64), we eventually derive the coordinates of the two endpoints plus the middle point of the circular arc.
Remark 4.
In the above case, where , the nodal points on which the equivalent rational Lagrange polynomials are based have divided the circular arc in two equal parts, i.e., and .
Nevertheless, for higher degrees (i.e., ), the nodal points are not uniformly distributed. Since the parameterization does not change with degree elevation [2], the findings of this section for are sufficient to determine the position of the nodal points for higher degrees.
Within this context, for any polynomial degree which is related to parameter values , the nodal points are calculated through the quadratic model of this subsection as follows:
The results of sweeping the spectrum of polynomial degrees from to and applying Equation (65) to the uniform parameters are listed in Table 3.
Table 3.
Nodal coordinates on the circular arc for polynomial degree p at uniform parameter values .
4.2. Example 2: The Case of Degree p = 3
4.2.1. Straight Line
First, it is worth commenting on the representation of a straight line through rational interpolation. Within this context, let us consider a segment AB, made of points A(0,0) and B(1,1), which is uniformly subdivided in three equal parts by points C and D, as shown in Figure 4. Assuming that the parametric space along AB corresponds to the interval , it is reasonable to consider that points C and D correspond to and , respectively. Therefore, the associated Lagrange polynomials are given by
Figure 4.
Uniform subdivision of straight segment.
Given the weights
associated with the points (A, C, D, B), the rational approximation is given as
and
By definition, due to the cardinality of rational shape functions, parameters correspond to points A, C, D, and B, respectively. In all cases, it is found that the whole mapping is the straight segment AB itself. For example, if the segment lies on the bisector of the right angle in the first quadrant, the nodal points are equal to each other, and thus the same rational basis functions lead to the same output ().
Moreover, it was found that
- When , the mapping is uniform, i.e., .
- In contrast, when , the mapping is non-uniform.
4.2.2. Circular Arc of
Now, we focus on the representation of the circular arc using rational Lagrange polynomials of degree .
While Equation (66) is still valid, in the current case—due to symmetry with respect to the bisector of first quadrant—the weights are taken as
The question is whether it is possible to determine a unique value of the weight such that the corresponding rational Lagrange polynomials, based on the uniform nodes (A, C, D, B) in the physical space, can exactly represent the circular arc. In this regard, by means of a counterexample, we will show that this is not generally possible.
Substituting Equations (68) and (69) into the circle constraint
yields a sixth-degree polynomial in , as follows:
with
It can be observed that the constant term vanishes a priori (Equation (73)), while the root of Equation (74) gives . The closest root of the binomial in Equation (75) is slightly larger, , whereas Equation (76) vanishes at a higher value, . Equation (77) yields two complex roots, and the remaining two equations differ substantially from . Therefore, no real value of can make all coefficients to simultaneously zero.
In conclusion,
- It is generally not possible to represent a circular arc accurately using equidistant nodal points, even with rational Lagrange polynomials. By employing optimization techniques, where an objective function such as is minimized, a value of can be determined that approximately satisfies for . Nevertheless, small deviations from the ideal circle remain (e.g., beyond the fourth decimal place).
4.3. Example 3: The Case of Degree p = 5
Let us deal with the uniform case of . For , the Lagrange polynomials are as follows:
The Lagrange polynomials defined in Equation (80) can be combined with the nodal points on the exact circular arc (for brevity, the third coordinate is omitted since )
and the associated weights
both listed in Table 3 for . In this case, the arc is represented accurately up to the 15th decimal place, which corresponds to the precision limit of our computer.
While the aforementioned nodal coordinates in Equation (81) were obtained using the quadratic Bernstein formulation (Equation (65)), the same result can also be achieved by first computing the control points and the associated weights of the Bernstein polynomials corresponding to the degree elevation from to . This presentation is meaningful, as it also illustrates the general procedure in cases where the six control points are generated in an arbitrary manner (i.e., not by degree elevation, which preserves the shape, but rather by shifting the control points during the design process).
Subsequently, the transformation matrix in Equation (52) can be applied to determine the desired and .
Within this context, the successive application of Equation (1) gives the projected coordinates of the control points (not presented), while the associated weights are isolated in the following column vector (Table 1 for ):
Applying the dehomogenization according to Equation (5), the Cartesian coordinates of the control points in the Bernstein representation of the quarter circle are given as follows:
As mentioned earlier, the two columns of (of size ) in Equation (84) correspond to the x- and y-cordinates, respectively.
The circular arc under consideration occupies the first quadrant and is subdivided at the nodal points which correspond to the parametric vector . To determine the Cartesian coordinates of the images in the entries of set , it becomes necessary to apply the rational Bézier formula
where the coordinates are given by Equation (84). The corresponding weights are the entries of column vector in Equation (83).
Based on the Cartesian coordinates of nodal points on the true circular arc according to Equation (85), which eventually are found to be the same as those in Equation (81), and using weights shown in Table 1, which are the same as those in Equation (82), the parametric equation of the circular arc is as follows:
The interesting issue is the position of the nodal points in the Lagrangian model. While for quadratic interpolation (i.e., ) the nodal points are the two endpoints and the middle point, in all other situations, they are arranged in a non-uniform way. For example, for the current case, where , the polar angle for the nodal points (1 to 6 in the counter-clockwise direction) in the first quadrant is shown in Table 4. One may observe that, although is a constant, the corresponding central angles differ from one another.
Table 4.
Polar angle (in degrees) for the quarter of a circle ().
5. Spherical Cap
The above formulation is applicable to surfaces as well. As an example, we consider a spherical cap, which is exactly one-sixth of a unit sphere’s surface. It is known that the quadratic interpolation is not capable of accurately representing this curvilinear surface [18]. In contrast, quartic interpolation () in conjunction with 25 control points can accurately represent this cap [19] (see the parametric space in Figure 5).
Figure 5.
Numbering of control points in the reference square ABCD.
Regarding the southern spherical cap, the location of 25 control points and the associated weights are available through the MATLAB function southcap=rsmak(‘southcap’). With respect to Bernstein polynomials of degree , the Cartesian coordinates and the associated weights of control points are shown in Table 5. There, one may observe that the analytical formula is not an ideal tensor product, in the sense that the weights associated with the internal control points are not products of the corresponding boundary ones (i.e., ).
Table 5.
Cartesian coordinates and weights associated with the 25 control points on the southern spherical cap of a unit sphere ().
By analogy to the one-dimensional procedure reported in the previous sections of this paper, the algorithm to derive the nodal points (on the true sperical surface) and the associated weights is as follows:
- Calculate projected control points and associated weights . This is implemented using the abovementioned built-in MATLAB function:
- Create the total transformation matrix , of size (see below). In more detail, if the one-dimensional matrix of Equation (51) is shortly written asthe 2D analog—applied to a surface patch—becomes
- Multiply the control points by the abovementioned and thus determine the projected nodal points :
- Multiply the weights vector by the abovementioned and thus derive the weights associated with Lagrange polynomials:
The implementation of the above algorithm to the southern spherical cap of a sphere of unit radius () gives the numerical values shown in Table 6. Based on these data, for every pair , the image was found to belong to the true spherical cap (numerical error less than ) and also coincided with the corresponding point obtained using rational Bernstein polynomials.
Table 6.
Cartesian coordinates and weights associated with the 25 nodal points on the southern spherical cap of a unit sphere ().
6. Generalization to Arbitrary Tensor-Product Surfaces
The proposed method is applicable to rational Bézier patches (or curves) and to assemblies thereof (domain decomposition). It is not applicable to B-spline patches (or curves), as explained at the end of Section 8.
6.1. General Approach
For tensor-product surfaces of arbitrary topology, the proposed method generalizes into a structured two-step procedure. The core challenge is that the mapping from the parametric space to the physical space is not known a priori. The solution involves determining the Cartesian coordinates of nodal points (which lie on the true surface) and their associated weights by solving a coupled nonlinear system.
Step 1: Establish the Parametric Grid and Basis Functions
- Define the Parametric Grid: A structured grid of parameters is defined in the unit square . This grid establishes the topology of the Lagrange patch. The nodal parameters can be set, for instance, to and for a surface of degree in the -direction and in the -direction. Non-uniform sets and are acceptable as well.
- Construct Basis Functions: The corresponding sets of Lagrange polynomials and are constructed. These polynomials satisfy the cardinal property .
- Initialize the Rational Basis: Rational basis functions are formally constructed from these Lagrange polynomials and unknown weights . As an initial step for numerical solvers, all weights can be set to 1.
Step 2: Solve the Coupled Nonlinear System
The unknowns—the Cartesian coordinates of nodal points and their associated weights —are found by solving a system constrained by both data and the intrinsic geometry of the target surface . This is a constrained nonlinear optimization problem.
- Objective Function (Data Fitting): Surface must approximate a set of M data points sampled from the target surface ( must not be confused with control points). This leads to the objective function being minimized:
- Nonlinear Constraints (Geometric Fidelity): Nodal points must satisfy the implicit equations defining the target surface’s geometry. For a surface defined by , this imposes the constraints
6.1.1. General Algorithm
This coupled system (Equations (91) and (92)) is typically solved using a nonlinear least-squares solver (e.g., Levenberg–Marquardt [20,21]) or other large-scale nonlinear optimization techniques, where the nodal net and weights are (equally) the optimization variables. Within the context of MATLAB software, a useful function for this purpose is fsolve.
6.1.2. Efficient Algorithm
The fully coupled nonlinear optimization, while robust, can be computationally intensive. In practice, we often employ a computationally efficient iterative refinement procedure that decouples the problem into a sequence of simpler sub-problems. This approach is numerically stable and converges rapidly for well-behaved geometries.
Our algorithm proceeds as follows:
Initialization: We initialize all weights to , reducing the rational Lagrange formulation to a standard polynomial Lagrange one.
Iterative Loop:
- (a)
- Linear Nodal Point Solve: With the weights fixed at their current values, the determination of the nodal points becomes a linear least-squares problem. We solve this efficiently for the best-fit nodal net.
- (b)
- Nonlinear Weight Update: Holding the newly computed nodal points constant, we perform a lightweight nonlinear optimization to update only the weights. This step adjusts the rational basis functions to better match the intrinsic curvature of the target surface.
- (c)
- Check Convergence: We iterate between steps (a) and (b) until the change in the solution is negligible.
Advantages of this Approach:
- Efficiency: It leverages highly optimized linear algebra solvers for the most expensive step (finding the nodal net).
- Robustness: It avoids the pitfalls of initializing a full nonlinear solver with a poor guess. Starting with weights=1 provides a sensible, neutral starting point.
- Theoretical Foundation: This method can be viewed as a variant of the Gauss–Newton algorithm for nonlinear least squares, applied specifically to the structure of our problem.
6.2. Illustrative Example: A 90-Degree Circular Arc
This example serves as a rapid simplification (analog) of the theory to better understand the general two algorithms proposed in Section 6.1.1 and Section 6.1.2. Instead of a surface , here we deal with a curve (with analytical solution cited in Section 4.1).
Let us consider a circular arc (), with endpoints
whereas the weights associated with endpoints and are
The three unknown quantities are the two Cartesian coordinates of nodal point , which is supposed to be unknown (i.e., it is not a priori known that it lies at the middle of the circular arc), plus its associated weight .
First, we establish the parametric grid and thus construct the non-rational Lagrange polynomials,
as well as the rational ones:
Second, we choose an arbitrary data point (or ‘test point’) on the true boundary , for example, at , and then apply the isoparametric conditions:
Note that even though we are dealing with a circular arc, due to the non-rational Lagrange formulation (as also happens with non-rational Bernstein polynomials), the data point at does not generally correspond to polar angle . This in turn means that the Cartesian coordinates are still unknown. The pair of Equations (95) and (96) is the analog of Equation (91), whereas the analog of Equation (92), i.e., the circle constraint, provides the third, necessary equation:
One may easily verify that the exact analytical solution (Section 4.1), i.e.,
fufils all three equalities, i.e., the system of Equations (98)–(100).
On the other hand, the resulting three equations (i.e., Equations (95)–(97)) in three unknowns form a nonlinear system, which is solved numerically, implementing one of the techniques described below.
Within this context, following Section 6.1.1, we can implement the MATLAB function fsolv and thus determine the numerical solution after seven iterations. With default tolerance (), the numerical solution is , , . Actually, one may observe that deviation of the calculated values from the exact analytical solution (Equation (101)) occurs after the sixth decimal place. By further decreasing the tolerance, it was found that the accuracy improves.
Alternatively, following Section 6.1.2, we can initially assume that , and thus Equation (98) gives , whereas Equation (99) gives . This result means that the estimated nodal point does not belong to the circle because it violates the constraint, since
Next, we enforce the geometric constraint (unit circle) by increasing both Cartesian coordinates using the factor
and thus the updated Cartesian coordinates become
First technique: Average. For the sake of brevity, henceforth, we omit the subscript ‘L’ in Cartesian coordinate and associated weight , formerly used as an emphasis that we are dealing with Lagrange polynomials and nodal points. Substituting Equation (104) into Equation (98), which also is shortly written as
with (), we derive a new weight .
Also, substituting Equation (105) into Equation (99), which is also shortly written as:
with (), we derive a new weight .
Of course, we can take the average of these two values and repeate the above procedure until convergence is achieved.
Second technique: Least-Squares Blend. The conflicting weight estimates are reconciled by solving for , which minimizes the -norm of residual , where
The solution is computed efficiently using MATLAB’s backslash operator: w_new = A \ b.
Third technique: Nonlinear Optimization. The optimal weight is determined by solving the nonlinear least-squares problem:
using MATLAB’s lsqnonlin solver with initial guess . The implementation is
f = @(w) [w*(x_2 - a1) + b1; w*(y_2 - a2) - b2];
w_new = lsqnonlin(f, w_old);
The above procedure of the third technique can be easily extended to surfaces as well.
Fourth technique: Analytical solution. To come to an end, we also present a fourth technique, which, however, is trivial, tailored for this particular problem of the circular arc. Solving Equation (98) in and Equation (99) in , and then substituting both of them in Equation (100), we obtain a nonlinear equation in :
Solving this equation numerically gives the exact solution:
6.3. Remarks on Trivial Cases
Remark 5.
For free-form surfaces, the projected control points and the associated weights are typically provided by the CAD system. Therefore, if they can be organized in an assembly of rational Bézier patches, the same procedure as in the case of the aforementioned spherical cap can be applied.
Remark 6.
It is worth noting that explicit rational Bézier (or NURBS) representations of classical quadrics (e.g., circle, ellipse, sphere, cylinder, cone, paraboloid, hyperboloid) are well established, with control points and associated weights available in closed form [1,2]. Therefore, the same procedure as that applied to the aforementioned spherical cap can be directly extended to these quadrics. General quadrics in an arbitrary position can then be obtained through suitable affine or projective transformations.
7. A Boundary-Value Problem
In this section, we study the heat flow (i.e., the numerical solution of Laplace equation ) into the quarter of an annulus , with internal radius and external radius (Figure 6, left). The corresponding temperatures on the circular edges ( and ) of the annulus are °C (along ) and °C (along ), whereas the flux perpendicular to the straight edges ( and ) vanishes (), where n is the outward normal unit vector (x or y accordingly, as shown in Figure 6, left). The physical domain is mapped to a unit reference square (, as exaggeratedly shown in Figure 6, right), which serves as a parametric domain. In more detail, the circular arc of the physical space corresponds to edge (i.e., the -axis) of the parametric space, whereas straight edge corresponds to edge (i.e., the -axis) of the parametric domain. Therefore, is considered as a single patch (a rational Bézier or rational Lagrange macroelement), suitable for isogeometric analysis.
Figure 6.
Problem definition for the quarter of an annulus, which is mapped to a unit square.
In terms of radius r (with ), the analytical solution is given by [22]
The quality of numerical solution in domain is presented by the error norm (in percent), which is defined as follows:
Two alternative formulations were implemented, as described in the following subsections.
7.1. The Proposed Approach
Each of the two circular arcs (in the direction) was divided into two equal parts using three nodes on the true boundary, whereas the weights associated with quadratic Lagrange polynomials were (see Table 1 for ).
In terms of the usual uniform quadratic Lagrange polynomials, ,
the corresponding rational Lagrange polynomials are given as
Moreover, the number of uniform sudivisions in the radial () direction varied among 1 and 25 (i.e., degree ), and the relevant usual uniform Lagrange polynomials, , were combined with unit weights.
Following the standard FEM approach, the numerical solution within the entire patch is written as a tensor product of rational and non-rational Lagrange polynomials, as follows:
Obviously, since the nodal points are arranged in triplets along the circular arcs (as shown in Figure 7a for ), for any given value , the total number of nodes in the model, which lie on the true boundary and the interior, will be
Figure 7.
Discretization of the quarter-annulus () using (a) weighted (rational) Lagrange polynomials and (b) rational Bernstein–Bézier polynomials.
7.2. Standard IGA Approach
The standard IGA is based on control points, as shown in Figure 7b for . Each circular arc is determined by three control points: two at the ends and a third at the intersection of the two tangents at these ends (outside the curve). The quadratic Bernstein polynomials , are
whereas the corresponding weights are (see, [17]).
Based on the usual quadratic Bernstein polynomials of Equation (118), the corresponding rational Bernstein polynomials are given as
Considering the -direction, which is modeled with control points, the usual Bernstein polynomials of degree are employed.
Therefore, the numerical solution within the entire patch is written as a tensor product of rational and non-rational Bernstein polynomials, as follows:
7.3. Results
All computations were performed using MATLAB version R2025a.
Identical numerical results were obtained using both the proposed Lagrange-based scheme (Equation (117), Figure 7a) and the standard Bernstein-based IGA formulation (Equation (120), Figure 7b). The calculated error norm (Equation (114), in percent) is shown in Figure 8.
Figure 8.
Convergence quality for the quarter of an annulus.
It may be observed in Figure 8 that up to , the convergence is monotonic, after which it increases slightly. It is also worth noting that even for the coarsest model (i.e., ), the exact analytical value of area
was accurately approximated (up to the 15th decimal place) by numerically performing the integral of the determinant of Jacobian matrix, i.e.,
8. Discussion
It was shown that the set of weights associated with Bernstein polynomials and control points, which determine a certain rational Bézier curve , can be successfully replaced by another set of weights associated with Lagrange polynomials of the same degree and nodal points on the same true curve.
The key point is to determine the transformation matrix within the rational Bézier curve, , which relates the vector of Bernstein polynomials (B) to that of Lagrange polynomials (L). This relationship depends on the parametric location of the nodal points, thus enabling uniform and non-uniform nodal positions. It is noted that—given the parametric location of the nodal points—the matrix is the same, i.e., independent of the location of the control points. Therefore, to each vector of control points there corresponds a unique vector of nodal points on the true curve (surface).
Starting with the consituents of the rational Bernstein–Bézier curve, i.e., control points and weights , we can easily determine projected nodal points and their weights in the Lagrangian formulation and eventually find the nodal points on true curve . Based on them, for any arbitrary parameter , we can calculate the associated rational Lagrange polynomials and then apply series expansion (isoparametric superposition) to determine the corresponding point . It was found that the relevant approximation accurately represents a circular arc (maximum error less than ).
The same concept is applicable to a surface (curvilinear patch) as well. As an example, we considered the spherical cap, which refers to one-sixth of a sphere. It is well known that this is accurately represented by a rational Bézier surface of degree , which is not an ideal tensor product. The latter means that the weights of the interior satisfy inequality ; therefore, since 5 control points exist in each direction, the denominator of the normalization will be a sum of 25 terms. A generic expression was presented to construct the total transformation matrix (of size ) in terms of the one-dimensional transformation matrix (of size ) along any edge of the quadrilateral patch. Next, the twenty-five nodal points on the true surface were determined, and for each parametric pair , the spherical cap was accurately represented (with a maximum deviation of less than ).
An additional advantage of using nodal points on the true boundary of the physical domain is the fact that stiffness and mass matrices directly refer to the nodal values, , and thus, boundary conditions are easily imposed. Relevant numerical results—using rational Lagrange polynomials—are presented in Section 7, where an excellent convergence is reported for the numerical solution of a boundary-value problem governed by the Laplace equation. In addition, it is worth mentioning that identical numerical results were found when rational Bernstein–Bézier polynomials were implemented for the same problem.
The proposed theory is limited to rational Bézier patches or to assemblies of such patches with interelement continuity. In this case, each Bézier element possesses its own transformation matrix , and thus, the nodal coordinates (together with the associated weights) are determined at the element level.
Due to the local support of B-splines (each basis being nonzero over only consecutive spans), adjacent spans always share p basis functions. For example, with and , the first span involves and the second span involves , so the two elements cannot be treated in isolation.
9. Conclusions
The usual representation of smooth patches through tensor-product rational Bernstein–Bézier polynomials can be equivalently replaced by rational Lagrange polynomials. To maintain this numerical equivalence, it is necessary to implement transformation matrices associated with the two mutually perpendicular body-fitted directions and thus to determine nodal points on the true boundary together with the corresponding weights. The geometrical concept was applied to a circular arc and a spherical cap, whereas a boundary-value problem governed by the Laplace equation was successfully solved for a quarter of an annulus.
Funding
This research received no external funding.
Data Availability Statement
The raw data supporting the conclusions of this article will be made available by the author on request.
Conflicts of Interest
The author declares no conflicts of interest.
References
- Farin, G. Curves and Surfaces for CAGD: A Practical Guide, 5th ed.; Morgan Kaufmann: San Francisco, CA, USA, 2002. [Google Scholar]
- Piegl, L.; Tiller, W. The NURBS Book, 2nd ed.; Springer: Berlin/Heidelberg, Germany, 1997. [Google Scholar]
- Hoschek, J.; Lasser, D. Fundamentals of Computer Aided Geometric Design, 2nd ed.; A.K. Peters: Wellesley, MA, USA, 1996. [Google Scholar]
- Hughes, T.J.R.; Cottrell, J.A.; Bazilevs, Y. Isogeometric analysis: CAD, finite elements, NURBS, exact geometry and mesh refinement. Comput. Methods Appl. Mech. Eng. 2005, 194, 4135–4195. [Google Scholar] [CrossRef]
- Desiderio, L.; D’Inverno, G.A.; Sampoli, M.L.; Sestini, A. Hierarchical matrices for 3D Helmholtz problems in the multi-patch IgA-BEM setting. Eng. Comput. 2025, 41, 2021–2042. [Google Scholar] [CrossRef]
- Schillinger, D.; Ruthala, P.K.; Nguyen, L.H. Lagrange extraction and projection for NURBS basis functions: A direct link between isogeometric and standard nodal finite element formulations. Int. J. Numer. Methods Eng. 2016, 108, 515–534. [Google Scholar] [CrossRef]
- Liu, B.; Xing, Y.; Wang, Z.; Lu, X.; Sun, H. Non-uniform rational Lagrange functions and its applications to isogeometric analysis of in-plane and flexural vibration of thin plates. Comput. Methods Appl. Mech. Eng. 2017, 321, 173–208. [Google Scholar] [CrossRef]
- Lu, L.Z. Adaptive Polynomial Approximation to Circular Arcs. Appl. Mech. Mater. 2011, 50, 678–682. [Google Scholar] [CrossRef]
- Vavpetič, A. Optimal parametric interpolants of circular arcs. Comput. Aided Geom. Des. 2020, 80, 101891. [Google Scholar] [CrossRef]
- Vavpetič, A.; Žagar, E. A general framework for the optimal approximation of circular arcs by parametric polynomial curves. J. Comput. Appl. Math. 2019, 345, 146–158. [Google Scholar] [CrossRef]
- Vavpetič, A.; Žagar, E. On optimal polynomial geometric interpolation of circular arcs according to the Hausdorff distance. J. Comput. Appl. Math. 2021, 392, 113491. [Google Scholar] [CrossRef]
- De Boor, C. A Practical Guide to Splines, Revised ed.; Applied Mathematical Sciences; Springer: New York, NY, USA, 2001. [Google Scholar]
- Patera, A.T. A spectral element method for fluid dynamics: Laminar flow in a channel expansion. J. Comput. Phys. 1984, 54, 468–488. [Google Scholar] [CrossRef]
- Pozrikidis, C. Introduction to Finite and Spectral Element Methods Using MATLAB, 2nd ed.; CRC Press: Boca-Raton, FL, USA, 2014. [Google Scholar]
- Eisenträger, S.; Eisenträger, J.; Gravenkamp, H.; Provatidis, C.G. High order transition elements: The xNy-element concept-part II: Dynamics. Comput. Methods Appl. Mech. Eng. 2021, 387, 114145. [Google Scholar] [CrossRef]
- Provatidis, C.G. Precursors of Isogeometric Analysis: Finite Elements, Boundary Elements, and Collocation Methods; Solid Mechanics and Its Applications; Springer International Publishing: Cham, Switzerland, 2019. [Google Scholar] [CrossRef]
- Piegl, L.; Tiller, W. A menagerie of rational B-spline circles. IEEE Comput. Graph. Appl. 1989, 9, 48–56. [Google Scholar] [CrossRef]
- Provatidis, C. How accurately can spherical caps be represented by rational quadratic polynomials? WSEAS Trans. Circuits Syst. 2021, 20, 139–146. [Google Scholar] [CrossRef]
- Cobb, J.E. Tiling the Sphere with Rational Bézier Patches, TR UUCS-88-009. 1988. Available online: https://core.ac.uk/download/pdf/276277507.pdf (accessed on 9 May 2025).
- Levenberg, K. A Method for the Solution of Certain Problems in Least-Squares. Q. Appl. Math. 1944, 2, 164–168. [Google Scholar] [CrossRef]
- Marquardt, D. An Algorithm for Least-squares Estimation of Nonlinear Parameters. SIAM J. Appl. Math. 1963, 11, 431–441. [Google Scholar] [CrossRef]
- Carslaw, H.S.; Jaeger, J.C. Conduct. Heat Solids, 2nd ed.; Oxford University Press: Oxford, UK, 1969. [Google Scholar]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2025 by the author. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).







