The answer is below.
Work Step by Step
In everyday life, we often ask whether something "functions" properly, which is another way of asking whether or not it works properly. In mathematics, functions are often used to describe how real world things work, often finding the optimal situation in which these things will work the best. Thus, while the words aren't exactly related, they are used in many of the same contexts.