Solved Exercises on Evaluating Functions in College Algebra

Master evaluating functions: substitution method, domain restrictions, composite functions, piecewise functions through these 5 detailed exercises.

Solution: Exercises 1 to 3
1 Basic function evaluation
Exercise 1
Given \(f(x) = 2x^2 - 3x + 1\), evaluate \(f(3)\) and \(f(-2)\)
Definition:

Function evaluation: Replace every occurrence of the input variable with the given value and compute the result

Substitution method:
  1. Identify the function rule: \(f(x) = 2x^2 - 3x + 1\)
  2. Replace every instance of \(x\) with the input value
  3. Calculate the expression following order of operations (PEMDAS/BODMAS)
Expression
\(f(x) = 2x^2 - 3x + 1\)
Evaluate f(3)
\(f(3) = ?\)
Step 1: Substitute x = 3

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

Step 2: Calculate powers

\(3^2 = 9\), so \(f(3) = 2(9) - 3(3) + 1\)

Step 3: Perform multiplications

\(2(9) = 18\) and \(3(3) = 9\), so \(f(3) = 18 - 9 + 1\)

Step 4: Complete addition/subtraction

\(18 - 9 + 1 = 10\)

\(f(3) = 10\)
Evaluate f(-2)
\(f(-2) = ?\)
Substitute x = -2
\(f(-2) = 2(-2)^2 - 3(-2) + 1\)
Step 1: Calculate powers (with negative base)

\((-2)^2 = 4\) (negative squared is positive)

Step 2: Perform multiplications

\(2(4) = 8\) and \(-3(-2) = 6\)

Step 3: Complete the calculation

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

\(f(-2) = 15\)
Final answers:

\(f(3) = 10\) and \(f(-2) = 15\)

Applied rules:

• Substitution: Replace each instance of the variable with the given value

• Order of operations: Parentheses, Exponents, Multiplication/Division, Addition/Subtraction

• Sign rules: Negative times negative equals positive

2 Function with fraction inputs
Exercise 2
Given \(g(x) = \frac{2x + 1}{x - 3}\), evaluate \(g(4)\) and \(g\left(\frac{1}{2}\right)\)
Definition:

Rational function: A function expressed as the ratio of two polynomials

Expression
\(g(x) = \frac{2x + 1}{x - 3}\)
Evaluate g(4)
\(g(4) = ?\)
Step 1: Substitute x = 4

\(g(4) = \frac{2(4) + 1}{4 - 3} = \frac{8 + 1}{1} = \frac{9}{1}\)

Step 2: Simplify the fraction

\(g(4) = 9\)

Evaluate g(1/2)
\(g\left(\frac{1}{2}\right) = ?\)
Substitute x = 1/2
\(g\left(\frac{1}{2}\right) = \frac{2\left(\frac{1}{2}\right) + 1}{\frac{1}{2} - 3}\)
Step 1: Calculate numerator

\(2\left(\frac{1}{2}\right) + 1 = 1 + 1 = 2\)

Step 2: Calculate denominator

\(\frac{1}{2} - 3 = \frac{1}{2} - \frac{6}{2} = \frac{-5}{2}\)

Step 3: Complete the division

\(g\left(\frac{1}{2}\right) = \frac{2}{\frac{-5}{2}} = 2 \times \frac{2}{-5} = \frac{4}{-5} = -\frac{4}{5}\)

\(g(4) = 9\) and \(g\left(\frac{1}{2}\right) = -\frac{4}{5}\)
Final answer:

\(g(4) = 9\) and \(g\left(\frac{1}{2}\right) = -\frac{4}{5}\)

Applied rules:

• Fraction arithmetic: When dividing by a fraction, multiply by its reciprocal

• Domain restriction: Denominator cannot equal zero

• Sign handling: Be careful with negative fractions

3 Composite function evaluation
Exercise 3
Given \(f(x) = x^2 + 1\) and \(g(x) = 2x - 3\), find \((f \circ g)(2)\) and \((g \circ f)(-1)\)
Definition:

Composite function: \((f \circ g)(x) = f(g(x))\) - apply g first, then f

Given functions
\(f(x) = x^2 + 1\), \(g(x) = 2x - 3\)
Find (f∘g)(2)
\(f(g(2)) = ?\)
Step 1: Evaluate inner function g(2)

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

Step 2: Use result as input for f(x)

\(f(g(2)) = f(1) = 1^2 + 1 = 1 + 1 = 2\)

Step 3: Find (g∘f)(-1)

First evaluate \(f(-1) = (-1)^2 + 1 = 1 + 1 = 2\)

Step 4: Use result as input for g(x)

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

\((f \circ g)(2) = 2\) and \((g \circ f)(-1) = 1\)
Final answer:

\((f \circ g)(2) = 2\) and \((g \circ f)(-1) = 1\)

Applied rules:

• Order matters: \((f \circ g)(x)\) is generally not equal to \((g \circ f)(x)\)

• Step-by-step: Evaluate innermost function first

