Evaluating Functions - Complete Guide

Master function evaluation: substitution, function notation, and applications through these 5 detailed exercises.

Solution: Exercises 1 to 3
1 Basic Function Evaluation
Exercise 1
Given \(f(x) = 2x^2 - 3x + 1\), find \(f(3)\), \(f(-2)\), and \(f(0)\).
Definition:

Function evaluation: Replacing the variable in a function with a specific value to find the corresponding output.

Function notation: \(f(x)\) represents the output of function f when x is the input.

Evaluation method:
  1. Identify the function and the input value
  2. Replace every instance of the variable with the input value
  3. Perform the indicated operations following order of operations
  4. Simplify to find the output value
Evaluate
\(f(3) = 2(3)^2 - 3(3) + 1\)
Calculate
\(f(3) = 18 - 9 + 1 = 10\)
Result
\((3, 10)\)
Step 1: Evaluate \(f(3)\)

Replace x with 3 in the function: \(f(3) = 2(3)^2 - 3(3) + 1\)

Follow order of operations: \(f(3) = 2(9) - 9 + 1\)

\(f(3) = 18 - 9 + 1 = 10\)

Step 2: Evaluate \(f(-2)\)

Replace x with -2: \(f(-2) = 2(-2)^2 - 3(-2) + 1\)

Calculate powers: \((-2)^2 = 4\)

\(f(-2) = 2(4) - 3(-2) + 1\)

\(f(-2) = 8 + 6 + 1 = 15\)

Step 3: Evaluate \(f(0)\)

Replace x with 0: \(f(0) = 2(0)^2 - 3(0) + 1\)

\(f(0) = 2(0) - 0 + 1\)

\(f(0) = 0 - 0 + 1 = 1\)

Step 4: Interpret the results

• \(f(3) = 10\): When input is 3, output is 10

• \(f(-2) = 15\): When input is -2, output is 15

• \(f(0) = 1\): When input is 0, output is 1

Step 5: Verify with ordered pairs

The points \((3, 10)\), \((-2, 15)\), and \((0, 1)\) lie on the graph of the function

\(f(3) = 10\), \(f(-2) = 15\), \(f(0) = 1\)
Final answer:

\(f(3) = 10\), \(f(-2) = 15\), \(f(0) = 1\)

Applied rules:

• Substitution: Replace variable with given value everywhere

• Order of operations: Parentheses, exponents, multiplication/division, addition/subtraction

• Sign handling: Be careful with negative inputs and exponents

2 Function with Variable Expression
Exercise 2
If \(g(x) = 4x - 7\), find \(g(x + 2)\) and \(g(2x - 1)\).
Definition:

Function with expression input: Evaluating a function where the input is itself an algebraic expression.

For g(x+2)
\(4(x + 2) - 7\)
For g(2x-1)
\(4(2x - 1) - 7\)
Results
\(4x + 1\) and \(8x - 11\)
Step 1: Understand the function

Given: \(g(x) = 4x - 7\)

This means "g of x equals 4 times x minus 7"

Step 2: Find \(g(x + 2)\)

Replace every x in the function with the expression \((x + 2)\)

\(g(x + 2) = 4(x + 2) - 7\)

Distribute: \(g(x + 2) = 4x + 8 - 7\)

Simplify: \(g(x + 2) = 4x + 1\)

Step 3: Find \(g(2x - 1)\)

Replace every x in the function with the expression \((2x - 1)\)

\(g(2x - 1) = 4(2x - 1) - 7\)

Distribute: \(g(2x - 1) = 8x - 4 - 7\)

Simplify: \(g(2x - 1) = 8x - 11\)

Step 4: Verify with specific values

Let's test with x = 1:

For \(g(x + 2)\): When x = 1, input is 3

\(g(3) = 4(3) - 7 = 12 - 7 = 5\)

Using our formula: \(g(1 + 2) = 4(1) + 1 = 5\) ✓

For \(g(2x - 1)\): When x = 1, input is 1

\(g(1) = 4(1) - 7 = -3\)

Using our formula: \(g(2(1) - 1) = 8(1) - 11 = -3\) ✓

