From a Function Rule to a Calculator Value
A calculator can evaluate a function quickly, but it cannot decide what expression you intended to enter. Accurate calculator work begins by identifying the entire function rule, substituting the input in the right places, and preserving the structure of the expression with parentheses.
For a function \(f\), the notation \(f(a)\) means the output of the function when its input is \(a\). To find that value, replace every occurrence of the input variable in the rule for \(f\) with \(a\), then evaluate the resulting expression. The input belongs everywhere the variable appears, including inside exponents, logarithms, and trigonometric functions.
When entering a substituted expression, group the input explicitly. For example, if the input is \(-2\), enter \((-2)^2\) for the square of the input. That is different from \(-2^2\), which many calculators interpret as the negative of \(2^2\). Likewise, if an expression has a denominator or a difference of function values, group the entire numerator and denominator so that the calculator follows the intended order of operations.
Evaluating a Function at a Specified Input
Before using a calculator, identify the function and the requested input. Then substitute the input and enter the resulting expression with parentheses that make the grouping unambiguous. After the calculator returns a value, check that the result is plausible by reviewing the substituted expression and the signs of its terms.
Worked Example: Evaluate a Polynomial at a Decimal Input
Evaluate \(f(x)=2.7x^2-4.1x+3.2\) at \(x=1.6\).
Substitute \(1.6\) for every \(x\). A clear calculator entry is \(2.7*(1.6)^2-4.1*(1.6)+3.2\). The substituted expression is
First evaluate the power: \((1.6)^2=2.56\). Then evaluate each product: \(2.7(2.56)=6.912\) and \(4.1(1.6)=6.56\). Therefore,
Check: Substituting the input into the original rule gives the same terms, \(2.7(2.56)\), \(-4.1(1.6)\), and \(3.2\). Their sum is \(6.912-6.56+3.2=3.552\), so \(f(1.6)=3.552\).
For functions involving special operations, the same substitution principle applies. Keep the input grouped inside the operation. Check the calculator’s angle mode when using trigonometric functions; the appropriate mode depends on whether the input is specified in radians or degrees. The earlier material on calculator modes covers that setting.
Worked Example: Evaluate an Exponential and Trigonometric Expression
Evaluate \(g(x)=e^{-x}+\sin x\) at \(x=0.8\), with the angle measured in radians.
Substitute \(0.8\) for \(x\) in both terms. The calculator entry should preserve the negative exponent and the trigonometric input: \(e^{-(0.8)}+\sin(0.8)\). The two function values are
Add the values without rounding the calculator’s stored results between steps:
To six decimal places, \(g(0.8)\approx 1.166685\). Check: The original function has a positive exponential term and a positive sine term at \(0.8\) radians, so their sum must be greater than either term alone. The reported value is greater than both \(0.449328964\) and \(0.717356091\), as required.
Average Rate of Change from Two Function Values
Evaluating a function at two inputs gives the information needed to find its average rate of change over the interval between them. If the inputs are \(a\) and \(b\), with \(a\ne b\), the average rate is the change in output divided by the change in input. The order of subtraction must match: output at \(b\) minus output at \(a\), divided by \(b-a\).
The quotient compares two changes. The numerator \(f(b)-f(a)\) is the change in the output, and the denominator \(b-a\) is the change in the input. If the output is measured in one unit and the input in another, the average rate has units of output per unit of input.
Why the Quotient Gives an Average Rate
The average rate of change is the slope of the line connecting the two points on the function’s graph. The points are \((a,f(a))\) and \((b,f(b))\). By the definition of slope, vertical change is divided by horizontal change. Here the vertical change is \(f(b)-f(a)\), and the horizontal change is \(b-a\). Therefore, the connecting line has slope \(\frac{f(b)-f(a)}{b-a}\).
This value is an average over the interval, not necessarily the rate at every input within it. For example, a changing quantity may increase quickly during one part of an interval and slowly during another while having one overall average rate. The quotient uses the two endpoint values; it does not describe every intermediate value.
Worked Example: Find an Average Rate from Exact Function Values
Let \(s(t)=0.4t^2+1.2t+3\), where \(s\) is measured in meters and \(t\) in seconds. Find the average rate of change from \(t=2\) to \(t=5\).
First evaluate the function at both endpoints:
Now calculate the output change and input change. A safe calculator entry is \((s(5)-s(2))/(5-2)\), or, after substituting the values, \((19-7)/(5-2)\).
Check: Over \(3\) seconds, an average rate of \(4\text{ m/s}\) corresponds to a change of \(4(3)=12\) meters. The endpoint values differ by \(19-7=12\) meters, so the rate agrees with the original function values.
Using the Calculator Without Losing the Structure
When the function values are not simple, evaluate both first and then form the quotient. Enter the entire numerator in parentheses and the entire denominator in parentheses. This keeps the subtraction grouped correctly and makes the calculation easier to inspect.
Worked Example: Find an Average Rate for a Logarithmic Function
For \(h(x)=\ln(x^2+1)\), find the average rate of change from \(x=1\) to \(x=2\). Both inputs are in the domain because \(x^2+1\) is positive at each one.
Evaluate the first endpoint:
Evaluate the second endpoint:
Enter the complete quotient as \((\ln(5)-\ln(2))/(2-1)\). Keeping the full calculator precision through the subtraction and division gives
To six decimal places, the average rate is approximately \(0.916291\) output units per input unit. Check: Multiplying the reported unrounded quotient by the input change \(2-1=1\) gives the output change, approximately \(0.916290731874155\). The endpoint outputs differ by that same amount.
Parentheses and Order of Operations
A common mistake is to type a correct-looking set of numbers without grouping the intended numerator and denominator. Consider the values \(s(2)=7\) and \(s(5)=19\) from the earlier example. The correct calculator entry is \((19-7)/(5-2)\), which gives \(12/3=4\).
A wrong entry is \(19-7/5-2\). Following the usual order of operations, the calculator first divides \(7\) by \(5\), then subtracts:
The result \(15.6\) is not the average rate. The entry did not divide the total output change by the total input change. The correction is to group both differences: \((19-7)/(5-2)=12/3=4\). A result can be numerically displayed to many digits and still answer the wrong question if its grouping is wrong.
Also keep the endpoint order consistent. If the numerator is \(f(b)-f(a)\), the denominator must be \(b-a\). Reversing both differences gives the same rate, since both change signs. Reversing only one gives the negative of the correct rate.
Interpreting and Reporting the Result
Once the calculator has returned a value, connect it to the quantities in the problem. State whether the function value is an output at one input or an average rate across an interval. Include units when the context supplies them, and retain a useful sign interpretation: a positive average rate means the endpoint output increased as the input increased; a negative average rate means it decreased.
For a calculator-based response, show the function values and the quotient rather than writing only a final decimal. This makes clear which endpoints were used and how the result was obtained. Use the requested precision when one is specified; otherwise, keep the calculator’s stored values during intermediate steps and round the reported result at the end.
Record the requested value \(a\), or the interval endpoints \(a\) and \(b\), with \(a\ne b\) for an average rate.
Replace every variable occurrence with the input, using parentheses especially for negative inputs and grouped operations.
For an average rate, find both function values, then enter \((f(b)-f(a))/(b-a)\).
Compare the result with the original expression, verify the endpoint changes, and state the meaning and units of the output.
Check Your Understanding
For each question, write the substituted expression before using a calculator. Keep each quotient grouped.
- For \(p(x)=3x^2-2x+1\), evaluate \(p(-2)\). What role do parentheses play when entering the squared input?
- For \(q(x)=\ln(x+2)\), find the average rate of change from \(x=0\) to \(x=2\). State the endpoint values and the quotient.
- A quantity has values \(r(3)=14\) and \(r(7)=6\). Find its average rate of change from \(3\) to \(7\), and interpret the sign.
- Explain why \(f(b)-f(a)/(b-a)\) is not, in general, the same calculator expression as \((f(b)-f(a))/(b-a)\).
- If both endpoint differences in an average-rate quotient are reversed, does the value change? Explain using the signs of the numerator and denominator.