A simple pendulum is considered to be a point mass suspended from a string or rod of negligible mass. If the pendulum is displaced from its equilibrium position, it will swing due to the force of gravity. Additionally, if there is damping (that can come from friction with the air), the pendulum will loose energy as it swings until it stops moving.
According to the variables in the diagram, the maximum velocity of a pendulum can be calculated using the conservation of mechanical energy:
The height that the mass reaches is equal to:

The potential energy at that point, is:

The kinetic energy at the equilibrium position will be related to the maximum velocity:

Then:

Isolate v_max:
![\begin{gathered} \Rightarrow v^2_(\max )=2gL(1-cos\theta_0) \\ \Rightarrow v_(\max )=\sqrt[]{2gL(1-\cos \theta_0)} \end{gathered}](https://img.qammunity.org/2023/formulas/physics/college/et1klqqsjismoyeuge5hum5r6aa9t5ddip.png)