The Matlab function ode45 was used to solve the second order differential equation for a driven, damped pendulum exemplifying chaotic motion.
The angle of the pendulum is θ, and it moves under the influence of gravity, friction, and potentially an external periodic force.