• Composition: The output of one function becomes the input of another

Key Concepts, Rules, and Methods
\(f(a) = \text{value of } f(x) \text{ when } x = a\)
Function Evaluation
Basic Evaluation
\(f(x) = ax + b \Rightarrow f(c) = ac + b\)
Linear function evaluation
Quadratic Evaluation
\(f(x) = ax^2 + bx + c \Rightarrow f(d) = ad^2 + bd + c\)
Quadratic function evaluation
Composite Functions
\((f \circ g)(x) = f(g(x))\)
Function composition
Key definitions:

Function: A relation where each input has exactly one output

Domain: Set of all possible input values

Range: Set of all possible output values

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

Complete methodology:
  1. Identify the function rule: Look at the algebraic expression defining the function
  2. Check the domain: Ensure the input value is allowed (no division by zero, etc.)
  3. Substitute systematically: Replace every occurrence of the variable with the input value
  4. Calculate carefully: Follow order of operations to get the final result
Tip 1: Always substitute within parentheses to avoid sign errors.
Tip 2: For composite functions, work from inside out: evaluate innermost function first.
Tip 3: Check if the input value is in the domain before evaluating.
Common errors: Forgetting to square negative numbers properly, miscalculating complex expressions, ignoring domain restrictions.
Memorization aid: "f of x" means "plug x into the function rule and compute".
Essential rules to know:

• Substitution principle: Replace every instance of the variable

• Order of operations: PEMDAS/BODMAS must be followed

• Domain considerations: Denominators cannot be zero, even roots require non-negative arguments

• Composition order: \((f \circ g)(x)\) means \(f(g(x))\), not \(g(f(x))\)

Solution: Exercises 4 to 5
4 Piecewise function evaluation
Exercise 4
Given \(h(x) = \begin{cases} 2x + 1 & \text{if } x < 0 \\ x^2 - 3 & \text{if } x \geq 0 \end{cases}\), evaluate \(h(-2)\) and \(h(3)\)
Definition:

Piecewise function: A function defined by different expressions over different intervals

Function definition
\(h(x) = \begin{cases} 2x + 1 & \text{if } x < 0 \\ x^2 - 3 & \text{if } x \geq 0 \end{cases}\)
Evaluate h(-2)
\(h(-2) = ?\)
Step 1: Determine which condition applies

Since \(-2 < 0\), we use the first piece: \(2x + 1\)

Step 2: Substitute x = -2 into first piece

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

Step 3: Evaluate h(3)

Since \(3 \geq 0\), we use the second piece: \(x^2 - 3\)

Step 4: Substitute x = 3 into second piece

\(h(3) = 3^2 - 3 = 9 - 3 = 6\)

\(h(-2) = -3\) and \(h(3) = 6\)
Final answer:

\(h(-2) = -3\) and \(h(3) = 6\)

Applied rules:

• Condition checking: Identify which piece applies based on the input value

• Correct substitution: Use the appropriate function rule for the given interval

• Interval boundaries: Pay attention to whether boundary points are included

5 Function with domain restrictions
Exercise 5
Given \(p(x) = \sqrt{x + 4} + \frac{1}{x - 2}\), evaluate \(p(0)\) and determine why \(p(-5)\) is undefined
Definition:

Domain restrictions: Values that make expressions undefined or impossible to evaluate

Function definition
\(p(x) = \sqrt{x + 4} + \frac{1}{x - 2}\)
Evaluate p(0)
\(p(0) = ?\)
Step 1: Check domain restrictions

For \(\sqrt{x + 4}\): \(x + 4 \geq 0 \Rightarrow x \geq -4\)

For \(\frac{1}{x - 2}\): \(x - 2 \neq 0 \Rightarrow x \neq 2\)

Step 2: Since 0 ≥ -4 and 0 ≠ 2, p(0) is defined

\(p(0) = \sqrt{0 + 4} + \frac{1}{0 - 2} = \sqrt{4} + \frac{1}{-2} = 2 + (-0.5) = 1.5\)

Step 3: Analyze p(-5)

For \(\sqrt{-5 + 4} = \sqrt{-1}\), which is undefined in real numbers

Step 4: Conclusion

\(p(-5)\) is undefined because \(\sqrt{-1}\) is not a real number

\(p(0) = 1.5\) and \(p(-5)\) is undefined
Final answer:

\(p(0) = 1.5\) and \(p(-5)\) is undefined due to domain restriction

Applied rules:

• Square root restriction: Argument must be non-negative

• Division restriction: Denominator cannot be zero

• Domain verification: Always check if input value is in the function's domain

Comprehensive Guide: Laws, Methods, Rules, and Definitions
\(f(a) = \text{output when input is } a\)
Function Evaluation
Key definitions:

Function: A rule that assigns to each element in the domain exactly one element in the range

Domain: Set of all possible input values (x-values) for which the function is defined

Range: Set of all possible output values (y-values) that the function produces

Function notation: \(f(x)\) represents the output value when \(x\) is the input

