Skip to main content
Mathematics LibreTexts

1.1: The Limit of a Function

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

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

    \( \newcommand{\dsum}{\displaystyle\sum\limits} \)

    \( \newcommand{\dint}{\displaystyle\int\limits} \)

    \( \newcommand{\dlim}{\displaystyle\lim\limits} \)

    \( \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{\longvect}{\overrightarrow}\)

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

    \(\newcommand{\ket}[1]{\left| #1 \right>}\)
    \(\newcommand{\bra}[1]{\left< #1 \right|}\)
    \(\newcommand{\braket}[2]{\left< #1 \vphantom{#2} \right| \left. #2 \vphantom{#1} \right>}\)
    \(\newcommand{\braopket}[3]{\left< #1 \vphantom{#2}\vphantom{#3} \right| #2 \vphantom{#1}\vphantom{#3} \left| #3 \vphantom{#1}\vphantom{#2} \right>}\)
    \(\newcommand{\qmvec}[1]{\mathbf{\vec{#1}}}\)
    \(\newcommand{\op}[1]{\hat{\mathbf{#1}}}\)
    \(\newcommand{\expect}[1]{\langle #1 \rangle}\)
    \(\newcommand{\dfn}[1]{\emph{\textbf{#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}\)

    Calculus has been called the study of continuous change, and the limit is the basic concept that allows us to describe and analyze such change. An understanding of limits is necessary to understand derivatives, integrals and other fundamental topics of calculus.

    The Idea (Informally)

    The limit of a function at a point helps describe the behavior of the function when the input variable is near — but does not equal — a specified number:

    A graph of the function y = f(x) (red curve) that has a removable discontinuity (a hole) at x=c. The function approaches the height L from both the left and the right, but an open circle at (c, L) shows the function is undefined at x=c. This illustrates that the limit as x approaches c is L.

    If the values of \(f(x)\) are all “very close” — as close as we want — to one number \(L\) as we restrict values of \(x\) to be “very close” to (but not equal to) a number \(c\), then we say:

    “the limit of \(f(x)\), as \(x\) approaches \(c\), is \(L\)”

    and we write:

    \( \displaystyle \lim_{x \to c} \, f(x) = L\)

    Note

    The symbol \(\rightarrow\) means “approaches” or “gets very close to.”

    It is very important to note that:

    \(f(c)\) is a single number that describes the behavior (value) of \(f\) at the point \(x = c\)

    while:

    \(\displaystyle \lim_{x \to c} \, f(x)\) is a single number that describes the behavior of \(f\) near (but not at) the point \(x = c\)

    If we have a graph of the function \(f(x)\) near \(x = c\), then it is often easy to estimate \(\displaystyle \lim_{x \to c} \, f(x)\).

    Example \(\PageIndex{1}\)

    Use the graph of \(y = f(x)\) given here:

    A blue graph of the function y = f(x) showing multiple discontinuities and limit behavior. At x=1, the function has a jump discontinuity: the left-hand limit is 2 (solid point), and the right-hand limit is approximately 2.8 (open point). At x=2, the function value is 3 (open point), and the limit from both sides is 3. At x=3, the function value is 2 (solid point), the left-hand limit is 1 (open point), and the right-hand limit is 0.8 (open point). At x=4, the function value is 1 (solid point), the left-hand limit is 2 (open point), and the right-hand limit is less than 2.

    to estimate the following limits.

    1. \(\displaystyle \lim_{x \to 1} \, f(x)\)
    2. \(\displaystyle \lim_{x \to 2} \, f(x)\)
    3. \(\displaystyle \lim_{x \to 3} \, f(x)\)
    4. \(\displaystyle \lim_{x \to 4} \, f(x)\)
    Solution

    Each of these limits involves a different issue, as you may be able to tell from the graph.

    1. \(\displaystyle \lim_{x \to 1} \, f(x) =2\): When \(x\) is very close to \(1\), the values of \(f(x)\) appear to be very close to \(y = 2\). In this example, it happens that \(f(1) = 2\), but that is irrelevant for the limit. The only thing that matters is what happens for \(x\) {\em close to} \(1\) but with \(x \neq 1\).
    2. \(f(2)\) is undefined, but we only care about the behavior of \(f(x)\) for \(x\) {\em close to} \(2\), where the values of \(f(x)\) appear to be close to \(3\). If we restrict \(x\) close enough to \(2\), the values of \(f(x)\) will be as close to \(3\) as we want, so \(\displaystyle \lim_{x \to 2} \, f(x) =3\).
    3. When \(x\) is close to \(3\), the values of \(f(x)\) appear to be close to \(1\), so \(\displaystyle \lim_{x \to 3} \, f(x) =1\). For this limit it is completely irrelevant that \(f(3) = 2\): we only care about what happens to \(f(x)\) for \(x\) close to (but not equal to) \(3\).
    4. This one is harder and we need to be careful. When \(x\) is close to \(4\) and slightly {\em less than} \(4\) (\)x\) is just to the left of \(4\) on the \(x\)-axis) then the values of \(f(x)\) are close to \(2\). But if \(x\) is close to \(4\) and slightly larger than \(4\) then the values of \(f(x)\) are close to \(3\).

      If we know only that \(x\) is very close to \(4\), then we cannot say whether \(y = f(x)\) will be close to \(2\) or close to \(3\) — it depends on whether \(x\) is on the right or the left side of \(4\). In this situation, the \(f(x)\) values are not all close to a single number when \(x\) is close to \(4\), so we say that \(\displaystyle \lim_{x \to 4} \, f(x)\) does not exist.

    In (d), it is irrelevant that \(f(4) = 1\). The limit, as \(x\) approaches \(4\), would still cease to exist if \(f(4)\) was \(3\) or \(2\) or anything else.

    Practice \(\PageIndex{1}\)

    Use the graph of \(y = f(x)\) here:

    A blue graph of the function y = f(x) showing multiple jump discontinuities. At x=1, the function has a jump from y=2 (solid point) to y approximately 0.5 (open point). At x=2, the function jumps from y approximately 1.7 (solid point) to y=1 (solid point). At x=3, the function jumps from y=2 (solid point) to y=1 (open point). At x=4, the function has another jump discontinuity.

    to estimate the following limits:

    1. \(\displaystyle \lim_{x \to 1} \, f(x)\)
    2. \(\displaystyle \lim_{t \to 2} \, f(t)\)
    3. \(\displaystyle \lim_{x \to 3} \, f(x)\)
    4. \(\displaystyle \lim_{w \to 4} \, f(w)\)
    Answer
    1. \(2\)
    2. \(2\)
    3. does not exist (no limit)
    4. \(1\)
    Example \(\PageIndex{2}\)

    Determine the value of \(\displaystyle \lim_{x \to 3} \, \frac{2x^2 - x - 1}{x - 1}\).

    Solution

    We need to investigate the values of \(f(x) = \frac{2x^2 - x - 1}{x - 1}\) when \(x\) is close to \(3\). If the \(f(x)\) values are all arbitrarily close to — or even equal to — some number \(L\), then \(L\) will be the limit.

    One way to keep track of both the \(x\) and the \(f(x)\) values is to set up a table and to pick several \(x\) values that get closer and closer (but not equal) to \(3\).

    We can pick some values of \(x\) that approach \(3\) from the left, say \(x = 2.91\), \(2.9997\), \(2.999993\) and \(2.9999999\), and some values of \(x\) that approach \(3\) from the right, say \(x = 3.1\), \(3.004\), \(3.0001\) and \(3.000002\). The only thing important about these particular values for \(x\) is that they get closer and closer to \(3\) without actually equaling \(3\). You should try some other values “close to \(3\)” to see what happens. Our table of values is:

    \(x\) \(f(x)\) \(x\) \(f(x)\)
    \(2.9\) \(6.82\) \(3.1\) \(7.2\)
    \(2.9997\) \(6.9994\) \(3.004\) \(7.008\)
    \(2.999993\) \(6.999986\) \(3.0001\) \(7.0002\)
    \(2.9999999\) \(6.9999998\) \(3.000002\) \(7.000004\)
    \(\downarrow\) \(\downarrow\) \(\downarrow\) \(\downarrow\)
    \(3\) \(7\) \(3\) \(7\)

    As the \(x\) values get closer and closer to \(3\), the \(f(x)\) values are all close to \(7\). In fact, we can get \(f(x)\) as close to \(7\) as we want (“arbitrarily close”) by taking the values of \(x\) very close (“sufficiently close”) to \(3\). We write:\[\lim_{x \to 3} \, \frac{2x^2 - x - 1}{x - 1} = 7\nonumber\]Instead of using a table of values, we could have graphed \(y = f(x)\) for \(x\) close to \(3\):

    A red continuous line representing the function y = f(x) near x=3. A solid red dot at (3, 7) illustrates that the limit as x approaches 3 is 7, and the function value f(3) is also 7.

    and used the graph to answer the limit question. This graphical approach is easier, particularly if you have a calculator or computer do the graphing work for you, but it is really very similar to the “table of values” method: in each method you need to evaluate \(y = f(x)\) at many values of \(x\) near \(3\).

    In the previous example, you might have noticed that if we just evaluate \(f(3)\), then we get the correct answer, \(7\). That works for this particular problem, but it often fails. The next example (identical to the previous one, except \(x \rightarrow 1\)) illustrates one such difficulty.

    Example \(\PageIndex{3}\)

    Find \(\displaystyle \lim_{x \to 1} \, \frac{2x^2 - x - 1}{x - 1}\).

    Solution

    You might try to evaluate \(f(x) = \frac{2x^2 - x - 1}{x - 1}\) at \(x = 1\), but \(f(1) = \frac00\), so \(f\) is not defined at \(x = 1\).

    It is tempting — but wrong — to conclude that this function does not have a limit as \(x\) approaches \(1\).

    Table Method: Trying some “test” values for \(x\) that get closer and closer to \(1\) from both the left and the right, we get:

    \(x\) \(f(x)\) \(x\) \(f(x)\)
    \(0.9\) \(2.82\) \(1.1\) \(3.2\)
    \(0.9998\) \(2.9996\) \(1.003\) \(3.006\)
    \(0.999994\) \(2.999988\) \(1.0001\) \(3.0002\)
    \(0.9999999\) \(2.9999998\) \(1.000007\) \(3.000014\)
    \(\downarrow\) \(\downarrow\) \(\downarrow\) \(\downarrow\)
    \(1\) \(3\) \(1\) \(3\)

    The function \(f\) is not defined at \(x = 1\), but when \(x\) gets close to \(1\), the values of \(f(x)\) are very close to \(3\). We can ensure that \(f(x)\) is as close to \(3\) as we want by restricting \(x\) to be very close to \(1\), so:\[\lim_{x \to 1} \, \frac{2x^2 - x - 1}{x - 1} = 3\nonumber\]

    Graph Method: We can graph \(y = f(x) = \frac{2x^2 - x - 1}{x - 1}\) for \(x\) close to \(1\):

    A graph showing the function y = (2x^2 - x - 1) / (x - 1) as a straight red line near x=1. An open circle (removable discontinuity) is shown at (1, 3). This illustrates that the limit as x approaches 1 is 3, even though the function is undefined at x=1.

    and notice that whenever \(x\) is close to \(1\), the values of \(y = f(x)\) are close to \(3\); \(f\) is not defined at \(x = 1\), so the graph has a hole above \(x = 1\), but we only care about what \(f(x)\) is doing for \(x\) close to but not equal to \(1\).

    Algebra Method: We could have found the same result by noting:\[f(x) = \frac{2x^2 - x - 1}{x - 1} = \frac{(2x+1)(x-1)}{x-1} = 2x+1\nonumber\]as long as \(x \neq 1\). The &ldquo;\(\)x\rightarrow 1\)&rdquo; part of the limit means that \(x\) is close to \(1\) but not equal to \(1\), so our division step is valid and:\[\lim_{x \to 1} \, \frac{2x^2 - x - 1}{x - 1} = \lim_{x \to 1} \, \left[2x+1\right] = 3\nonumber\]which is the same answer we obtained using the first two methods.

    Three Methods for Evaluating Limits

    The previous example utilized three different methods, each of which led us to the same answer for the limit.

    The Algebra Method

    The algebra method involves algebraically simplifying the function before trying to evaluate its limit. Often, this simplification just means factoring and dividing, but sometimes more complicated algebraic or even trigonometric steps are needed.

    The Table Method

    To evaluate a limit of a function \(f(x)\) as \(x\) approaches \(c\), the table method involves calculating the values of \(f(x)\) for “enough” values of \(x\) very close to \(c\) so that we can “confidently” determine a limiting value of \(f(x)\). If \(f(x)\) is well behaved, we may not need to use very many values for \(x\). However, this method is usually used with complicated functions, and then we need to evaluate \(f(x)\) for lots of values of \(x\).

    A computer or calculator can often make the function evaluations easier, but their calculations are subject to “round off” errors. The result of any computer calculation that involves both large and small numbers should be viewed with some suspicion. For example, the function\[f(x) = \frac{\left((0.1)^x + 1 \right) - 1}{(0.1)^x} = \frac{(0.1)^x}{(0.1)^x} = 1\nonumber\]for every value of \(x\), and my calculator gives the correct answer for some values of \(x\): \(f(3) = 1\), and \(f(8)\) and \(f(9)\) both equal \(1\).

    But my calculator says \(\left((0.1)^{10} + 1\right) - 1 = 0\), so it evaluates \(f(10)\) to be \(0\), definitely an incorrect value.

    Your calculator may evaluate \(f(10)\) correctly, but try \(f(35)\) or \(f(107)\).

    Calculators are too handy to be ignored, but they are too prone to these types of errors to be believed uncritically. Be careful

    The Graph Method

    The graph method is closely related to the table method, but we create a graph of the function instead of a table of values, and then we use the graph to determine the limiting value of \(f(x)\) (if there is one).

    Which Method Should You Use?

    In general, the algebraic method is preferred because it is precise and does not depend on which values of \(x\) we chose or the accuracy of our graph or precision of our calculator. If you can evaluate a limit algebraically, you should do so. Sometimes, however, it will be very difficult to evaluate a limit algebraically, and the table or graph methods offer worthwhile alternatives. Even when you can algebraically evaluate the limit of a function, it is still a good idea to graph the function or evaluate it at a few points just to check that your algebraic answer is reasonable.

    The table and graph methods have the same advantages and disadvantages. Both can be used on complicated functions that are difficult to handle algebraically or whose algebraic properties you don't know.

    Often both methods can be easily programmed on a calculator or computer. However, these two methods are very time-consuming by hand and are prone to round-off errors on computers. You need to know how to use these methods when you can't figure out how to use the algebraic method, but you need to use these two methods warily.

    Example \(\PageIndex{4}\)

    Evaluate each limit.

    1. \(\displaystyle \lim_{x \to 0} \, \frac{x^2 +5x +6}{x^2+ 3x +2}\)
    2. \(\displaystyle \lim_{x \to -2} \, \frac{x^2 +5x +6}{x^2+ 3x +2}\)
    Solution

    The function in each limit is the same but \(x\) is approaching a different number in each of them.

    1. Because \(x\rightarrow 0\), we know that \(x\) is getting closer and closer to \(0\), so the values of the \(x^2\), \(5x\) and \(3x\) terms get as close to \(0\) as we want. The numerator approaches \(6\) and the denominator approaches \(2\), so the values of the whole function get arbitrarily close to \(\frac62 = 3\), the limit.
    2. As \(x\) approaches \(-2\), the numerator and denominator approach \(0\), and a small number divided by a small number can be almost anything — the ratio depends on the size of the top compared to the size of the bottom. More investigation is needed.

    Table Method: If we pick some values of \(x\) close to (but not equal to) \(-2\), we get the table:

    \(x\) \(x^2 + 5x + 6\) \(x^2 + 3x + 2\) \(\frac{x^2 +5x +6}{x^2+ 3x +2}\)
    \(-1.97\) \(0.0309\) \(-0.0291\) \(-1.061856\)
    \(-2.005\) \(-0.004975\) \(0.005025\) \(-0.990050\)
    \(-1.9998\) \(0.00020004\) \(-0.00019996\) \(-1.00040008\)
    \(-2.00003\) \(-0.00002999\) \(0.0000300009\) \(-0.9996666\)
    \(\downarrow\) \(\downarrow\) \(\downarrow\) \(\downarrow\)
    \(-2\) \(0\) \(0\) \(-1\)

    Even though the numerator and denominator are each getting closer and closer to \(0\), their ratio is getting arbitrarily close to \(-1\), which appears to be the limit.

    Graph Method: A graph of \(y = f(x) = \frac{x^2 +5x +6}{x^2+ 3x +2}\):

    A blue graph of the rational function y = (x^2 + 5x + 6) / (x^2 + 3x + 2). The graph shows a removable discontinuity (open circle) at x=-2 (where the limit is -1), and a vertical asymptote (dashed line) at x=-1. The curve decreases rapidly toward negative infinity as x approaches -1 from the left.

    appears to show that the values of \(f(x)\) are very close to \(-1\) when the \(x\)-values are close to \(-2\).

    Algebra Method: Factoring the numerator and denominator:\[f(x) = \frac{x^2 +5x +6}{x^2+ 3x +2} = \frac{(x+2)(x+3)}{(x+2)(x+1)}\nonumber\]We know \(x \rightarrow -2\) so \(x \neq -2\) and we can divide the top and bottom by \((x+2)\). Then\[f(x) = \frac{(x+3)}{(x+1)} \rightarrow \frac{1}{-1} = -1\nonumber\]

    You should remember the technique used in the previous example:

    If \(\displaystyle \ \lim_{x \to c}\, \frac{\mbox{polynomial}}{\mbox{another polynomial}} = \frac00\), try dividing the top and bottom by \(x - c\).

    Practice \(\PageIndex{2}\)

    Evaluate each limit.

    1. \(\displaystyle \lim_{x \to 2} \, \frac{x^2 - x - 2}{x-2}\)
    2. \(\displaystyle \lim_{t \to 0} \, \frac{t\cdot \sin(t)}{t^2+3t}\)
    3. \(\displaystyle \lim_{w \to 2} \, \frac{w-2}{\ln(\frac{w}{2})}\)
    Answer
    1. \(\displaystyle \lim_{x \to 2} \, \frac{(x +1 )(x - 2)}{x - 2} = \lim_{x \to 2} \, (x +1) = 3\)
    2. \(\displaystyle \lim_{t \to 0} \, \frac{t \sin(t)}{t(t + 3)} = \lim_{t\to 0} \, \frac{\sin(t)}{t + 3} = \frac03 = 0\)
    3. \(\displaystyle \lim_{w\to 2} \, \frac{w-2}{\ln(\frac{w}{2})} = 2\) To see this, make a graph or a table:
      \(w\) \( \frac{w − 2}{\ln(\frac{w}{2})}\) \(w\) \( \frac{w − 2}{\ln(\frac{w}{2})}\)
      \(2.2\) \(2.098411737\) \(1.9\) \(1.949572575\)
      \(2.01\) \(2.004995844\) \(1.99\) \(1.994995823\)
      \(2.003\) \(2.001499625\) \(1.9992\) \(1.999599973\)
      \(2.0001\) \(2.00005\) \(1.9999\) \(1.99995\)
      ↓ ↓ ↓ ↓
      \(2\) \(2\) \(2\) \(2\)

    One-Sided Limits

    Sometimes, what happens to us at a place depends on the direction we use to approach that place. If we approach Niagara Falls from the upstream side, then we will be 182 feet higher and have different worries than if we approach from the downstream side. Similarly, the values of a function near a point may depend on the direction we use to approach that point.

    If we let \(x\) approach \(3\) from the left (\)x\) is close to \(3\) and \(x < 3\)) then the values of \(\left\lfloor x\right\rfloor = \mbox{INT}(x)\) equal \(2\):

    A red graph of the Greatest Integer Function, y = INT(x), which is a step function. The graph consists of horizontal segments. Each segment starts with a closed red circle on the left and ends with an open red circle on the right, illustrating jump discontinuities at every integer.

    If we let \(x\) approach \(3\) from the right (\)x\) is close to \(3\) and \(x > 3\)) then the values of \(\left\lfloor x\right\rfloor = \mbox{INT}(x)\) equal \(3\).

    On the number line we can approach a point from the left or the right, and that leads to one-sided limits.

    Definition: Left and Right Limits

    The left limit as \(x\) approaches \(c\) of \(f(x)\) is \(L\) if the values of \(f(x)\) are as close to \(L\) as we want when \(x\) is very close to but left of \(c\) (\)x < c\)):\[\lim_{x\rightarrow c^{-}} \, f(x) = L\nonumber\]

    The right limit, \(\displaystyle \lim_{x\rightarrow c^{+}} \, f(x)\), requires that \(x\) lie to the right of \(c\) (\)x > c\)).

    Example \(\PageIndex{5}\)

    Evaluate \(\displaystyle \lim_{x\rightarrow 2^{-}} \, x - \left\lfloor x\right\rfloor\) and \(\displaystyle \lim_{x\rightarrow 2^{+}} \, x - \left\lfloor x\right\rfloor\).

    Solution

    The left-limit notation \(x \rightarrow 2^{-}\) requires that \(x\) be close to \(2\) and that \(x\) be to the left of \(2\), so \(x < 2\). If \(1 < x < 2\), then \(\left\lfloor x\right\rfloor = 1\) and:\[\lim_{x\rightarrow 2^{-}} \, x - \left\lfloor x\right\rfloor = \lim_{x\rightarrow 2^{-}} \, x - 1 = 2-1 = 1\nonumber\]If \(x\) is close to \(2\) and is to the right of \(2\), then \(2 < x < 3\), so \(\left\lfloor x\right\rfloor = 2\) and:\[\lim_{x\rightarrow 2^{+}} \, x - \left\lfloor x\right\rfloor = \lim_{x\rightarrow 2^{+}} \, x - 2 = 2-2 = 0\nonumber\]A graph of \(f(x) = x - \left\lfloor x\right\rfloor\) appears here:

    A red graph of the fractional part function, y = x - INT(x), or sawtooth wave. The function consists of a series of line segments with a slope of 1. Each segment begins at a solid red circle on the x-axis (e.g., at x=0, 1, 2) and ends at an open red circle near y=1 just before the next integer x-value.

    If the left and right limits of \(f(x)\) have the same value at \(x = c\):\[\lim_{x \to c^{-}} \, f(x) = \lim_{x \to c^{+}} \, f(x) = L\nonumber\]then the value of \(f(x)\) is close to \(L\) whenever \(x\) is close to \(c\), and it does not matter whether \(x\) is left or right of \(c\), so\[\lim_{x \to c} \, f(x) = L\nonumber\]

    Similarly, if:\[\lim_{x \to c} \, f(x) = L\nonumber\]then \(f(x)\) is close to \(L\) whenever \(x\) is close to \(c\) and less than \(c\), and whenever \(x\) is close to \(c\)
    and greater than \(c\), so:\[\lim_{x \to c^{-}} \, f(x) = \lim_{x \to c^{+}} \, f(x) = L\nonumber\]

    We can combine these two statements into a single theorem.

    One-Sided Limit Theorem

    \(\displaystyle \lim_{x \to c} \, f(x) = L\) if and only if \(\displaystyle \lim_{x \to c^{-}} \, f(x) = \lim_{x \to c^{+}} \, f(x) = L\

    This theorem has an important corollary.

    Corollary

    If \(\displaystyle \lim_{x \to c^{-}} \, f(x) \neq \lim_{x \to c^{+}} \, f(x)\), then \(\displaystyle \lim_{x \to c} \, f(x)\) does not exist.

    One-sided limits are particularly useful for describing the behavior of functions that have steps or jumps.

    To determine the limit of a function involving the greatest integer or absolute value or a multiline definition, definitely consider both the left and right limits.

    Practice \(\PageIndex{3}\)

    Use this graph:

    blue curve of a function y = f(x) showing multiple discontinuities and limit behavior. At x=0, the function approaches 2 from the left (open circle) but is defined at y=1 (solid point). At x=1, the limit approaches 1 (open circle), but the function value is -1 (solid point). At x=2, the limit approaches -1 (open circle), but the function value is 1 (solid point). At x=3, the limit approaches 1 (open circle), but the function value is 2 (solid point).

    to evaluate the one- and two-sided limits of \(f\) at \(x = 0\), \(1\), \(2\) and \(3\).

    Answer

    \(\displaystyle \lim_{x\to 0^{-}} \, f(x) = 1\), \(\displaystyle \lim_{x\to 0^{+}} \, f(x) = 2\), \(\displaystyle \lim_{x\to 0} \, f(x)\) DNE
    \(\displaystyle \lim_{x\to 1^{-}} \, f(x) = 1\), \(\displaystyle \lim_{x\to 1^{+}} \, f(x) = 1\), \(\displaystyle \lim_{x\to 1} \, f(x) = 1\)
    \(\displaystyle \lim_{x\to 2^{-}} \, f(x) = -1\), \(\displaystyle \lim_{x\to 2^{+}} \, f(x) = -1\), \(\displaystyle \lim_{x\to 2} \, f(x) = -1\)
    \(\displaystyle \lim_{x\to 3^{-}} \, f(x) = -1\), \(\displaystyle \lim_{x\to 3^{+}} \, f(x) = 1\), \(\displaystyle \lim_{x\to 3} \, f(x)\) DNE

    Practice \(\PageIndex{4}\)

    Defining \(f(x)\) as: \(f(x) = \left\{ \begin{array}{rl} { 1 } & { \text{if }x<1 } \\ { x } & { \text{if } 1 < x < 3 } \\ { 2 } & { \text{if } 3 < x } \end{array}\right.\) find the one- and two-sided limits of \(f\) at \(1\) and \(3\).

    Answer

    \(\displaystyle \lim_{x\to 1^{-}} \, f(x) = 1\), \(\displaystyle \lim_{x\to 1^{+}} \, f(x) = 1\), \(\displaystyle \lim_{x\to 1} \, f(x) = 1\)
    \(\displaystyle \lim_{x\to 3^{-}} \, f(x) = 3\), \(\displaystyle \lim_{x\to 3^{+}} \, f(x) = 2\), \(\displaystyle \lim_{x\to 3} \, f(x)\) DNE

    Problems

    1. Use the graph below to estimate the limits:
      red curve of a function y = f(x) showing multiple discontinuities. The function value is 2 at x=1 and x=2. The limit approaches 1 from the left at x=2 (open circle at (2, 1)). At x=3, the limit approaches 2 from the left and -1 from the right (open circle at (3, -1)).
      1. \(\displaystyle \lim_{x \to 1} \, f(x)\)
      2. \(\displaystyle \lim_{x \to 2} \, f(x)\)
      3. \(\displaystyle \lim_{x \to 3} \, f(x)\)
      4. \(\displaystyle \lim_{x \to 4} \, f(x)\)
    2. Use the graph below to estimate the limits.
      A blue curve of a function y = f(x) showing multiple discontinuities. The function value is 2 at x=2 (solid point). The function is undefined at x=1 (open circle at (1, 1)). At x=3, the function value is 1 (solid point), but the limit approaches 2 (open circle).
      1. \(\displaystyle \lim_{x \to 1} \, f(x)\)
      2. \(\displaystyle \lim_{x \to 2} \, f(x)\)
      3. \(\displaystyle \lim_{x \to 3} \, f(x)\)
      4. \(\displaystyle \lim_{x \to 4} \, f(x)\)
    3. Use the graph below to estimate the limits.
      A red curve of a function y = f(x) showing multiple discontinuities. At x=1, the function value is 2 (solid point), and the limit approaches -1 (open circle). At x=2, the function value is undefined, and the limit approaches 1 (open circle). At x=3, the function value is 1 (solid point), and the limit approaches 1.
      1. \(\displaystyle \lim_{x \to 1} \, f(2x)\)
      2. \(\displaystyle \lim_{x \to 2} \, f(x-1)\)
      3. \(\displaystyle \lim_{x \to 3} \, f(2x-5)\)
      4. \(\displaystyle \lim_{x \to 0} \, f(4+x)\)
    4. Use the graph below to estimate the limits.
      A blue curve of a function y = f(x) showing multiple discontinuities. At x=0, the function value is 2 (solid point), and the limit approaches 1 (open circle). At x=1, the function value is 1 (solid point), and the limit approaches 0. At x=3, the function value is 1 (solid point), and the limit approaches 2 (open circle).
      1. \(\displaystyle \lim_{x \to 1} \, f(3x)\)
      2. \(\displaystyle \lim_{x \to 2} \, f(x+1)\)
      3. \(\displaystyle \lim_{x \to 3} \, f(2x-4)\)
      4. \(\displaystyle \lim_{x \to 0} \, \left|f(4+x)\right|\)

    In Problems 5–11, evaluate (or estimate) each limit.

      1. \(\displaystyle \lim_{x \to 1} \, \frac{x^2 + 3x + 3}{x - 2}\)
      2. \(\displaystyle \lim_{x \to 2} \, \frac{x^2 + 3x + 3}{x - 2}\)
      1. \(\displaystyle \lim_{x \to 0} \, \frac{x+7}{x^2 + 9x + 14}\)
      2. \(\displaystyle \lim_{x \to 3} \, \frac{x+7}{x^2 + 9x + 14}\)
      3. \(\displaystyle \lim_{x \to -4} \, \frac{x+7}{x^2 + 9x + 14}\)
      4. \(\displaystyle \lim_{x \to -7} \, \frac{x+7}{x^2 + 9x + 14}\)
      1. \(\displaystyle \lim_{x \to 1} \, \frac{\cos(x)}{x}\)
      2. \(\displaystyle \lim_{x \to \pi} \, \frac{\cos(x)}{x}\)
      3. \(\displaystyle \lim_{x \to -1} \, \frac{\cos(x)}{x}\)
      1. \(\displaystyle \lim_{x \to 7} \, \sqrt{x-3}\)
      2. \(\displaystyle \lim_{x \to 9} \, \sqrt{x}-3\)
      3. \(\displaystyle \lim_{x \to 9} \, \frac{\sqrt{x}-3}{x-9}\)
      1. \(\displaystyle \lim_{x \to 0^{-}} \, \left|x\right|\)
      2. \(\displaystyle \lim_{x \to 0^{+}} \, \left|x\right|\)
      3. \(\displaystyle \lim_{x \to 0} \, \left|x\right|\)
      1. \(\displaystyle \lim_{x \to 0^{-}} \, \frac{\left|x\right|}{x}\)
      2. \(\displaystyle \lim_{x \to 0^{+}} \, \frac{\left|x\right|}{x}\)
      3. \(\displaystyle \lim_{x \to 0} \, \frac{\left|x\right|}{x}\)
      1. \(\displaystyle \lim_{x \to 5} \, \left|x-5\right|\)
      2. \(\displaystyle \lim_{x \to 3} \, \frac{\left|x-5\right|}{x-5}\)
      3. \(\displaystyle \lim_{x \to 5} \, \frac{\left|x-5\right|}{x-5}\)
    1. Find the one- and two-sided limits as \(x \rightarrow 0\), \(1\), and \(2\) of: \(f(x) = \left\{\begin{array}{rl}{ x } & { \text{if } x < 0 } \\ { \sin(x) } & { \text{if } 0 < x \leq 2 } \\ { 1 } & { \text{if } 2 < x } \end{array}\right.\)
    2. Find the one- and two-sided limits as \(x \rightarrow 1\), \(2\), \(4\) and \(5\) of \(g(x) = \left\{\begin{array}{rl} {1} & { \text{if }x\leq 2 } \\ { \frac{8}{x} } & { \text{if } 2 < x < 4 } \\ {6-x } & { \text{if } 4 < x } \end{array}\right.\)

    In 14–17, use a calculator or computer to get approximate answers accurate to 2 decimal places.

      1. \(\displaystyle \lim_{x \to 0} \, \frac{2^x - 1}{x}\)
      2. \(\displaystyle \lim_{x \to 1} \, \frac{\log_{10}(x)}{x-1}\)
      1. \(\displaystyle \lim_{x \to 0} \, \frac{3^x - 1}{x}\)
      2. \(\displaystyle \lim_{x \to 1} \, \frac{\ln(x)}{x-1}\)
      1. \(\displaystyle \lim_{x \to 5} \, \frac{\sqrt{x-1}-2}{x-5}\)
      2. \(\displaystyle \lim_{x \to 0} \, \frac{\sin(3x)}{5x}\)
      1. \(\displaystyle \lim_{x \to 16} \, \frac{\sqrt{x}-4}{x-16}\)
      2. \(\displaystyle \lim_{x \to 0} \, \frac{\sin(7x)}{2x}\)
    1. Define \(A(x)\) to be the area bounded by the \(t\)- and \(y\)-axes, the “bent line” in the figure below:
      A graph showing the area A(x) under the piecewise function y = f(t) (black line) from t=0 to a variable x. The function is constant at y=2 from t=0 to t=2, and then increases linearly. The area under the curve is shaded magenta.
      and the vertical line \(t = x\). For example, \(A(4) = 10\).
      1. Evaluate \(A(0)\), \(A(1)\), \(A(2)\) and \(A(3)\).
      2. Graph \(y = A(x)\) for \(0 \leq x \leq 4\).
      3. What area does \(A(3) - A(1)\) represent?
    2. Define \(A(x)\) to be the area bounded by the \(t\)- and \(y\)-axes, the line \(y = \frac12 t + 2\) and the vertical line \(t = x\):
      A graph showing the area A(x) under the linear function y = 1/2 t + 2 (black line) from t=0 to a variable x. The area is shaded magenta, forming a trapezoid starting at y=2.
      For example, \)A(4) = 12\).
      1. Evaluate \(A(0)\), \(A(1)\), \(A(2)\) and \(A(3)\).
      2. Graph \(y = A(x)\) for \(0 \leq x \leq 4\).
      3. What area does \(A(3) - A(1)\) represent?
    3. Sketch the graph of \(f(t) = \sqrt{4t -t^2}\) for \(0 \leq t \leq 4\) (you should get a semicircle). Define \(A(x)\) to be the area bounded below by the \(t\)-axis, above by the graph \(y = f(t)\) and on the right by the vertical line at \(t = x\).
      1. Evaluate \(A(0)\), \(A(2)\) and \(A(4)\).
      2. Sketch a graph \(y = A(x)\) for \(0 \leq x \leq 4\).
      3. What area does \(A(3) - A(1)\) represent?

    This page titled 1.1: The Limit of a Function was last modified on Wed, 28 Jan 2026 21:01:14 GMT and is shared under a CC BY-NC-SA 4.0 license and was authored, remixed, and/or curated by Dale Hoffman, edited and updated by Jeff Eldridge.

    • Was this article helpful?