Expecting a Discontinuity in Piecewise Function on TI-89 but finding Unexpected Results

825 Views Asked by At

When I look at the following function $f(x)$, it would seem to me that because there are no $\le$ or $\ge$ inequalities included where the function's formula changes (for the parts relating to 7,) the integer 7 should (most likely) not be included in the line of this graphed function for $x$.

$$ f(x)=\begin {cases} \frac{5}{x-10}& x \le 5 \\\frac{5}{5x-30}& 5 \lt x \lt 7\\\frac{x-2}{12-x}& x \gt 7 \end {cases} $$

But when I go to graph the line (and subsequently check the function's data table for values) I find that the line of this function actually appears to continue through the integer 7 on my TI-89 calculator (and I am getting a defined value of 1. for $y$ when $x$ equals 7!)

Here is the nested when() functions I am using to graph this on the calculator:

when(x<7, when(x<=5, ((5)/(x-10)), ((5)/(5x-30))), ((x-2)/(12-x)))

How is it possible for $f(x)$ to be defined at the integer 7 if the integer 7 is being skipped in the rules for the function itself?

2

There are 2 best solutions below

0
On BEST ANSWER

Unfortunately, this ended up being an issue with the nested when() functions within the overall $f(x)$ function on a TI-89 calculator. Nested when() statements are great for when there are no gaps between areas where the formula changes in a piecewise function. But when there are gaps, nested when() functions can get pretty complicated.

Instead of using nested when() functions (when there is a gap present in the line being graphed,) it is possible to just define this piecewise function as an entire user-defined function (using the Func command on the calculator,) like this:

Func: If x<=5 Then:Return (5)/(x-10):ElseIf 5<x<7 Then:Return (5)/(5x-30):ElseIf x>7 Then:Return (x-2)/(12-x):Else:Return -1:EndIf:EndFunc

After using this newly-created function on the calculator, when checking the $f(7)$ in the table of the graphed function, 7 is now undefined* (as expected.)

*Note: "undefined" in this case is displayed as -1 until I can find a better way to represent that the value does not exist at 7.

4
On

You are correct that the function is not defined at $x=7$. The gap is just the one point, however, and the limit from both sides is $1$. I am not surprised the graph looks like it goes through $(7,1)$ but it shouldn't be reporting a value at $7$.