Variational methods in AdS/CFT correspondence