Precalculus-I · Unit 1 · Video 3 · Interactive Practice

Evaluating and Solving Functions Given by Formulas

IKey Formulas

TaskFormulaAnswer
Evaluatef(2)=(2)2+3(2)−4=6f(2) = (2)^2 + 3(2) - 4 = 6Exactly one output
Solveh(p)=3  ⇒  p2+2p−3=0h(p) = 3 \;\Rightarrow\; p^2 + 2p - 3 = 0Zero, one, or several inputs
Difference quotientf(a+h)−f(a)h, h≠0\dfrac{f(a+h) - f(a)}{h},\ h \neq 0For x2+3x−4x^2 + 3x - 4: 2a+h+32a + h + 3
Function from an equation2n+6p=12  ⇒  p=2−13n2n + 6p = 12 \;\Rightarrow\; p = 2 - \tfrac{1}{3}nNeeds one output per input

Key Insight: f(a+h)f(a + h) is not f(a)+hf(a) + h: substitute (a+h)(a + h) for every xx, so every term containing the input changes.

IIEvaluate Forward, Solve Backward

For h(p)=p2+2ph(p) = p^2 + 2p, an input gives exactly one output, but an output can come from two, one, or no inputs.

IIIThe Difference Quotient

For f(x)=x2+3x−4f(x) = x^2 + 3x - 4, the simplified form 2a+h+32a + h + 3 equals f(a+h)−f(a)h\dfrac{f(a+h) - f(a)}{h} for every h≠0h \neq 0.

💡 The difference quotient is the slope of the line through (a,f(a))(a, f(a)) and (a+h,f(a+h))(a+h, f(a+h)): rise f(a+h)−f(a)f(a+h) - f(a) over run hh.

IVWhen Does an Equation Define a Function?

An equation defines the output as a function of the input when each input gives exactly one output.

VQuiz Questions

Problem 1 · Evaluate, Then Solve

Given: f(x)=x2−4xf(x) = x^2 - 4x.

What is f(−1)f(-1)?

Which inputs give f(x)=5f(x) = 5?

✅ Correct! Evaluating gives the single output f(−1)=5f(-1) = 5; solving f(x)=5f(x) = 5 finds every input with that output, −1-1 and 55.
❌ Check the sign of −4x-4x. At x=−1x = -1 it is −4(−1)=+4-4(-1) = +4, not −4-4.
❌ Check the square. (−1)2=1(-1)^2 = 1: the parentheses square the whole input, sign included.
❌ Two sign slips. (−1)2=1(-1)^2 = 1 and −4(−1)=+4-4(-1) = +4.
❌ Not quite. Replace every xx with (−1)(-1), then calculate.
❌ Only half the answer. f(5)=5f(5) = 5, but solving means finding every input with output 55, and there is another.
❌ Check the signs in the factors. x2−4x−5=(x−5)(x+1)x^2 - 4x - 5 = (x - 5)(x + 1); test x=1x = 1: f(1)=−3≠5f(1) = -3 \neq 5.
❌ Those solve f(x)=0f(x) = 0. Set the formula equal to 55 first: x2−4x−5=0x^2 - 4x - 5 = 0.
❌ Not quite. Set x2−4x=5x^2 - 4x = 5, move the 55 across, and factor.
Show solution

Evaluate: replace every xx with (−1)(-1).

f(−1)=(−1)2−4(−1)=1+4=5f(-1) = (-1)^2 - 4(-1) = 1 + 4 = 5

Solve: set the formula equal to 55.

x2−4x=5  ⇒  x2−4x−5=0  ⇒  (x−5)(x+1)=0x^2 - 4x = 5 \;\Rightarrow\; x^2 - 4x - 5 = 0 \;\Rightarrow\; (x - 5)(x + 1) = 0

So x=5x = 5 or x=−1x = -1. Check: f(5)=25−20=5f(5) = 25 - 20 = 5 ✓ and f(−1)=5f(-1) = 5 ✓, the input from the first part.

Problem 2 · Substituting an Expression

Given: f(x)=3−x2f(x) = 3 - x^2 — find f(a+h)f(a + h).

