A function refers to the distinct purpose, role, or action that a component or subsystem carries out within a larger system. It is how a part contributes to the overall behavior and purpose of the entire system. In essence, a function is what a particular element does to help the whole system achieve its objectives.