Step 5: General principle

When evaluating \(f(\text{expression})\), substitute the entire expression wherever x appears in the function definition

\(g(x + 2) = 4x + 1\), \(g(2x - 1) = 8x - 11\)
Final answer:

\(g(x + 2) = 4x + 1\) and \(g(2x - 1) = 8x - 11\)

Applied rules:

• Expression substitution: Replace variable with entire expression in parentheses

• Distribution: Apply multiplication to each term in the parentheses

• Simplification: Combine like terms to get final form

3 Rational Function Evaluation
Exercise 3
Given \(h(x) = \frac{x + 3}{x - 2}\), find \(h(5)\), \(h(-1)\), and \(h(2)\). What do you notice about \(h(2)\)?
Definition:

Rational function: A function that is the ratio of two polynomials.

Domain restriction: Values that make the denominator zero are excluded from the domain.

Evaluate h(5)
\(\frac{5 + 3}{5 - 2} = \frac{8}{3}\)
Evaluate h(-1)
\(\frac{-1 + 3}{-1 - 2} = \frac{2}{-3}\)
For h(2)
Undefined (division by zero)
Step 1: Evaluate \(h(5)\)

Substitute x = 5: \(h(5) = \frac{5 + 3}{5 - 2}\)

Numerator: \(5 + 3 = 8\)

Denominator: \(5 - 2 = 3\)

\(h(5) = \frac{8}{3}\)

Step 2: Evaluate \(h(-1)\)

Substitute x = -1: \(h(-1) = \frac{-1 + 3}{-1 - 2}\)

Numerator: \(-1 + 3 = 2\)

Denominator: \(-1 - 2 = -3\)

\(h(-1) = \frac{2}{-3} = -\frac{2}{3}\)

Step 3: Attempt to evaluate \(h(2)\)

Substitute x = 2: \(h(2) = \frac{2 + 3}{2 - 2}\)

Numerator: \(2 + 3 = 5\)

Denominator: \(2 - 2 = 0\)

\(h(2) = \frac{5}{0}\)

Step 4: Analyze the result for \(h(2)\)

Division by zero is undefined in mathematics

Therefore, \(h(2)\) is undefined

This means x = 2 is not in the domain of function h

Step 5: Determine the domain

The function \(h(x) = \frac{x + 3}{x - 2}\) is undefined when the denominator equals zero

Set denominator equal to zero: \(x - 2 = 0\)

Solve: \(x = 2\)

Domain: All real numbers except x = 2, or \((-\infty, 2) \cup (2, \infty)\)

Step 6: General rule for rational functions

To find the domain of a rational function, identify values that make the denominator zero and exclude them

\(h(5) = \frac{8}{3}\), \(h(-1) = -\frac{2}{3}\), \(h(2)\) is undefined
Final answer:

\(h(5) = \frac{8}{3}\), \(h(-1) = -\frac{2}{3}\), and \(h(2)\) is undefined because it results in division by zero.

Applied rules:

• Rational function evaluation: Substitute and simplify numerator and denominator separately

• Division by zero: Results in undefined expression

• Domain restriction: Exclude values that make denominator zero

Function Evaluation Techniques & Properties
\( f(x) = \text{expression in } x \)
General Function Definition
Substitution
\(f(a) = \text{expression}|_{x=a}\)
Replace x with specific value a
Expression Input
\(f(g(x)) = \text{expression}|_{x=g(x)}\)
Replace x with entire expression g(x)
Domain
Valid x-values
Values where function is defined
Key definitions:

Function evaluation: The process of finding the output of a function for a given input.

Function notation: A symbolic way to represent a function using f(x), g(x), h(x), etc.

Domain: The set of all possible input values for which the function is defined.

Range: The set of all possible output values the function can produce.

Complete evaluation process:
  1. Identify function: Recognize the function rule
  2. Identify input: Determine the value or expression to substitute
  3. Substitute: Replace variable with the input value
  4. Simplify: Perform operations following order of operations
  5. Verify: Check if the input is in the domain