✅ Correct! The whole input (a+h)(a + h) is squared, and the minus sign applies to every term of the square.
❌ The middle term is missing. (a+h)2=a2+2ah+h2(a + h)^2 = a^2 + 2ah + h^2, not a2+h2a^2 + h^2.
❌ That is f(a)+hf(a) + h, not f(a+h)f(a + h). Changing the input changes every term that contains it.
❌ The minus sign applies to the whole square. −(a2+2ah+h2)=−a2−2ah−h2-(a^2 + 2ah + h^2) = -a^2 - 2ah - h^2.
❌ Not quite. Replace xx with (a+h)(a + h) in parentheses, then expand.
Show solution

Replace xx with (a+h)(a + h), keeping the parentheses:

f(a+h)=3−(a+h)2=3−(a2+2ah+h2)=3−a2−2ah−h2f(a + h) = 3 - (a + h)^2 = 3 - (a^2 + 2ah + h^2) = 3 - a^2 - 2ah - h^2

Compare f(a)+h=3−a2+hf(a) + h = 3 - a^2 + h: a different expression, because only the input should change.

Problem 3 · Simplify a Difference Quotient

Given: f(x)=2x2−xf(x) = 2x^2 - x — simplify f(a+h)−f(a)h\dfrac{f(a + h) - f(a)}{h} for h≠0h \neq 0.

✅ Correct! Every term left in the numerator has a factor of hh, which cancels the denominator.
❌ The 22 multiplies the whole square. 2(a+h)2=2a2+4ah+2h22(a + h)^2 = 2a^2 + 4ah + 2h^2, so h2h^2 carries a 22.
❌ That is only the numerator. Factor out hh and cancel it against the denominator.
❌ Subtract all of f(a)f(a). −(2a2−a)=−2a2+a-(2a^2 - a) = -2a^2 + a, so the −a-a terms cancel too.
❌ Not quite. Expand f(a+h)f(a + h), subtract f(a)f(a) in parentheses, then factor out hh.
Show solution

Step 1: substitute (a+h)(a + h) and expand.

f(a+h)=2(a+h)2−(a+h)=2a2+4ah+2h2−a−hf(a + h) = 2(a + h)^2 - (a + h) = 2a^2 + 4ah + 2h^2 - a - h

Step 2: subtract f(a)=2a2−af(a) = 2a^2 - a in parentheses.

(2a2+4ah+2h2−a−h)−(2a2−a)=4ah+2h2−h(2a^2 + 4ah + 2h^2 - a - h) - (2a^2 - a) = 4ah + 2h^2 - h

Step 3: factor out hh and cancel, allowed because h≠0h \neq 0.

4ah+2h2−hh=h(4a+2h−1)h=4a+2h−1\frac{4ah + 2h^2 - h}{h} = \frac{h(4a + 2h - 1)}{h} = 4a + 2h - 1

Check with a=1a = 1, h=1h = 1: f(2)−f(1)1=6−1=5\dfrac{f(2) - f(1)}{1} = 6 - 1 = 5 and 4(1)+2(1)−1=54(1) + 2(1) - 1 = 5 ✓

Problem 4 · Does the Equation Define a Function?

Which equation does not define yy as a function of xx?

✅ Correct! The input x=4x = 4 gives y2=4y^2 = 4, so y=2y = 2 or y=−2y = -2: one input, two outputs, as on the circle.
❌ This one is a function. Solving for yy gives y=3−34xy = 3 - \tfrac{3}{4}x: one output per input.
❌ This one is a function. As yy increases, y3+yy^3 + y increases, so each xx comes from exactly one yy. Like x=y+2yx = y + 2^y, the rule is implicit.
❌ This one is a function: y=x2+4y = x^2 + 4. The inputs 11 and −1-1 share the output 55, which a function allows; what it forbids is one input with two outputs.
❌ Not quite. Look for an input that gives two outputs.
Show solution

Try to solve each equation for yy:

  • 3x+4y=12⇒y=3−34x3x + 4y = 12 \Rightarrow y = 3 - \tfrac{3}{4}x: one output per input.
  • x=y2⇒y=±xx = y^2 \Rightarrow y = \pm\sqrt{x}: for x=4x = 4, both y=2y = 2 and y=−2y = -2 work. Not a function.
  • x=y3+yx = y^3 + y: no simple formula, but y3+yy^3 + y increases with yy, so each xx has exactly one yy (an implicit function).
  • y−x2=4⇒y=x2+4y - x^2 = 4 \Rightarrow y = x^2 + 4: one output per input.

Solved: 0 / 4