Lagarangian equations