Function (mathematics)

Welcome to the ninth episode of Foundations of Mathematics! Building on our understanding of sets, numbers, and algebra, we now introduce one of the most central concepts in all of mathematics: the function. In this episode, you'll learn what a function is, viewing it as a special kind of relationship or a 'machine' that takes an input and produces a unique output. We will explore its essential components, including the domain, codomain, and range, and understand the strict rule that defines a function. This concept is crucial, forming the basis for calculus, analysis, and countless applications in science and engineering. Get ready to uncover the precise and powerful idea of a mathematical function.

Check your understanding

These are the same multiple-choice questions you will see in the Quiz section after you listen to the episode. Use them here to preview or review the answers.

What is the most crucial, defining characteristic of a mathematical function?

  1. Every input is assigned to exactly one output.
  2. The set of inputs (domain) must contain more elements than the set of outputs (range).
  3. Every possible output in the codomain must be produced by at least one input.
  4. The function must be expressible as an algebraic formula.
  5. Every input must have at least one output.

What is the 'domain' of a function?

  1. The rule that connects inputs to outputs.
  2. The set of all actual outputs produced by the function.
  3. The set of all potential outputs.
  4. The set of all valid inputs the function can accept.

A function is defined by the rule f(x) = x². The domain is all integers, and the codomain is also all integers. Which of the following statements are true?

  1. The range is identical to the codomain.
  2. The number -9 is in the range of the function.
  3. The range is a subset of the codomain.
  4. The number 9 is in the range of the function.
  5. The inputs -3 and 3 map to the same output.

Which of the following relationships can be correctly described as a function?

  1. A rule that maps a student to the courses they are enrolled in.
  2. A rule that maps each car in a parking lot to its license plate number.
  3. A rule that maps a word in the dictionary to its possible definitions.
  4. A rule that maps each citizen of a country to their government-issued identification number.

As discussed in the episode, what are some valid ways to represent or visualize a function?

  1. An algebraic formula, such as f(x) = 2x + 1.
  2. A table of values showing input-output pairs.
  3. A mathematical proof of a theorem.
  4. A graph on a coordinate plane.
  5. A list of axioms for a mathematical system.

Suggested next

Related episodes that are a natural follow-on.

  • Series (mathematics)

    Welcome to Episode 6: An Introduction to Series. Building on our understanding of limits and sequences, this episode dives into the fascinating world of infinite sums. What happens when you try to add up an infinite number of things? Sometimes, the s… Welcome to Episode 6: An Introduction to Series. Building on our understanding of limits and sequences, this episode dives into the fascinating world of infinite sums. What happens when you try to add up an infinite number of things? Sometimes, the sum explodes to infinity, but remarkably, it sometimes settles on a specific, finite value. We'll explore this fundamental distinction between divergence and convergence, using the concept of partial sums as our guide. You'll learn about the geometric series, a powerful and common type of series, and discover the simple condition that determines its sum. Finally, we'll see how series form a bridge to advanced calculus, allowing us to represent complex functions and solve otherwise difficult problems.

  • Limit (mathematics)

    Welcome to the second episode of Calculus and Analysis! This episode introduces the foundational concept of the limit, a cornerstone of calculus. We'll explore the intuitive idea of 'getting closer and closer' to a value without necessarily reaching … Welcome to the second episode of Calculus and Analysis! This episode introduces the foundational concept of the limit, a cornerstone of calculus. We'll explore the intuitive idea of 'getting closer and closer' to a value without necessarily reaching it. You'll learn how limits describe the behavior of a function near a specific point and understand why this concept is crucial for defining continuity and the derivative, which we will cover in future episodes. By the end, you'll grasp the essence of how mathematicians handle the infinitely small and lay the groundwork for understanding the dynamics of change.

  • Optimization (mathematics)

    Welcome to the eighth episode of Calculus and Analysis! This week, we explore the powerful field of mathematical optimization. Have you ever wondered how to find the 'best' possible outcome in a situation, like maximizing profit, minimizing waste, or… Welcome to the eighth episode of Calculus and Analysis! This week, we explore the powerful field of mathematical optimization. Have you ever wondered how to find the 'best' possible outcome in a situation, like maximizing profit, minimizing waste, or finding the fastest route? Optimization provides the mathematical tools to answer these questions. We'll discover how the concepts you've already learned, especially the derivative, are fundamental to this process. You'll learn how to identify critical points of a function and use the First and Second Derivative Tests to classify them as maximums or minimums. By the end, you'll understand the systematic approach to solving problems that require finding the most efficient or extreme value.

  • Calculus

    Welcome to the first episode on Calculus and Analysis! This episode introduces the fundamental ideas behind calculus, positioning it as the 'mathematics of change.' We will explore the two central problems that led to its development: determining ins… Welcome to the first episode on Calculus and Analysis! This episode introduces the fundamental ideas behind calculus, positioning it as the 'mathematics of change.' We will explore the two central problems that led to its development: determining instantaneous rates of change and calculating the area of irregular shapes. You will learn why pre-calculus mathematics falls short in describing a dynamic world and how calculus provides the tools to understand motion, growth, and accumulation. This foundational overview sets the stage for future episodes on limits, derivatives, and integrals without delving into their technical details.

  • Calculus

    Welcome to our episode on Calculus! While much of computer science is built on the discrete mathematics we've previously covered, calculus—the mathematics of continuous change—is indispensable in modern computing. We will demystify the two pillars of… Welcome to our episode on Calculus! While much of computer science is built on the discrete mathematics we've previously covered, calculus—the mathematics of continuous change—is indispensable in modern computing. We will demystify the two pillars of calculus: differentiation, the art of finding instantaneous rates of change, and integration, the science of summing up infinite parts. You'll discover how these concepts are not just abstract but are the engine behind machine learning optimization through gradient descent, the magic in realistic computer graphics, and the foundation for analyzing continuous probabilities. This episode will bridge the gap between the discrete world of code and the continuous functions that model our reality, showing why calculus is a critical tool for today's computer scientist.

