Hi andy343! There's quite a lot of mechanics going on when dealing with trebuchets, so they are pretty good as physics examples.
A trebuchet uses potential energy which gets converted to kinetic energy. First you do do work on the system by pulling back the throwing arm (analogous with compressing a spring). When you release the arm, the potential energy will be transformed to kinetic energy (of both the projectile+throwing arm).
The potential energy can be calculated by W=mgh where m=mass of counterweight being lifted, g=standard gravitation≈9.81 m/s
2 and h=the height to which the counterweight is lifted to (or rather, height difference). See
gravitational potential energy.
Some of this energy (not all) will be transformed to kinetic energy of the projectile. See
formula for kinetic energy.
For trajectories of the projectile,
these formulas can be used (range of trajectory, height of trajectory, time of flight etc.) For trajectory calculations you need initial velocity, initial angle and standard gravitation g≈9.81 m/s
2.