Solving the ODE of motion of a simple pendulum with damping and simulating its motion in MATLAB
Objective: The given ODE of damped pendulum is `(d^2 θ)/(dt^2 )+ b/m (dθ)/dt+ g/L sin(θ)=0` Simplifying the second order ODE of the pendulum to to get two first order ODE\'s: Let `θ=x_1` `(dθ)/dt= (dx_1)/dt =x_2` `(d^2 θ)/(dt^2 )= (dx_2)/dt` Substituting in the given ODE, we…