CodeMathFusion

📈 Introduction to Functions

Functions are like magical math machines! Put a number in, get a number out. Discover how functions transform values and describe relationships.

🎰 What is a Function?

A function is a special relationship where each input has exactly one output. Think of it as a machine that takes an input, performs an operation, and gives you an output!

The Function Machine 🎰

Input → [Function Machine] → Output

For example: $f(x) = 2x + 1$

  • Input: $x = 3$ → Machine: $2(3) + 1$ → Output: $7$ ✨
  • Input: $x = 5$ → Machine: $2(5) + 1$ → Output: $11$ ✨

Each input gives exactly ONE output!

📝 Function Notation

We write functions using special notation: $f(x)$ means "function $f$ of $x$"

Reading Function Notation

$f(x) = 3x - 2$ means:

  • $f$ is the name of the function
  • $x$ is the input variable
  • $3x - 2$ is the rule (what the machine does)

Example: Find $f(4)$

$$f(4) = 3(4) - 2 = 12 - 2 = 10$$

🔄 Evaluating Functions

To evaluate a function means to find the output when you know the input!

Step-by-Step Example

Given $g(x) = x^2 + 5$, find $g(3)$:

Step 1: Replace every $x$ with $3$

$g(3) = (3)^2 + 5$

Step 2: Calculate

$$g(3) = 9 + 5 = 14$$ ✨

📊 Domain and Range

Every function has a domain (possible inputs) and a range (possible outputs).

Understanding Domain and Range

  • Domain: All the $x$-values you can put into the function
  • Range: All the $y$-values you can get out of the function

Example: For $f(x) = x + 3$

  • Domain: All real numbers (you can input any number!)
  • Range: All real numbers (you can get any output!)

📈 Graphing Functions

We can visualize functions by plotting points on a coordinate plane!

Creating a Function Table

For $f(x) = 2x - 1$:

$x$ (Input) $f(x)$ (Output)
0 -1
1 1
2 3
3 5

Plot these points $(x, f(x))$ and connect them to see the graph! 📊

🌟 Real-Life Applications

🎯 Practice Questions

1
If $f(x) = x + 7$, find $f(3)$
2
If $g(x) = 2x - 1$, find $g(5)$
3
If $h(x) = x^2$, find $h(4)$
4
If $f(x) = 3x + 2$, find $f(0)$
5
If $k(x) = \frac{x}{2} + 1$, find $k(6)$
6
If $f(x) = 5x$, what is $f(2)$?
7
Create a table for $f(x) = x - 3$ with inputs 0, 1, 2, 3
8
If $g(x) = x^2 + 1$, find $g(3)$

🔥 Challenge Questions

1
If $f(x) = 2x + 3$, find the value of $x$ when $f(x) = 11$
2
If $g(x) = x^2 - 4$, find $g(-2)$
3
A taxi charges $3 base + $2 per mile. Write a function $C(m)$ for cost
4
If $f(a) = 3a - 1$ and $f(a) = 14$, find $a$