Solution: Exercises 4 to 5
4 Piecewise Function
Exercise 4
Evaluate the piecewise function:
\( f(x) = \begin{cases} 2x + 1 & \text{if } x < 0 \\ x^2 & \text{if } x \geq 0 \end{cases} \)
Find \(f(-3)\), \(f(0)\), and \(f(4)\).
Definition:

Piecewise function: A function defined by different expressions over different intervals of the domain.

For x = -3
Use \(2x + 1\)
For x = 0
Use \(x^2\)
For x = 4
Use \(x^2\)
Step 1: Understand the piecewise function

The function has two parts:

• For inputs less than 0: use \(f(x) = 2x + 1\)

• For inputs greater than or equal to 0: use \(f(x) = x^2\)

Step 2: Evaluate \(f(-3)\)

Since \(-3 < 0\), use the first part of the function: \(f(x) = 2x + 1\)

\(f(-3) = 2(-3) + 1 = -6 + 1 = -5\)

Step 3: Evaluate \(f(0)\)

Since \(0 \geq 0\), use the second part of the function: \(f(x) = x^2\)

\(f(0) = 0^2 = 0\)

Step 4: Evaluate \(f(4)\)

Since \(4 \geq 0\), use the second part of the function: \(f(x) = x^2\)

\(f(4) = 4^2 = 16\)

Step 5: Verify the results

• For \(f(-3)\): Since -3 is negative, it uses the first rule ✓

• For \(f(0)\): Since 0 is not negative, it uses the second rule ✓

• For \(f(4)\): Since 4 is positive, it uses the second rule ✓

Step 6: Key insight about piecewise functions

Always determine which interval the input value belongs to before applying the appropriate rule

Pay special attention to the boundary points (where conditions change)

\(f(-3) = -5\), \(f(0) = 0\), \(f(4) = 16\)
Final answer:

\(f(-3) = -5\), \(f(0) = 0\), and \(f(4) = 16\).

Applied rules:

• Piecewise evaluation: Use the rule corresponding to the input's interval

• Boundary check: Pay attention to conditions like ≥ or >

• Verification: Confirm you used the correct rule for each input

5 Real-World Application
Exercise 5
A company charges for printing services as follows: $0.10 per page for the first 100 pages, and $0.08 per page for each additional page. Write a function C(p) for the cost of printing p pages, then evaluate C(75), C(100), and C(150).
Definition:

Real-world function: A function that models a practical situation with specific pricing or cost structures.

Define function
\(C(p) = \begin{cases} 0.10p & \text{if } p \leq 100 \\ 10 + 0.08(p-100) & \text{if } p > 100 \end{cases}\)
Evaluate
Calculate for each input
Results
$7.50, $10.00, $14.00
Step 1: Define the function

For p ≤ 100: Cost = $0.10 per page × number of pages

For p > 100: Cost = $10.00 (first 100 pages) + $0.08 per page × (pages beyond 100)

Function: \(C(p) = \begin{cases} 0.10p & \text{if } p \leq 100 \\ 10 + 0.08(p-100) & \text{if } p > 100 \end{cases}\)

Step 2: Evaluate \(C(75)\)

Since \(75 \leq 100\), use the first rule: \(C(p) = 0.10p\)

\(C(75) = 0.10(75) = 7.50\)

The cost for 75 pages is $7.50

Step 3: Evaluate \(C(100)\)

Since \(100 \leq 100\), use the first rule: \(C(p) = 0.10p\)

\(C(100) = 0.10(100) = 10.00\)

The cost for 100 pages is $10.00

Step 4: Evaluate \(C(150)\)

Since \(150 > 100\), use the second rule: \(C(p) = 10 + 0.08(p-100)\)

\(C(150) = 10 + 0.08(150-100) = 10 + 0.08(50) = 10 + 4 = 14.00\)

The cost for 150 pages is $14.00

Step 5: Verify calculations

• 75 pages: \(75 \times \$0.10 = \$7.50\) ✓

• 100 pages: \(100 \times \$0.10 = \$10.00\) ✓

• 150 pages: First 100 pages cost \$10.00, next 50 pages cost \(50 \times \$0.08 = \$4.00\), total = \$14.00 ✓

