Section1.9

]>
Book Contents Previous Section 1.8 Polynomials Next Section 1.10 Series Book Index

## 1.9 Limits

Axiom's limit function is usually used to evaluate limits of quotients where the numerator and denominator limit both tend to zero or both tend to infinity. To find the limit of an expression f as a real variable x tends to a limit value a, enter limit(f, x=a). Use complexLimit if the variable is complex. Additional information and examples of limits are in Section ugProblemLimits .

You can take limits of functions with parameters. limit:of function with parameters

g := csc(a*x) / csch(b*x)

csc(a x)csch(b x)

Type: Expression Integer

As you can see, the limit is expressed in terms of the parameters.

limit(g,x=0)

b a

Type: Union(OrderedCompletion Expression Integer,...)

A variable may also approach plus or minus infinity:

h := (1 + k/x)**x

x+k x x

Type: Expression Integer

Use %plusInfinity and %minusInfinity to denote ∞ and -∞.

limit(h,x=%plusInfinity)

e k

Type: Union(OrderedCompletion Expression Integer,...)

A function can be defined on both sides of a particular value, but may tend to different limits as its variable approaches that value from the left and from the right.

limit(sqrt(y**2)/y,y = 0)

[leftHandLimit=-1, rightHandLimit=1]

Type: Union(Record(leftHandLimit: Union(OrderedCompletion Expression Integer,"failed"),rightHandLimit: Union(OrderedCompletion Expression Integer,"failed")),...)

As x approaches 0 along the real axis, exp(-1/x**2) tends to 0.

limit(exp(-1/x**2),x = 0)

0

Type: Union(OrderedCompletion Expression Integer,...)

However, if x is allowed to approach 0 along any path in the complex plane, the limiting value of exp(-1/x**2) depends on the path taken because the function has an essential singularity at x=0. This is reflected in the error message returned by the function.

complexLimit(exp(-1/x**2),x = 0)

"failed"

Type: Union("failed",...)
Book Contents Previous Section 1.8 Polynomials Next Section 1.10 Series Book Index