# Nakafa Framework: LLM URL: https://nakafa.com/en/subject/high-school/11/mathematics/function-composition-inverse-function/function-and-non-function Source: https://raw.githubusercontent.com/nakafaai/nakafa.com/refs/heads/main/packages/contents/subject/high-school/11/mathematics/function-composition-inverse-function/function-and-non-function/en.mdx Output docs content for large language models. --- import { Diagram, RelationVisualizer } from "./diagram"; export const metadata = { title: "Function and Non-Function", description: "Distinguish functions from non-functions using arrow diagrams and mathematical definitions. Learn one-to-one mapping rules with visual examples.", authors: [{ name: "Nabil Akbarazzima Fatih" }], date: "04/27/2025", subject: "Function Composition and Inverse Function", }; ## Relations Between Sets In mathematics, a **relation** from a set to a set is a rule that connects members of set with members of set . This pairing can be in any form. **Example:** The "less than" relation between and yields the pairs . **Explanation:** We look for all pairs with and where . - For -> , , . Pairs: . - For -> , . Pairs: . - For -> . Pair: . The combination of all these pairs is . ## Functions as Special Relations A **function** (or mapping) from a set to a set , written , is a special relation that satisfies two conditions: 1. **Every** element must have a pair . 2. Every element has **exactly one** pair . This means every member of the domain must be connected, and cannot have more than one connection. ## Arrow Diagram Examples Here are visual examples of relations using arrow diagrams to distinguish between functions and non-functions. ### Relations That Are Not Functions
### Relations That Are Functions