Skip to main content
Mathematics LibreTexts

1.4: Function Notation

  • Page ID
    119144
  • \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)

    \( \newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\)

    ( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\)

    \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)

    \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\)

    \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)

    \( \newcommand{\Span}{\mathrm{span}}\)

    \( \newcommand{\id}{\mathrm{id}}\)

    \( \newcommand{\Span}{\mathrm{span}}\)

    \( \newcommand{\kernel}{\mathrm{null}\,}\)

    \( \newcommand{\range}{\mathrm{range}\,}\)

    \( \newcommand{\RealPart}{\mathrm{Re}}\)

    \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)

    \( \newcommand{\Argument}{\mathrm{Arg}}\)

    \( \newcommand{\norm}[1]{\| #1 \|}\)

    \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)

    \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\AA}{\unicode[.8,0]{x212B}}\)

    \( \newcommand{\vectorA}[1]{\vec{#1}}      % arrow\)

    \( \newcommand{\vectorAt}[1]{\vec{\text{#1}}}      % arrow\)

    \( \newcommand{\vectorB}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vectorC}[1]{\textbf{#1}} \)

    \( \newcommand{\vectorD}[1]{\overrightarrow{#1}} \)

    \( \newcommand{\vectorDt}[1]{\overrightarrow{\text{#1}}} \)

    \( \newcommand{\vectE}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash{\mathbf {#1}}}} \)

    \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)

    \(\newcommand{\avec}{\mathbf a}\) \(\newcommand{\bvec}{\mathbf b}\) \(\newcommand{\cvec}{\mathbf c}\) \(\newcommand{\dvec}{\mathbf d}\) \(\newcommand{\dtil}{\widetilde{\mathbf d}}\) \(\newcommand{\evec}{\mathbf e}\) \(\newcommand{\fvec}{\mathbf f}\) \(\newcommand{\nvec}{\mathbf n}\) \(\newcommand{\pvec}{\mathbf p}\) \(\newcommand{\qvec}{\mathbf q}\) \(\newcommand{\svec}{\mathbf s}\) \(\newcommand{\tvec}{\mathbf t}\) \(\newcommand{\uvec}{\mathbf u}\) \(\newcommand{\vvec}{\mathbf v}\) \(\newcommand{\wvec}{\mathbf w}\) \(\newcommand{\xvec}{\mathbf x}\) \(\newcommand{\yvec}{\mathbf y}\) \(\newcommand{\zvec}{\mathbf z}\) \(\newcommand{\rvec}{\mathbf r}\) \(\newcommand{\mvec}{\mathbf m}\) \(\newcommand{\zerovec}{\mathbf 0}\) \(\newcommand{\onevec}{\mathbf 1}\) \(\newcommand{\real}{\mathbb R}\) \(\newcommand{\twovec}[2]{\left[\begin{array}{r}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\ctwovec}[2]{\left[\begin{array}{c}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\threevec}[3]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\cthreevec}[3]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\fourvec}[4]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\cfourvec}[4]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\fivevec}[5]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\cfivevec}[5]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\mattwo}[4]{\left[\begin{array}{rr}#1 \amp #2 \\ #3 \amp #4 \\ \end{array}\right]}\) \(\newcommand{\laspan}[1]{\text{Span}\{#1\}}\) \(\newcommand{\bcal}{\cal B}\) \(\newcommand{\ccal}{\cal C}\) \(\newcommand{\scal}{\cal S}\) \(\newcommand{\wcal}{\cal W}\) \(\newcommand{\ecal}{\cal E}\) \(\newcommand{\coords}[2]{\left\{#1\right\}_{#2}}\) \(\newcommand{\gray}[1]{\color{gray}{#1}}\) \(\newcommand{\lgray}[1]{\color{lightgray}{#1}}\) \(\newcommand{\rank}{\operatorname{rank}}\) \(\newcommand{\row}{\text{Row}}\) \(\newcommand{\col}{\text{Col}}\) \(\renewcommand{\row}{\text{Row}}\) \(\newcommand{\nul}{\text{Nul}}\) \(\newcommand{\var}{\text{Var}}\) \(\newcommand{\corr}{\text{corr}}\) \(\newcommand{\len}[1]{\left|#1\right|}\) \(\newcommand{\bbar}{\overline{\bvec}}\) \(\newcommand{\bhat}{\widehat{\bvec}}\) \(\newcommand{\bperp}{\bvec^\perp}\) \(\newcommand{\xhat}{\widehat{\xvec}}\) \(\newcommand{\vhat}{\widehat{\vvec}}\) \(\newcommand{\uhat}{\widehat{\uvec}}\) \(\newcommand{\what}{\widehat{\wvec}}\) \(\newcommand{\Sighat}{\widehat{\Sigma}}\) \(\newcommand{\lt}{<}\) \(\newcommand{\gt}{>}\) \(\newcommand{\amp}{&}\) \(\definecolor{fillinmathshade}{gray}{0.9}\)
    Topics Reviewed in a Typical Corequiste Course

    The following topics related to the material in this section are assumed prerequisites for this course. They are only covered if you are enrolled in a class with corequisite support:

    • Simplifying expressions using the Laws of Exponents
    • Finding the domains of radical functions (both even and odd roots, specifically)

    Topics that must be assumed prerequisites (even for a class with corequisite support) are:

    • Distributing and squaring polynomials
    • Solving "simple" rational equations (equations involving a single rational expression)
    Learning Objectives
    • Understand and use function notation.
    • Identify independent and dependent variables.
    • Find the implicit domain of a given function.
    • State the explicit domain of a function.
    • Use a piecewise-defined function to model a real-world situation.

    Function Notation and Evaluation

    In Section 1.3, we described a function as a special relation in which each \(x\)-coordinate is matched with only one \(y\)-coordinate. This section focuses more on the process by which the \(x\) is matched with the \(y\). Let's think of the domain of a function as a set of inputs and the range as a set of outputs. We can think of a function \(f\) as a process by which each input \(x\) is matched with only one output \(y\). Since the output is completely determined by the input \(x\) and the process \(f\), we symbolize the output with function notation: "\(f(x)\)," read "\(f\) of \(x\)." In other words, \(f(x)\) is the output which results by applying the process \(f\) to the input \(x\). In this case, the parentheses here do not indicate multiplication, as they do elsewhere in Algebra. This can confuse you if the context is unclear, so you must read carefully. This relationship is typically visualized using a diagram similar to Figure \( \PageIndex{1} \).

    Screen Shot 2022-03-09 at 2.23.02 PM.png
    Figure \( \PageIndex{1} \)

    The value of \(y\) depends entirely on the choice of \(x\). For this reason, \(x\) is often called the independent variable or argument of \(f\), whereas \(y\) is often called the dependent variable.

    As we shall see, the process of a function \(f\) is usually described using an algebraic formula. For example, suppose a function \(f\) takes a real number and performs the following two steps, in sequence

    1. multiply by \(3\)
    2. add \(4\)

    If we choose \(5\) as our input, in step 1 we multiply by \(3\) to get \((5)(3) = 15\). In step 2, we add \(4\) to our result from step 1 which yields \(15 + 4 = 19\).

    Using function notation, we would write \(f(5) = 19\) to indicate that the result of applying the process \(f\) to the input \(5\) gives the output \(19\). In general, if we use \(x\) for the input, applying step 1 produces \(3x\). Following with step 2 produces \(3x+4\) as our final output. Hence for an input \(x\), we get the output \(f(x) = 3x + 4\). Notice that to check our formula for the case \(x=5\), we replace the occurrence of \(x\) in the formula for \(f(x)\) with \(5\) to get \(f(5) = 3(5) + 4 = 15 + 4 = 19\), as required.

    Example \( \PageIndex{1} \)

    Suppose a function \(g\) is described by applying the following steps, in sequence

    1. add \(4\)
    2. multiply by \(3\)

    Determine \(g(5)\) and find an expression for \(g(x)\).

    Solution
    Starting with \(5\), step (a) gives \(5+4 = 9\). Continuing with step (b), we get \((3)(9) = 27\). To find a formula for \(g(x)\), we start with our input \(x\). Step (a) produces \(x+4\). We now wish to multiply this entire quantity by \(3\), so we use a parentheses: \(3(x+4) = 3x + 12\). Hence, \(g(x) = 3x + 12\). We can check our formula by replacing \(x\) with \(5\) to get \(g(5) = 3(5) + 12 = 15 + 12 = 27 \, \checkmark\).

    Most of the functions we will encounter in this text will be described using formulas like the ones we developed for \(f(x)\) and \(g(x)\) above. Evaluating formulas using this function notation is critical for success in this and many other Mathematics courses.

    Example \( \PageIndex{2} \)

    Let \(f(x) = -x^2 + 3x + 4\)

    1. Find and simplify the following.
      1. \(f(-1)\), \(f(0)\), \(f(2)\)
      2. \(f(2x)\), \(2 f(x)\)
      3. \(f(x+2)\), \(f(x)+2\), \(f(x) + f(2)\)
    2. Solve \(f(x) = 4\).
    Solutions
    1.  
      1. To find \(f(-1)\), we replace every occurrence of \(x\) in the expression \(f(x)\) with \(-1\).\[\begin{array}{rclr}
        f(-1) & = & -(-1)^2 + 3(-1) + 4 & \\
        & = & -(1) + (-3) + 4 & \\
        & = & 0 & \\
        \end{array} \nonumber \]Similarly, \(f(0) = -(0)^2 + 3(0) + 4 = 4\), and \(f(2) = -(2)^2 + 3(2) + 4 = -4+6+4 = 6\).
      2. To find \(f(2x)\), we replace every occurrence of \(x\) with the quantity \(2x\).\[\begin{array}{rcl}
        f(2x) & = & -(2x)^2 + 3(2x) + 4 \\
        & = & -(4x^2) + 3(2x) + 4 \\
        & = & -4x^2+6x+4 \\ 
        \end{array} \nonumber \]The expression \(2f(x)\) means we multiply the expression \(f(x)\) by \(2\).\[\begin{array}{rcl}
         2f(x) & = & 2\left(-x^2 + 3x + 4\right) \\
        & = & -2x^2 + 6x + 8 \\
        \end{array} \nonumber \]
      3. To find \(f(x+2)\), we replace every occurrence of \(x\) with the quantity \(x+2\).\[ \begin{array}{rcl}
        f(x+2) & = & -(x+2)^2 + 3(x+2) + 4 \\
        & = & -\left(x^2 + 4x + 4\right) + (3x+6) + 4 \\
        & = & -x^2-4x-4+3x+6+4 \\
        & = & -x^2-x+6 \\
        \end{array} \nonumber \]To find \(f(x)+2\), we add \(2\) to the expression for \(f(x)\).\[ \begin{array}{rcl}
        f(x) + 2 & = & \left(-x^2 + 3x + 4\right) + 2 \\
        & = & -x^2 + 3x + 6 \\
        \end{array} \nonumber \]From our work above, we see \(f(2) = 6\) so that\[ \begin{array}{rcl}
        f(x) + f(2) & = & \left(-x^2 + 3x + 4\right) + 6 \\
        & = & -x^2 + 3x + 10 \\
        \end{array} \nonumber \]
    2. Since \(f(x) = -x^2 + 3x + 4\), the equation \(f(x) = 4\) is equivalent to \(-x^2+3x+4 = 4\). Solving we get \(-x^2+3x = 0\), or \(x(-x+3) = 0\). We get \(x=0\) or \(x=3\), and we can verify these answers by checking that \(f(0) = 4\) and \(f(3) = 4\).

    A few notes about Example \( \PageIndex{2} \) are in order. First, note the difference between the answers for \(f(2x)\) and \(2f(x)\). For \(f(2x)\), we are multiplying the input by \(2\); for \(2 f(x)\), we are multiplying the output by \(2\). As we see, we get entirely different results. Along these lines, note that \(f(x+2)\), \(f(x) + 2\) and \(f(x) + f(2)\) are three different expressions as well. Even though function notation uses parentheses, as does multiplication, there is no general "distributive property" of function notation. This is such a common mistake that it merits some highlighting.

    Caution: Function Notation is NOT Multiplication!

    \( f(x) \) is not multiplication. Therefore, generally speaking, \[ f(Bx) \neq B f(x) \nonumber\] and \[ f(x + C) \neq f(x) + f(C). \nonumber\]Additionally, \[ f(x^n) \neq \left[ f(x) \right]^n. \nonumber \]

    Finally, referring back to Example \( \PageIndex{2} \), note the practice of using parentheses when substituting one algebraic expression into another; we highly recommend this practice as it will reduce careless errors.

    Finding the Domain of a Function

    Suppose now we wish to find \(r(3)\) for \(r(x) = \frac{2x}{x^2 - 9}\). Substitution gives\[r(3) = \dfrac{2(3)}{(3)^2-9} = \dfrac{6}{0}, \nonumber \]which is undefined. The number \(3\) is not an allowable input to the function \(r\); in other words, \(3\) is not in the domain of \(r\). Which other real numbers are forbidden in this formula? We think back to Arithmetic. The reason \(r(3)\) is undefined is because substitution results in a division by \(0\). To determine which other numbers result in such a transgression, we set the denominator equal to \(0\) and solve.\[\begin{array}{rrcl}
    & x^2 - 9 & = & 0 \\
    \implies & x^2 & = & 9 \\
    \implies & \sqrt{x^2} & = & \sqrt{9} \\
    \implies & x & = & \pm 3 \\
    \end{array} \nonumber \]As long as we substitute numbers other than \(3\) and \(-3\), the expression \(r(x)\) is a real number. Hence, we write our domain in interval notation as \((-\infty, -3) \cup (-3,3) \cup (3, \infty)\).

    When a formula for a function is given, we assume that the function is valid for all real numbers which make arithmetic sense when substituted into the formula. This set of numbers is often called the function's implied (or implicit) domain. At this stage, we need to avoid only two mathematical sins: division by \(0\) and extracting even roots of negative numbers. The following example illustrates these concepts.

    Example \( \PageIndex{3} \)

    Find the domain of the following functions.

    1. \(g(x) = \sqrt{4 - 3x}\)
    2. \(h(x) = \sqrt[5]{4 - 3x}\)
    3. \(f(x) = \dfrac{2}{1 - \dfrac{4x}{x-3}}\)
    4. \(F(x) = \dfrac{\sqrt[4]{2x+1}}{x^2-1}\)
    5. \(r(t) = \dfrac{4}{6 - \sqrt{t+3}}\)
    6. \(I(x) = \dfrac{3x^2}{x}\)
    Solutions
    1. The potential disaster for \(g\) is if the radicand (the expression inside the radical) is negative. To avoid this, we set \(4 - 3x \geq 0\). From this, we get \(3x \leq 4\) or \(x \leq \frac{4}{3}\). What this shows is that as long as \(x \leq \frac{4}{3}\), the expression \(4 - 3x \geq 0\), and the formula \(g(x)\) returns a real number. Our domain is \(\left(-\infty, \frac{4}{3}\right]\).
    2. The formula for \(h(x)\) is hauntingly close to that of \(g(x)\) with one key difference - whereas the expression for \(g(x)\) includes an even-indexed root (namely a square root), the formula for \(h(x)\) involves an odd-indexed root (the fifth root). Since odd roots of real numbers (even negative real numbers) are real numbers, there is no restriction on the inputs to \(h\). Hence, the domain is \((-\infty, \infty)\).
    3. There are two denominators in the expression for \(f\). We need to ensure neither is \(0\). To that end, we set each denominator equal to \(0\) and solve. For the "small" denominator, we get \(x - 3 = 0\) or \(x=3\). For the "large" denominator, we get\[\begin{array}{rrcl}
      & 1 - \dfrac{4x}{x-3} & = & 0 \\
      \\
      \implies & 1 & = & \dfrac{4x}{x-3} \\
      \\
      \implies & (1)(x-3) & = & \left(\dfrac{4x}{\cancel{x-3}}\right)\cancel{(x-3)} \\
      \\
      \implies & x - 3 & = & 4x \\
      \\
      \implies & -3 & = & 3x \\
      \\
      \implies & -1 & = & x \\
      \end{array} \nonumber \]So we get two real numbers which make denominators \(0\), namely \(x = -1\) and \(x=3\). Our domain is all real numbers except \(-1\) and \(3\): \((-\infty, -1) \cup (-1,3) \cup (3, \infty)\).
    4. In finding the domain of \(F\), we notice that we have two potentially hazardous issues: not only do we have a denominator, but we also have a fourth (even-indexed) root. Our strategy is to determine each part's restrictions and select the real numbers that satisfy both conditions. To satisfy the fourth root, we require \(2x+1 \geq 0\). From this we get \[2x \geq -1 \implies x \geq -\frac{1}{2}.\nonumber\]Next, we round up the values of \(x\) which could cause trouble in the denominator by setting the denominator equal to \(0\). We get \(x^2 - 1=0\), or \(x = \pm 1\). Hence, in order for a real number \(x\) to be in the domain of \(F\), \(x \geq -\frac{1}{2}\) but \(x \neq \pm 1\). In interval notation, this set is \(\left[ -\frac{1}{2}, 1 \right) \cup (1, \infty)\).
    5. Don't be put off by the \(t\) here. It is an independent variable representing a real number, just like \(x\) does, and is subject to the same restrictions. As in the previous problem, we have a double-danger: a square root and a denominator. We need a non-negative radicand to satisfy the square root, so we set\[t + 3 \geq 0 \implies t \geq -3.\nonumber \]Setting the denominator equal to zero gives \(6 - \sqrt{t+3} =0\), or \(\sqrt{t+3} = 6\). Squaring both sides gives \(t+3 = 36\), or \(t = 33\). Since we squared both sides in the course of solving this equation, we need to check our answer. Sure enough, when \(t=33\), \(6 - \sqrt{t+3} = 6 - \sqrt{36} = 0\), so \(t=33\) will cause problems in the denominator. At last we can find the domain of \(r\): we need \(t \geq -3\), but \(t \neq 33\). Our final answer is \([-3, 33) \cup (33, \infty)\).
    6. It’s tempting to simplify \(I(x) = \frac{3x^2}{x} = 3x\), and, since there are no longer any denominators, claim that there are no longer any restrictions. However, in simplifying \(I(x)\), we are assuming \(x \neq 0\), since \(\frac{0}{0}\) is undefined.1 Proceeding as before, we find the domain of \(I\) to be all real numbers except \(0\): \((-\infty, 0) \cup (0, \infty)\).

    It is worth reiterating the importance of finding the domain of a function before simplifying, as evidenced by the function \(I\) in the previous example. Even though the formula \(I(x)\) simplifies to \(3x\), it would be inaccurate to write \(I(x) = 3x\) without adding the stipulation that \(x \neq 0\). It would be analogous to not reporting taxable income or some other sin of omission.

    Caution: Check for Extraneous Solutions!

    In Example \( \PageIndex{3e} \), I stated that we needed to check our solution after squaring both sides of \(\sqrt{t+3} = 6\). You must check your solutions whenever you raise both sides of an equation to an even power or multiply both sides of an equation by an expression involving a variable!

    Modeling with Functions

    The importance of Mathematics to our society lies in its value in approximating or modeling real-world phenomena. Whether it be used to predict the high temperature on a given day, determine the hours of daylight on a given day, or predict population trends of various and sundry real and mythical beasts, Mathematics is second only to literacy in the importance of humanity’s development.

    It is important to remember that whenever Mathematics is used to approximate reality, there are always limitations to the model. For example, suppose grapes are on sale at the local market for \(\$1.50\) per pound. Then one pound of grapes costs \(\$1.50\), two pounds of grapes cost \(\$3.00\), and so forth. Suppose we want to develop a formula that relates the cost of buying grapes to the amount purchased. Since these two quantities vary from situation to situation, we assign them variables. Let \(c\) denote the cost of the grapes and let \(g\) denote the amount of grapes purchased. To find the cost \(c\) of the grapes, we multiply the amount of grapes \(g\) by the price \(\$1.50\) dollars per pound to get \[c = 1.5 g. \nonumber \]For the units to be correct in the formula, \(g\) must be measured in pounds of grapes, and the computed value of \(c\) must be measured in dollars. Since we’re interested in finding the cost \(c\) given an amount \(g\), we think of \(g\) as the independent variable and \(c\) as the dependent variable. Using the language of function notation, we write \[c(g) = 1.5 g, \nonumber \]where \(g\) is the amount of grapes purchased (in pounds) and \(c(g)\) is the cost (in dollars). For example, \(c(5)\) represents the cost, in dollars, to purchase \(5\) pounds of grapes. In this case, \(c(5) = 1.5(5) = 7.5\), so it would cost \(\$ 7.50\). If, on the other hand, we wanted to find the amount of grapes we can purchase for \(\$5\), we would need to set \(c(g) = 5\) and solve for \(g\). In this case, \(c(g)=1.5g\), so solving \(c(g) = 5\) is equivalent to solving \(1.5g = 5\) Doing so gives \(g = \frac{5}{1.5} = 3.\overline{3}\). This means we can purchase exactly \(3.\overline{3}\) pounds of grapes for \(\$5\). Of course, you would be hard-pressed to buy exactly \(3.\overline{3}\) pounds of grapes, and this leads us to our next topic of discussion, the applied domain (or explicit domain) of a function.

    Even though, mathematically, \(c(g) = 1.5g\) has no domain restrictions (there are no denominators and no even-indexed radicals), there are certain values of \(g\) that don’t make any physical sense. For example, \(g = -1\) corresponds to "purchasing" \(-1\) pounds of grapes. Also, unless the "local market" mentioned is the State of California (or some other exporter of grapes), it doesn’t make much sense for \(g = 500,000,000\), either. So, the reality of the situation limits what \(g\) can be, and these limits determine the applied domain of \(g\). Typically, an applied domain is stated explicitly. In this case, it would be common to see something like \[c(g) = 1.5g, \quad 0 \leq g \leq 100, \nonumber \]meaning the number of pounds of grapes purchased is limited from \(0\) up to \(100\). The upper bound here, \(100\), may represent the inventory of the market or some other limit as set by local policy or law. Even with this restriction, our model has its limitations. As we saw above, it is virtually impossible to buy exactly \(3.\overline{3}\) pounds of grapes so that our cost is exactly \(\$5\). In this case, being sensible shoppers, we would most likely "round down" and purchase \(3\) pounds of grapes or however close the market scale can read to \(3.\overline{3}\) without being over. It is time for a more sophisticated example.

    Example \( \PageIndex{4} \)

    The height \(h\) in feet of a model rocket above the ground \(t\) seconds after lift-off is given by \[h(t) = \left\{ \begin{array}{rcl}
    -5t^2 + 100t, & \text{ if } & 0 \leq t \leq 20 \\
    0, & \text{ if } & t > 20 \\
    \end{array} \right. \nonumber \]

    1. Find and interpret \(h(10)\) and \(h(60)\).
    2. Solve \(h(t) = 375\) and interpret your answers.
    Solutions
    1. We first note that the independent variable here is \(t\), chosen because it represents time. Secondly, the function is broken up into two rules: one formula for values of \(t\) between \(0\) and \(20\) inclusive, and another for values of \(t\) greater than 20. Since \(t=10\) satisfies the inequality \(0 \leq t \leq 20\), we use the first formula listed, \(h(t) = -5t^2 + 100t\), to find \(h(10)\). We get \[h(10) = -5(10)^2 + 100(10) = 500.\nonumber\]Since \(t\) represents the number of seconds since lift-off and \(h(t)\) is the height above the ground in feet, the equation \(h(10) = 500\) means that \(10\) seconds after lift-off, the model rocket is \(500\) feet above the ground. To find \(h(60)\), we note that \(t=60\) satisfies \(t > 20\), so we use the rule \(h(t) = 0\). This function returns a value of \(0\) regardless of what value is substituted in for \(t\), so \(h(60) = 0\). This means that \(60\) seconds after lift-off, the rocket is \(0\) feet above the ground; in other words, a minute after lift-off, the rocket has already returned to Earth.
    2. Since the function \(h\) is defined in pieces, we need to solve \(h(t) = 375\) in pieces. For \(0 \leq t \leq 20\), \(h(t) = -5t^2 + 100t\), so for these values of \(t\), we solve \(-5t^2 + 100t = 375\). Rearranging terms, we get \(5t^2 - 100t + 375 = 0\), and factoring gives \(5(t-5)(t-15) = 0\). Our answers are \(t=5\) and \(t=15\), and since both of these values of \(t\) lie between \(0\) and \(20\), we keep both solutions. For \(t>20\), \(h(t) = 0\), and in this case, there are no solutions to \(0=375\). In terms of the model rocket, solving \(h(t) = 375\) corresponds to finding when, if ever, the rocket reaches \(375\) feet above the ground. Our two answers, \(t=5\) and \(t=15\) correspond to the rocket reaching this altitude twice – once \(5\) seconds after launch, and again \(15\) seconds after launch.

    The type of function in the previous example is called a piecewise-defined function, or "piecewise" function for short. Many real-world phenomena, such as income tax formulas (see the Internal Revenue Service’s website), are modeled by such functions.

    By the way, if we wanted to avoid using a piecewise function in Example \( \PageIndex{4} \), we could have used \(h(t) = -5t^2 + 100t\) on the explicit domain \(0 \leq t \leq 20\) because, after 20 seconds, the rocket is on the ground and stops moving. In many cases, piecewise functions are your only choice, so it’s best to understand them well.

    Mathematical modeling is not a one-section topic. It’s not even a one-course topic, as is evidenced by undergraduate and graduate courses in mathematical modeling offered at many universities. Thus, our goal in this section cannot possibly be to tell you the whole story. What we can do is get you started. As we study new classes of functions, we will see what phenomena they can be used to model. In that respect, mathematical modeling cannot be a topic in a book, but rather, must be a theme of the book. For now, we have you explore some fundamental models in the exercises because you need to crawl before you walk, and walk before you run. As we learn more about functions, we’ll help you build your own models and get you on your way to applying Mathematics to your world.


    Footnotes

    1 More precisely, the fraction \(\ \frac{0}{0}\) is an "indeterminate form," and Calculus is required to tame such beasts.


    1.4: Function Notation is shared under a CC BY-NC 3.0 license and was authored, remixed, and/or curated by LibreTexts.