You must jump using the cogs as stepping stones. The timing is tricky. Also you may not have noticed, but you need to start jumping from the lower cogs in the room the left of the higher-up cogs. (Though this is not technically true, it is much harder to start from the right-most room)