Inverted Pendulum — A project in miniature: question, test, evidence
![]() | ![]() | ![]() | App Exercises |
|---|
Model and Control Exercise 30 of 40. BYU class 32 · PDC class 34. 15 minutes.

Open the Inverted Pendulum App
Learning Outcomes
- State an engineering question a test can answer.
- Record a baseline and one changed case with a number for each.
- Explain a result from the model.
Book Chapter
Nonlinear Dynamics, Oscillations, and Stabilization (Volume 7), Chapter 7, Inverted Pendulum Simulator for Balancing a Pole Without Losing the Cart. Read online · Chapter PDF · Lecture slides
Theory in Brief
Near upright, theta is a small deviation, x is cart position and l is the effective pole length. The positive pole sets the fall time scale.
$$\ddot\theta=(g/l)\theta-\ddot x/l$$
$$p=\sqrt{g/l}$$
$$\theta(t)\propto e^{pt}\quad\text{along the unstable mode}$$
Model to Controller
The linearized balance explains why pole length changes the task. The rail limit constrains how the controller can recover.
Exercise
Read (2 min). Review the model and identify which signals you will compare.
Predict (1 min). Will a longer pole be easier or harder to balance? Explain your prediction.
Run (8 min).
- Open the app and select the following cases in order.
- 2 · Balance it yourself.
- 1 · Tuned balance.
- 5 · A longer pole.
- Follow the case instructions, using the same measurement window for comparable trials.
- Record seconds balanced by hand, the cart travel under control for each length, and p for each.
Explain (2 min). Which observation supports or changes your prediction? Which assumption or limit explains the gap between calculation and observation?
Generative AI Learning (2 min)
Verify the suggested claim using a second point on your trend or an independent calculation from the equations. Cite the signal, units and case that support your conclusion.
What to Turn In
Submit a screenshot of the relevant trend or scorecard and three sentences covering your prediction, the measured result with units, and the model's explanation. Course guidelines for AI use.
Greater length reduces the positive pole and slows divergence. Use the same initial disturbance and run length when comparing cart travel between cases.
Which part of the model connects the measured signal to the exercise?
The linearized balance explains why pole length changes the task. The rail limit constrains how the controller can recover.
How should the observations be interpreted?
Greater length reduces the positive pole and slows divergence. Use the same initial disturbance and run length when comparing cart travel between cases.
How could you check that a result is comparable across cases?
Use the same signal, units and reference point. When comparing integrated quantities, use the same interval.


