Processing math: 100%
Skip to main content
Library homepage
 

Text Color

Text Size

 

Margin Size

 

Font Type

Enable Dyslexic Font
Mathematics LibreTexts

1.4: Functions

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

alt
Figure 1.3.1. Some graphs

For example, the square-root function y=f(x)=x is the rule which says, given an x-value, take the nonnegative number whose square is x. This rule only makes sense if x is positive or zero. We say that the domain of this function is x0, or more formally {xRx0}. Alternately, we can use interval notation, and write that the domain is 0,). (In interval notation, square brackets mean that the endpoint is included, and a parenthesis means that the endpoint is not included.) The fact that the domain of y=x is [0,) means that in the graph of this function (see figure 1.3.1) we have points (x,y) only above x-values on the right side of the x-axis.

Another example of a function whose domain is not the entire x-axis is: y=f(x)=1/x, the reciprocal function. We cannot substitute x=0 in this formula. The function makes sense, however, for any nonzero x, so we take the domain to be:

{xRx0.}

The graph of this function does not have any point (x,y) with x=0. As x gets close to 0 from either side, the graph goes off toward infinity. We call the vertical line x=0 an asymptote.

To summarize, two reasons why certain (x\)-values are excluded from the domain of a function are that (i) we cannot divide by zero, and (ii) we cannot take the square root of a negative number. We will encounter some other ways in which functions might be undefined later.

Another reason why the domain of a function might be restricted is that in a given situation the x-values outside of some range might have no practical meaning. For example, if y is the area of a square of side x, then we can write y=f(x)=x2. In a purely mathematical context the domain of the function y=x2 is all of R. But in the story-problem context of finding areas of squares, we restrict the domain to positive values of x, because a square with negative or zero side makes no sense.

In a problem in pure mathematics, we usually take the domain to be all values of x at which the formulas can be evaluated. But in a story problem there might be further restrictions on the domain because only certain values of x are of interest or make practical sense.

In a story problem, often letters different from x and y are used. For example, the volume V of a sphere is a function of the radius r, given by the formula V=f(r)=4/3πr3. Also, letters different from f may be used. For example, if y is the velocity of something at time t, we may write y=v(t) with the letter v (instead of f) standing for the velocity function (and t playing the role of x).

The letter playing the role of x is called the independent variable, and the letter playing the role of y is called the dependent variable (because its value "depends on'' the value of the independent variable). In story problems, when one has to translate from English into mathematics, a crucial step is to determine what letters stand for variables. If only words and no letters are given, then we have to decide which letters to use. Some letters are traditional. For example, almost always, t stands for time.

This formula makes mathematical sense for any x, but in the story problem the domain is much less. In the first place, x must be positive. In the second place, it must be less than half the length of either of the sides of the cardboard. Thus, the domain is {xR0<x<12(minimum of a and b)}. In interval notation we write: the domain is the interval (0,min(a,b)/2). (You might think about whether we could allow 0 or min(a,b)/2 to be in the domain. They make a certain physical sense, though we normally would not call the result a box. If we were to allow these values, what would the corresponding volumes be? Does that make sense?)
alt
First method. Factor 4xx2 as x(4x). The product of two numbers is positive when either both are positive or both are negative, i.e., if either x>0 and 4x>0, or else x<0 and 4x<0. The latter alternative is impossible, since if x is negative, then 4x is greater than 4, and so cannot be negative. As for the first alternative, the condition 4x>0 can be rewritten (adding x to both sides) as 4>x, so we need: x>0 and 4>x (this is sometimes combined in the form 4>x>0, or, equivalently, 0<x<4). In interval notation, this says that the domain is the interval (0,4).
  • Second method. Write 4xx2 as (x24x), and then complete the square, obtaining ((x2)24)=4(x2)2. For this to be positive we need (x2)2<4, which means that x2 must be less than 2 and greater than 2: 2<x2<2. Adding 2 to everything gives 0<x<4. Both of these methods are equally correct; you may use either in a problem of this type.
  • alt
    Figure 1.3.3. A velocity function

    Not all functions are given by formulas at all. A function can be given by an experimentally determined table of values, or by a description other than a formula. For example, the population y of the U.S. is a function of the time t: we can write y=f(t). This is a perfectly good function---we could graph it (up to the present) if we had data for various t---but we can't find an algebraic formula for it.

    Contributors

    David Guichard (Whitman College)

    • Integrated by Justin Marshall.


    This page titled 1.4: Functions is shared under a CC BY-NC-SA 4.0 license and was authored, remixed, and/or curated by David Guichard via source content that was edited to the style and standards of the LibreTexts platform.

    • Was this article helpful?

    Support Center

    How can we help?