Reduction to autonomous form by means of canonical variables