Often studied before

Episodes that tend to come earlier on similar paths.

  • Coordinate geometry

    Welcome to the world of Coordinate Geometry, also known as Analytic Geometry! This episode forges a powerful connection between the abstract shapes of Euclidean geometry and the concrete numbers of algebra. We'll introduce the Cartesian coordinate sy… Welcome to the world of Coordinate Geometry, also known as Analytic Geometry! This episode forges a powerful connection between the abstract shapes of Euclidean geometry and the concrete numbers of algebra. We'll introduce the Cartesian coordinate system, a brilliant invention that allows us to place any point, line, or shape onto a two-dimensional grid. You will learn how to use coordinates to calculate the distance between two points and find the exact middle of a line segment. We will then explore how to translate geometric figures like lines and circles into the language of algebraic equations, unlocking a new way to analyze and solve geometric problems. This episode provides the foundational tools for describing geometry with the precision of algebra.

  • Polynomial

    Welcome to the second episode of Algebra and Number Theory! Building on our understanding of linear functions, we now dive into the broader world of polynomials. In this episode, you'll learn to define and identify polynomials, mastering key terminol… Welcome to the second episode of Algebra and Number Theory! Building on our understanding of linear functions, we now dive into the broader world of polynomials. In this episode, you'll learn to define and identify polynomials, mastering key terminology like 'degree', 'coefficients', and 'terms'. We'll explore how to classify them by their degree and number of terms. The core of our session will focus on performing fundamental operations: adding, subtracting, and multiplying polynomials by combining like terms and using the distributive property. Finally, we'll connect these algebraic expressions to their role as functions, setting the stage for solving complex problems in future episodes. By the end, you'll have a solid foundation in handling these versatile mathematical expressions.

  • Limit (mathematics)

    Welcome to the second episode of Calculus and Analysis! This episode introduces the foundational concept of the limit, a cornerstone of calculus. We'll explore the intuitive idea of 'getting closer and closer' to a value without necessarily reaching … Welcome to the second episode of Calculus and Analysis! This episode introduces the foundational concept of the limit, a cornerstone of calculus. We'll explore the intuitive idea of 'getting closer and closer' to a value without necessarily reaching it. You'll learn how limits describe the behavior of a function near a specific point and understand why this concept is crucial for defining continuity and the derivative, which we will cover in future episodes. By the end, you'll grasp the essence of how mathematicians handle the infinitely small and lay the groundwork for understanding the dynamics of change.

  • Continuity (mathematics)

    Welcome to the seventh episode on Calculus and Analysis! This time, we explore the fundamental concept of continuity. We'll start with the intuitive idea of a 'connected' graph you can draw without lifting your pen and then formalize this using the l… Welcome to the seventh episode on Calculus and Analysis! This time, we explore the fundamental concept of continuity. We'll start with the intuitive idea of a 'connected' graph you can draw without lifting your pen and then formalize this using the language of limits, a concept from our previous discussions. You will learn to identify different types of discontinuities—like jumps, holes, and asymptotes—and understand why they matter. Finally, we'll uncover one of the most powerful consequences of continuity, the Intermediate Value Theorem, which guarantees that a continuous function takes on all values between any two points. This episode provides the crucial groundwork for understanding key theorems in calculus.

  • Set theory

    Welcome to the seventh episode of Foundations of Mathematics. This week, we delve into Set Theory, a cornerstone of modern mathematics. You will learn about the simple yet powerful idea of a set as a collection of distinct objects. We will explore ho… Welcome to the seventh episode of Foundations of Mathematics. This week, we delve into Set Theory, a cornerstone of modern mathematics. You will learn about the simple yet powerful idea of a set as a collection of distinct objects. We will explore how to define and describe sets, understand relationships like subsets and equality, and perform basic operations such as union and intersection, which are like arithmetic for collections. This episode builds upon your understanding of numbers and algebra by providing a new language to group and categorize mathematical objects. It lays the essential groundwork for future topics, including logic and the formal definition of functions, revealing how mathematics builds upon itself to create a coherent and logical structure.