how is math used in mechanical engineering