We review properties of nonparametric estimators of the location of maximum and investigate the influence of the density of design points on the asymptotic distribution of the estimator. Classical calculus of variations is used to find the optimal distribution of the design points for the nonparametric kernel estimator of the location of maximum.