380 Introduction to numerical methods
λs. After solving these equations for λ
j
(q,
˙
q, t), ( j = 1,...,m), we substitute back into
the
¨
q expressions to obtain the final dynamical equations of the form
¨
q
i
=
¨
q
i
(q,
˙
q, t)(i = 1,...,n) (6.415)
At this point, we should explain that another method such as Maggi’s equation plus (6.414)
might be used in obtaining (6.415).
The n second-order dynamical equations can be converted to 2n first-order equations
which are integrated numerically. At the end of each step, we wish to apply a one-step
correction to the solution. The fact that the system is nonholonomic results in an impor-
tant difference in the correction strategy, as compared to the holonomic case. Due to the
nonintegrable nature of the constraints, there is no direct way of detecting errors in the
configuration, that is, the qs. On the other hand, for any given configuration, velocity errors
result in a separation of the solution point from the constraint surface in velocity space.
These errors can be detected and corrections made to the
˙
qs. Another reason for this ap-
proach is the fact that, at least for holonomic systems, errors in the
˙
φs tend to be much
larger than configuration errors as measured by the φs. In other words, the errors in the
˙
qs
tend to be larger than errors in the qs due to the smoothing effect of the integration process.
Our approach, then, will be to make one-step corrections in a manner similar to the velocity
corrections for holonomic constraints.
First, we require that the velocity correction vector be a linear combination of the indi-
vidual constraint gradient vectors in velocity space.
˙
q
i
=
m
k=1
K
k
∂g
k
∂
˙
q
i
(i = 1,...,n) (6.416)
Next, the corrections must exactly cancel the constraint errors, that is,
n
i=1
∂g
j
∂
˙
q
i
˙
q
i
=−g
j
( j = 1,...,m) (6.417)
or
n
i=1
m
k=1
K
k
∂g
j
∂
˙
q
i
∂g
k
∂
˙
q
i
=−g
j
( j = 1,...,m) (6.418)
These m equations are solved for the mKs and then the velocity corrections are made
using (6.416).
Example 6.6 Let us consider once again a nonholonomic system consisting of a dumb-
bell sliding on a horizontal plane and constrained by a knife edge at one of the particles
(Fig. 6.6). The nonholonomic constraint equation is
g
1
(q,
˙
q) =−
˙
x sin φ +
˙
y cos φ = 0 (6.419)