In this paper an effective method based on collocation method of scaling function of Daubechies wavelet is proposed for the solution of the calculus variations problems. An analytic technique for solving the integral of Daubechies scaling functions on dyadic intervals is investigated and these integrals are utilized to reduce the calculus of variations problem into algebraic equations. The error estimate for the brachistochrone problem is investigated and the numerical results are given to verify the effectiveness of our method.