Guozhen AIGlobal AI field notes and model intelligence

English translation

Define the function

Published:

Category: Calculus for AI

Read time: 4 min

Reads: 0

Lesson #4Views are counted together with the original Chinese articleImages are preserved from the source page

Concept Map: Functions and Their Representation

A function is a rule that maps inputs to outputs. All subsequent concepts—derivatives, integrals, and model predictions—rest fundamentally on this input-output relationship.

Function Concept & Representation Checklist

I’ll first clarify the domain (input range) and the meaning of the output. Without a clear understanding of the domain, discussions about limits and derivatives easily misidentify the object under analysis.

In this tutorial, we’ll delve deeply into the pivotal concept of functions, and explore limits as a way to describe how functions behave. Grasping these ideas is essential for understanding the foundational principles of calculus. We’ll reinforce your learning through concrete examples, executable code snippets, and detailed explanations—helping you build a solid intuitive and technical foundation in functions and limits.

The Concept of a Function

In mathematics, a function describes a relationship between inputs and outputs. More precisely, a function assigns exactly one output (typically called the dependent variable) to each input (typically called the independent variable). You can think of a function as a well-defined rule specifying how to compute the dependent variable from the independent variable.

Function & Limit Decision Card

When learning functions and limits, always begin by explicitly stating:

  • the input (domain),
  • the output (range or codomain),
  • the trend of change, and
  • behavior near boundaries.
    Derivatives and optimization problems are built directly upon this foundation.

Representing Functions

Functions can be expressed in several complementary ways—the most common include:

  1. Algebraic Expression:
    For example, a simple function may be written as f(x)=2x+3f(x) = 2x + 3. Here, for any value of xx, you can compute the corresponding f(x)f(x).

  2. Graph:
    A function can also be visualized as a graph—typically plotted on the Cartesian plane. Each point (x,f(x))(x, f(x)) on the graph encodes the relationship between the input xx and its output f(x)f(x).

  3. Table:
    A function can be tabulated, listing selected input values alongside their corresponding outputs. For instance:

    xx f(x)f(x)
    1 5
    2 7
    3 9

Examples: Common Functions

Let’s examine some frequently encountered functions and their key characteristics:

  • Linear Function: e.g., f(x)=mx+bf(x) = mx + b. Its graph is a straight line; slope mm determines steepness, and intercept bb determines where it crosses the yy-axis.
  • Quadratic Function: e.g., f(x)=ax2+bx+cf(x) = ax^2 + bx + c. Its graph is a parabola; the sign of coefficient aa determines whether it opens upward (a>0a > 0) or downward (a<0a < 0).
  • Exponential Function: e.g., f(x)=axf(x) = a^x. When a>1a > 1, the graph exhibits rapid growth; when 0<a<10 < a < 1, it decays exponentially.

You can visualize these functions using Python. Below is an example plotting a linear function:

import numpy as np
import matplotlib.pyplot as plt

# Define the function
def f(x):
    return 2*x + 3

# Generate x values
x = np.linspace(-10, 10, 400)
y = f(x)

# Plot the function
plt.plot(x, y, label='f(x) = 2x + 3')
plt.title('Linear Function')
plt.xlabel('x')
plt.ylabel('f(x)')
plt.axhline(0, color='black', lw=0.5, ls='--')
plt.axvline(0, color='black', lw=0.5, ls='--')
plt.grid()
plt.legend()
plt.show()

The Concept of a Limit

In calculus, the limit is a cornerstone concept—it helps us understand how a function behaves near a particular point, even if the function isn’t defined at that point. Intuitively, a limit captures the idea of “where the output tends to go as the input gets arbitrarily close to a given value.”

Calculus-in-Practice Implementation Card

You don’t need to absorb every detail of AI-Ready Calculus for Beginners: Functions and Limits — Part 1: Concepts and Representations all at once. Start with one small, hands-on problem you can verify yourself—and then use the diagrams and text to fill in conceptual gaps.

Notation for Limits

Limits are denoted using the symbol lim\lim. For example, to express “the limit of f(x)f(x) as xx approaches aa,” we write:

limxaf(x)\lim_{x \to a} f(x)

If f(x)f(x) approaches the value LL as xx gets arbitrarily close to aa, we say:

limxaf(x)=L\lim_{x \to a} f(x) = L

AI-Ready Calculus for Beginners: Functions and Limits — Part 1: Concepts and Representations — Application Recap Card

By this point, you can distill AI-Ready Calculus for Beginners: Functions and Limits — Part 1: Concepts and Representations into a concise recap table: first articulate the core narrative, then test it with a small, concrete task.

AI-Ready Calculus for Beginners: Functions and Limits — Part 1: Concepts and Representations — Application Check Card

After finishing AI-Ready Calculus for Beginners: Functions and Limits — Part 1: Concepts and Representations, try walking through a small, self-contained example end-to-end—and then assess which steps you can now execute independently.

Summary

In this section, we introduced the fundamental concept of a function, explored its various representations (algebraic, graphical, tabular), and defined the limit—a tool for describing functional behavior near specific points. Mastering these basics is indispensable before advancing to deeper topics in calculus. In the next tutorial, we’ll rigorously define limits and examine their key properties—deepening your intuition and formal understanding. Through this series, our goal is to equip you with a robust, practical foundation in calculus—empowering confident learning and real-world application.

Continue

Keep reading from here

Browse English site

Reader Messages

Reader messages

Questions, corrections, extra sources, or hands-on results can be left here. No login is required.

Max 800 characters

To reduce spam, each message is checked for length, link count, and posting frequency.

0/800

Messages

0 messages
Loading messages...