Step 6: Interpret the function

This piecewise function models a tiered pricing structure

It incentivizes customers to print more pages by offering a discount for bulk orders

\(C(75) = \$7.50\), \(C(100) = \$10.00\), \(C(150) = \$14.00\)
Final answer:

The printing costs are: \$7.50 for 75 pages, \$10.00 for 100 pages, and \$14.00 for 150 pages.

Applied rules:

• Variable definition: Clearly define what each variable represents

• Piecewise modeling: Use different rules for different ranges

• Real-world constraints: Consider practical limitations and pricing tiers

Comprehensive Function Evaluation Summary
\( f: X \to Y \text{ where } x \mapsto f(x) \)
Function Mapping Notation
Key definitions:

Function: A relation where each input value (x) is mapped to exactly one output value (y).

Function evaluation: The process of finding the output value corresponding to a given input value.

Domain: The set of all possible input values for which the function is defined.

Range: The set of all possible output values the function can produce.

Complete evaluation approach:
  1. Identify function rule: Understand the expression defining f(x)
  2. Determine input: Identify the specific value or expression to substitute
  3. Substitute carefully: Replace variable with input value everywhere
  4. Simplify systematically: Follow order of operations
  5. Verify domain: Ensure input is valid for the function
Tip 1: Always use parentheses when substituting negative numbers or expressions.
Tip 2: For piecewise functions, identify which rule applies before substituting.
Tip 3: Check if the input value is in the domain before evaluating.
Tip 4: Verify your result by plugging it back into the original context.
Common errors: Sign mistakes, order of operations errors, using wrong rule in piecewise functions, ignoring domain restrictions.
Exam preparation: Practice with various function types, master substitution techniques, focus on domain considerations.
Essential properties:

• Substitution: Replace variable with input value in all occurrences

• Order of operations: Follow PEMDAS/BODMAS sequence

• Domain: Consider restrictions that make function undefined

• Verification: Always check if result makes sense in context

Function Evaluation Process Visualization

Function Evaluation Steps:

  • Step 1: Identify the function rule
  • Step 2: Determine the input value
  • Step 3: Substitute the input for the variable
  • Step 4: Simplify using order of operations
  • Step 5: Verify the result

Questions & Answers

Question: What's the difference between f(x+h) and f(x) + h?

Answer: These are fundamentally different operations:

f(x+h): Replace x with (x+h) in the function

f(x) + h: Evaluate f(x) first, then add h to the result

Example: If \(f(x) = x^2\)

f(x+h): \((x+h)^2 = x^2 + 2xh + h^2\)

f(x) + h: \(x^2 + h\)

Notice that \(f(x+h) \neq f(x) + h\) in general.

The first involves substituting the entire expression (x+h) into the function, while the second adds h to the function's output.

Question: How do I evaluate a function when the input is a more complex expression?

Answer: Treat the entire expression as a single entity and substitute it everywhere the variable appears:

If \(f(x) = 3x^2 - 2x + 1\) and you want \(f(x+1)\):

Replace every x with (x+1):

\(f(x+1) = 3(x+1)^2 - 2(x+1) + 1\)

Then expand: \(f(x+1) = 3(x^2 + 2x + 1) - 2x - 2 + 1\)

\(f(x+1) = 3x^2 + 6x + 3 - 2x - 2 + 1\)

\(f(x+1) = 3x^2 + 4x + 2\)

Key: Always use parentheses around the substituted expression to avoid sign errors.

Question: How do functions relate to real-world modeling?

Answer: Functions are fundamental to modeling real-world phenomena:

Examples:

  • Business: Profit as a function of sales: P(x) = Revenue(x) - Cost(x)
  • Physics: Position as a function of time: s(t) = s₀ + v₀t + ½at²
  • Finance: Compound interest: A(t) = P(1 + r/n)^(nt)
  • Science: Population growth: P(t) = P₀e^(rt)

Function evaluation allows us to predict outcomes for specific inputs.

For example, if f(t) represents the temperature at time t, then f(3) tells us the temperature at time 3.