A function is the same as (or different from) a relation because…