What is the primary purpose of managerial accounting? Financial accounting and managerial accounting

What is the primary purpose of managerial accounting?

Financial accounting and managerial accounting differ in six dimensions. List all six dimensions. Explain what is Planning, Directing, and Controlling related to managerial accounting.