How long does a pendulum take to swing? For small swings there is a one-line formula, but for large ones the answer needs a special function that has to be computed. A paper by Hong-Yan Zhang, Yu Zhou, Yu-Tao Li and colleagues uses this problem as the worked example for a teaching strategy that joins the CDIO engineering process with computational thinking. This page summarizes the paper.
The strategy in three parts
The authors describe STEM teaching as problem-project-oriented, and they treat each problem as having more than one route to a solution, so teams of students can take different routes. They give the pieces a role:
- The problem says "what to do."
- CDIO says "how to do": conceive, design, implement and operate, a cycle that follows a product from development to operation.
- Computational thinking (CT) says "how to think." It has five parts: problem-solving and decomposition, abstraction and modeling, logical and algorithmic thinking, anticipating and debugging, and verification, validation and testing.
The paper's complaint is that CDIO and CT are usually discussed separately, and that there is no general framework for complex STEM problems in system modeling and simulation. It argues that the four CDIO stages and the five parts of CT are interwoven, and proposes a framework, illustrated with the pendulum, that can be generalized.
The example: the period of a pendulum
The model is the mathematical, or simple, pendulum: a point mass on a massless, inextensible rod, moving in a vertical plane with no friction or air resistance. The period can be written as T = λ√(ℓ/g), where ℓ is the length and g is the gravitational acceleration. There are three ways to find λ:
| Method | What it gives |
|---|---|
| Dimension analysis (semi-quantitative) | Shows that the period scales with √(ℓ/g), but λ stays an unknown constant to be measured in an experiment |
| Linear approximation (simple quantitative) | For a small swing, less than 5° (π/36 radians), λ is 2π |
| Nonlinear model (complex quantitative) | λ is 4K(k), where K is the complete elliptic integral of the first kind and k is the sine of half the swing's amplitude |

Figure 4 of the paper: the idealized mathematical pendulum.
The hard part is computing K(k). The authors discuss four methods, which makes the "many routes" point concrete: the infinite series method, the arithmetic-geometric mean method, the Gauss-Chebyshev method and the Gauss-Legendre method. Each breaks into sub-problems that reappear elsewhere, among them summing partial terms of a series, checking convergence, iterating, producing orthogonal polynomials, finding roots with Newton's method, computing weights for numerical integration and taking inner products. The authors give the code in C, with the interface separated from the implementation, and check it against test cases.
What students gain, and what to record
The paper expects students to deepen their grasp of CDIO and CT, see how physics, mathematics, computer science and engineering combine in one problem, gain programming experience and practice teamwork with tools such as LaTeX and Git. Instructors can collect each team's work at each stage: the possible ways of solving the problem, the problem description, the decomposition into sub-problems, module designs and interfaces, code, and a final project report.
One lesson is about precision. If the length and gravity measured in an experiment have only two significant digits, computing K(k) to more digits is pointless, so only two digits of the computed period are worth considering scientifically.
Limits and extensions
The authors say the general framework is limited to complex STEM problems in system modeling and simulation, and should be modified for others; for K-12 problems it can be simplified. The same four methods could compute the second and third kinds of elliptic integral, and a new project could study the isochronous pendulum.
Sources
- Hong-Yan Zhang, Yu Zhou, Yu-Tao Li et al., “CDIO-CT collaborative strategy for solving complex STEM problems in system modeling and simulation: an illustration of solving the period of mathematical pendulum”, arXiv:2212.09209, whose own citation line gives Computer Applications in Engineering Education (2023); licensed CC BY 4.0. Changed here: condensed, with the equations, tables and most figures left out; rewritten in hubnx's own words.
Comments