Composite function: \((f \circ g)(x) = f(g(x))\) - the output of g becomes the input of f

Complete methodology:
  1. Identify the function rule: Look at the algebraic expression defining the function
  2. Determine the input value: Identify the specific value for which to evaluate the function
  3. Check domain restrictions: Ensure the input value is valid (not causing division by zero, negative under even root, etc.)
  4. Substitute systematically: Replace every occurrence of the variable with the input value
  5. Calculate following order of operations: PEMDAS/BODMAS (Parentheses, Exponents, Multiplication/Division, Addition/Subtraction)
  6. Simplify completely: Reduce to simplest form
  7. Verify result: Check for arithmetic errors and reasonableness
Tip 1: Always substitute values within parentheses to avoid sign errors, especially with negative inputs.
Tip 2: For composite functions, work from inside out: evaluate the innermost function first.
Tip 3: Check if the input value is in the domain before attempting evaluation.
Tip 4: For piecewise functions, identify which piece applies to the given input value.
Tip 5: Verify results by substituting back or checking against expected behavior.
Common errors: Forgetting to square negative numbers properly, miscalculating complex expressions, ignoring domain restrictions, confusing function composition order.
Exam preparation: Practice with various function types (linear, quadratic, rational, radical, piecewise), memorize domain restrictions, master order of operations.
Memory aids: "f of x" means "plug x into the function rule and compute"; for composites, work inside-out.
Essential rules and formulas:

• Substitution principle: Replace every instance of the variable with the given input value

• Order of operations: PEMDAS/BODMAS must be strictly followed

• Domain restrictions: Denominators cannot be zero, even roots require non-negative arguments

• Composition order: \((f \circ g)(x)\) means \(f(g(x))\), not \(g(f(x))\)

• Piecewise functions: Use the appropriate rule based on the input value's interval

• Negative numbers: Remember that \((-a)^2 = a^2\) but \((-a)^3 = -a^3\)

• Fraction operations: Dividing by a fraction equals multiplying by its reciprocal

Function Evaluation Workflow

🔄
Step-by-Step Process
1
Identify Function Rule
2
Check Domain
3
Substitute Value
4
Calculate Result
5
Verify Answer
Visual Representation
Input value enters function machine → Operations performed → Output value produced
📚 Practice Makes Perfect!

Questions & Answers

Question: I often get confused about when to use which piece of a piecewise function. How do I know which condition to check?

Answer: The key is to compare your input value with the conditions specified for each piece:

  • Look at the inequalities that define each piece (e.g., \(x < 0\), \(x \geq 0\), \(x > 2\))
  • Test whether your input value satisfies the condition for each piece
  • Use the piece whose condition your input value satisfies

For example, if you have: \[ f(x) = \begin{cases} x^2 & \text{if } x < 2 \\ 3x - 1 & \text{if } x \geq 2 \end{cases} \] To evaluate \(f(1)\): Since \(1 < 2\), use the first piece: \(f(1) = 1^2 = 1\) To evaluate \(f(3)\): Since \(3 \geq 2\), use the second piece: \(f(3) = 3(3) - 1 = 8\)

Pay special attention to boundary points - make sure you understand whether endpoints are included (≤, ≥) or excluded (<, >).

Question: Why does the order matter in composite functions? Isn't \((f \circ g)(x)\) the same as \((g \circ f)(x)\)?

Answer: The order absolutely matters in composite functions! In general, \((f \circ g)(x) \neq (g \circ f)(x)\).

Remember: \((f \circ g)(x) = f(g(x))\) means "apply g first, then apply f to the result"

And: \((g \circ f)(x) = g(f(x))\) means "apply f first, then apply g to the result"

Example: Let \(f(x) = x^2\) and \(g(x) = x + 1\)

  • \((f \circ g)(x) = f(g(x)) = f(x + 1) = (x + 1)^2 = x^2 + 2x + 1\)
  • \((g \circ f)(x) = g(f(x)) = g(x^2) = x^2 + 1\)

As you can see, \(x^2 + 2x + 1 \neq x^2 + 1\), so the order of composition makes a significant difference!

Think of it like putting on clothes: putting on a shirt then a jacket is different from putting on a jacket then a shirt.

Question: How do I quickly identify domain restrictions when evaluating functions?

Answer: Here's a systematic approach to identify domain restrictions:

  1. Denominators: Set denominators ≠ 0 and solve for x
  2. Even roots: Set expressions under √ ≥ 0 and solve for x
  3. Logarithms: Set arguments > 0 and solve for x
  4. Tangent/cotangent: Avoid values where these functions are undefined

Quick checks:

  • If you see \(\frac{1}{x-a}\), then \(x \neq a\)
  • If you see \(\sqrt{x-a}\), then \(x \geq a\)
  • If you see \(\ln(x-a)\), then \(x > a\)

Before evaluating any function at a point, quickly scan for these potential issues. If the input value violates any domain restriction, the function is undefined at that point.

Always check domain restrictions before attempting evaluation to avoid invalid operations!