Analysis of the four-bar linkage