The relation \(f\) is defined by \(f(x)=\begin{cases}x^2, 0 \leq x \leq 3 \\ 3x, 3 \leq x \leq 10\end{cases}\)
The relation \(g\) is defined by \(g(x)=\begin{cases}x^2, 0 \leq x \leq 2 \\ 3x, 2 \leq x \leq 10\end{cases}\)
Show that \(f\) is a function and \(g\) is not a function.
Show solutionHide solution
A relation from a set to another set is a function if every element of the domain is assigned to exactly one element of the codomain. In other words, for each input \(x\) there must be one and only one output value.
Here both relations are defined piecewise, and the two pieces overlap at the joining point. We must check what happens at that overlap.
Checking \(f\)For \(f\), the pieces are
\[f(x)=x^2 \quad \text{for } 0\le x\le 3,\]
\[f(x)=3x \quad \text{for } 3\le x\le 10.\]
The only input that belongs to both pieces is \(x=3\). At this point:
\[\text{first piece: } f(3)=3^2=9,\]
\[\text{second piece: } f(3)=3\times 3=9.\]
Both pieces give the same value, \(9\). For every other \(x\) in \([0,10]\), exactly one piece applies, so there is exactly one output. Therefore \(f\) assigns a unique value to every input in its domain, and so \(f\) is a function.
Checking \(g\)For \(g\), the pieces are
\[g(x)=x^2 \quad \text{for } 0\le x\le 2,\]
\[g(x)=3x \quad \text{for } 2\le x\le 10.\]
The overlapping input is \(x=2\). At this point:
\[\text{first piece: } g(2)=2^2=4,\]
\[\text{second piece: } g(2)=3\times 2=6.\]
So the input \(2\) is assigned two different values, \(4\) and \(6\). A function cannot give two outputs for the same input. Hence \(g\) is not a function.
Conclusion\(f\) is a function because its two pieces agree at the common point \(x=3\), giving the single value \(9\).
\(g\) is not a function because at the common point \(x=2\) the two pieces give different values, \(4\) and \(6\).