Sit up straight with your legs out in front of you, for example on a bed.
Bend your leg to be exercised, sliding your heel towards your buttocks.
You may find a belt useful to help this movement.
With your knee bent, pull your heel into the bed, keeping your knee at the same angle.
You should feel the muscles down the back of your thigh tense.
Hold this position, relax and repeat.