This paper deals with the problem of trajectory generation with a motion law in joint space for a flexible singlelink manipulator. To this aim, we propose a smooth motion profile based on polynomial function for a flexible manipulator. This motion law is tested with a dynamic model of the manipulator that is controlled using a model-free approach so that the robot can follow the desired trajectory.