The inverse problem in calculus of variation is studied. By introducing a newconcept called Varialional Integral, a new method to systematically study the inverseproblem in calculus of rariations is given. Using this new method to the elastodynamicsand hydrodynamics of viscous fhuids some kinds of variaiional principles andgeneralized variational prineiples are obtained respectively.