...
where pankle,x and pankle,x are the ankle trajectories of x-axis and y-axis, respectively, l1 is the thigh length, l2 is the shank length, θ1 andθ2 are the hip and knee joint angles, respectively (see figure below). The result of the knee joint trajectory is shown below.