Professional Documents
Culture Documents
doc 1
m mass of pendulum
Pendulums and Elliptic Integrals R length of pendulum
g acceleration of gravity (e.g., 9.81 m/s2)
James A. Crawford α starting angle
d 2ϕ g
− ϕ =0 (4)
dt 2 R
If we now hypothesize that the solution to this
R differential equation is given by ϕ ( t ) = A sin (ω ot )
α and substitute into (4), we quickly see that this is indeed
the correct solution with
ϕ
g
∆ PE ωo = (5)
FT
R
W= m g
d 2ϕ dϕ dϕ
2 = ω o2 sin (ϕ ) (6) Substituting (13) into (11) leads finally to
dt dt dt
π /2
R dθ
and integrating both sides with respect to time results in T=4
g ∫
0 1 − k sin 2 (θ )
2
(14)
2
1 dϕ
− ω o cos (ϕ ) = k
2
(7)
2 dt The integral involved in (14) is an elliptic
integral of the first kind. With k = sin (α /2 ) , the
where k is a constant of integration. Assuming that the
pendulum has a maximal displacement of angle ϕ = α , integral is very well behaved because k is always <
then ϕ ' (α ) = 0 , and solving for the derivative and 2 /2 . In the case of elliptic filter usage however, k
taking the positive root leads to is often very close to unity thereby making numerical
evaluation of (14) considerably more challenging.
dϕ
= ω o 2 cos (ϕ ) − cos (α ) (8)
dt
Aside: Conservation of energy may be used to quickly
Integrating one more time produces arrive at the same starting point represented by (8). The
change of potential energy that occurs from angular
dϕ position α to ϕ can be equated to the increase in kinetic
∫ 2 cos (ϕ ) − cos (α )
= ω ot (9) energy (since the bob is momentarily motionless at
angular position α) as
ϕ dϕ R
cos = k cos (θ ) dθ (12) T = 2π
2 2 g (17)
which upon re-arrangement gives 2 2
1 2 1i3 4 1i3i5 6 2
1 + k + k + k + …
2 2 i 4 2 i 4 i 6
2 k cos (θ ) dθ 2 k − sin (ϕ /2 ) (13)
2 2
dϕ = =
ϕ 1 − k 2 sin 2 (θ )
cos
2
solving differential equations because it is extremely shows. Error propagation with the forward Euler
simple to use. The forward Euler method is an explicit method is so poor that the amplitude growth is difficult
integration method [5-6]. In this case, the time- to avoid.
derivative is approximated as
Figure 2 Forward Euler Differential Equation
Solution
s (t + h ) − s (t )
s '(t ) ≈ (21) Pendulum Swing in Time Domain
h 0.8
Tp
0.6
where the time increment is given by h. Focusing on the
starting differential equation (3), it is simple to re-cast 0.4
this second-order differential equation as a pair of first-
order differential equations by defining 0.2
Phase, rad.
U 1 (t ) = ϕ (t )
0
dϕ
0.2
(22)
U 2 (t ) =
dt 0.4
leading to 0.6
dU 2 g 0.8
= − sin (U 1 )
0 2 4 6 8 10 12 14 16
Time, sec
dt R Forward Euler Computed
(23) Ideal
dU 1
= U2
dt
Substituting (21) into (23) results in
5.2 Backward Euler Integration
U 2 n+1 − U 2 n g
= − sin (U 1n ) Backward Euler integration is an implicit
h R integration method and as such, it is not possible to use
(24)
U 1n + 1 − U 1n this method unless the differential equation is linearized
= U 1n as in (4). Although this is a short-cut path that we wish
h
where the index n represents the value of the parameter to avoid, this path will be considered in order to show
at time t= nh where h is the constant time step used. the greater stability properties of the backward Euler
Solving (24) for the parameter values at the next time method as compared to the forward Euler method.
step n+1 produces For the backward Euler method we write
gh
gh U 2 n+1 = U 2 n − U 1n+ 1
U 2 n+ 1 = U 2 n + − sin (U 1n ) R (26)
R (25)
U 1n+ 1 = U 1n + hU 2 n+ 1
U 1n + 1 = U 1n + U 2 n h
or in matrix form
The fact that the forward Euler method is an explicit
method results in only time-index n values being on the
gh
right side of the equal side and the n+1 (future) time-
R 1 U 1n+ 1 U 2 n
index values being on the left-hand side. = (27)
The set of difference equations can be easily U 2 n+ 1 U 1n
1 −h
programmed and in the case of R= 1 meter and α= 30
degrees, the result is as shown in Figure 2. Due to
numerical imprecision even with h= 6msec, the
computed solution slowly grows in amplitude rather Solving this for the next-step state-variable values,
than remaining constant-envelope as the ideal solution
0.2 U 1 (t ) = ϕ (t )
0.4 dϕ
U 2 (t ) =
0.6 dt
dU 2 g
= f ( ... ) = − sin (U 1 )
0.8
(30)
1
0 2 4 6 8 10 12 14 16
dt R
Time, sec dU 1
Forward Euler Computed = g ( ...) = U 2
Ideal
Linearized Backward Euler
dt
in Figure 6 where the onset of some instability is Figure 6 2nd Order Runge-Kutta with h= 200 msec
apparent.
2nd Order Runge-Kutta
1.5
Tp
Figure 4 2nd Order Runge-Kutta with h= 30 msec
1
2nd Order Runge-Kutta
0.6
Tp 0.5
Phase, rad.
0.4
0
0.2
0.5
Phase, rad.
0
1
0.2
1.5
0 2 4 6 8 10 12 14 16
0.4 Time, sec
2nd Order Runge-Kutta
Ideal
0.6
0 2 4 6 8 10 12 14 16
Time, sec
2nd Order Runge-Kutta
Ideal
0.4
0.2
Phase, rad.
0.2
0.4
0.6
0 2 4 6 8 10 12 14 16
Time, sec
2nd Order Runge-Kutta
Ideal
th
In the case of the 4 -order Runge-Kutta 0.4
Phase, rad.
k1 = f ( t n , x n , y n ) 0
j1 = g ( t n , x n , y n ) 0.2
h h h
k2 = f tn + , xn + k1 , yn + j1 0.4
2 2 2
h h h 0.6
0 2 4 6 8 10 12 14 16
j 2 = g t n + , x n + k 1 , y n + j1 Time, sec
2 2 2 4th Order Runge-Kutta
Ideal
h h h
k3 = f tn + , xn + k2 , yn + j2
2 2 2
h h h Figure 8 4th Order Runge-Kutta with h= 75 msec
j3 = g t n + , x n + k 2 , y n + j2
2 2 2 4th Order Runge-Kutta
k4 = f ( tn + h , xn + hk3 , y n + hj3 )
0.6
Tp
h
xn + 1 = xn + ( k1 + 2 k 2 + 2 k 3 + k 4 ) 0.2
6
Phase, rad.
h 0
yn+1 = y n + ( j1 + 2 j 2 + 2 j 3 + j 4 ) (32)
6 0.2
0
Electronic Filter Design, 1974, McGraw-Hill
Book Co.
0.2 4. E. Kreyszig, Advanced Engineering
Mathematics, 3rd Edition, 1972, John Wiley &
0.4 Sons
5. J.A. Crawford, Frequency Synthesizer Design
0.6 Handbook, 1994, Artech House
0 2 4 6 8 10 12 14 16
Time, sec 6. C.F. Gerald, P.O. Wheatley, Applied
4th Order Runge-Kutta Numerical Analysis, 1970, Addison-Wesley
Ideal 7. F.R. Ruckdeschel, BASIC Scientific
Subroutines, Vol. II, 1981, BYTE Publications
8. P. Amstutz, “Elliptic Approximation and
Elliptic Filter Design on Small Computers”,
IEEE Trans. Circuits and Systems, December
6. Connections with Elliptic 1978
9. S. Darlington, “Simple Algorithms for Elliptic
Filters Filters and Generalizations Thereof”, IEEE
Trans. Circuits and Systems, December 1978
Two of the best treatments of elliptic filter 10. S. Darlington, “Network Synthesis Using
design are provided by [2,3,8]. Having been a long Tchebycheff Polynomial Series”, Bell System
admirer of Sidney Darlington’s work with elliptic Technical Journal, July 1952
filters, a number of his related publications are listed 11. S. Darlington, “A History of Network
here as references [9-13]. Synthesis and Filter Theory for Circuits
A very insightful and unifying view of Composed of Resistors, Inductors, and
Butterworth, Chebyshev, and elliptic filters is provided Capacitors”, IEEE Trans. Circuits and
in [9]. Quoting from [9]: Systems, January 1984
12. S. Darlington, “Analytical Approximations to
“Formulas for the critical frequencies involved with Approximations in the Chebyshev Sense”, Bell
the design of Butterworth, Chebyshev, and elliptic System Technical Journal, January 1970
filters are identical when expressed in terms of 13. S. Darlington, “Filters with Chebyshev
appropriate variables. For Butterworth filters, the Stopbands, Flat Passbands, and Impulse
appropriate variable is simply the frequency s = jω . Responses of Finite Duration”, IEEE Trans.
For Chebyshev filters, it is a new variable defined by a Circuits and Systems, December 1978
simple transformation on ω. For elliptic filters, the
appropriate variable is determined by a sequence of
transformations applied recursively, each similar to
that for the Chebyshev filters. Interpretation in terms
of elliptic function transformations is a possible but
unnecessary complication. “
James A. Crawford
2008
Artech House
ISBN-13: 978-1-59693-140-4
ISBN-10: 1-59693-140-X