# Limit of a function

In calculus, a branch of mathematics, the limit of a function is the behavior of a certain function near a selected input value for that function. Limits are one of the main calculus topics, along with derivatives, integration, and differential equations.

## Definition of the limit

The definition of the limit is as follows:

If the function $f(x)$ approaches a number $L$ as $x$ approaches a number $c$ , then $\lim _{x\to c}f(x)=L.$ The notation for the limit above is read as "The limit of $f(x)$ as $x$ approaches $c$ is $L$ ", or alternatively, $f(x)\to L$ as $x\to c$ (reads "$f(x)$ tends to $L$ as $x$ tends to $c$ "). Informally, this means that we can make $f(x)$ as close to $L$ as possible—by making $x$ sufficiently close to $c$ from both sides (without making $x$ equal to $c$ ).

Imagine we have a function such as $f(x)=1/x$ . When $x=0$ , $f(x)$ is undefined, because $f(0)=1/0$ . Therefore, on the Cartesian coordinate system, the function $f(x)=1/x$ would have a vertical asymptote at $x=0$ . In limit notation, this would be written as:

The limit of $1/x$ as $x$ approaches $0$ is $\infty$ , which is denoted by $\lim _{x\to 0}1/x=\infty .$ ### Right and left limits

For the function $f(x)=1/x$ , we can get as close to $0$ in the $x$ -values as we want, so long as we do not make $x$ equal to $0$ . For instance, we could make x=.00000001 or -.00000001, but never 0. Therefore, we can get $f(x)$ as close as we want to $\infty$ , but without reaching it. The left limit is any value that approaches the limit from numbers less than the number, and the right limit is any value that approaches the limit from number greater than the limit number. For instance, in the function $f(x)=1/x$ , since the limit for $x$ is 0, if $x=1$ , it approaches the limit from the right. If we instead choose -1, we say it approaches the limit from the left.