Direction
Details
- Possible settings for Direction include:
-
Reals or "TwoSided" from both real directions "FromAbove" or -1 from above or larger values "FromBelow" or +1 from below or smaller values Complexes from all complex directions Exp[ θ] in the direction 
{dir1,…,dirn} use direction diri for variable xi independently - DirectionExp[ θ] at x* indicates the direction tangent of a curve approaching the limit point x*.
Examples
open all close allBasic Examples (1)
Scope (5)
One-sided limits at piecewise discontinuities:
Limit[RealAbs[x] / x, x -> 0, Direction -> "FromAbove"]Limit[RealAbs[x] / x, x -> 0, Direction -> "FromBelow"]The default direction is two sided:
Limit[RealAbs[x] / x, x -> 0]Plot[RealAbs[x] / x, {x, -1, 1}]MaxLimit[UnitStep[x]Sin[(1/x)] + (1/2), x -> 0, Direction -> "FromAbove"]MaxLimit[UnitStep[x]Sin[(1/x)] + (1/2), x -> 0, Direction -> "FromBelow"]The default direction Reals gives the larger of the two one-sided max limits:
MaxLimit[UnitStep[x]Sin[(1/x)] + (1/2), x -> 0]MaxLimit[UnitStep[x]Sin[(1/x)] + (1/2), x -> 0, Direction -> Reals]Plot[UnitStep[x]Sin[(1/x)] + (1/2), {x, -.1, .1}]Limit[Tan[x], x -> π / 2, Direction -> "FromBelow"]Limit[Tan[x], x -> π / 2, Direction -> "FromAbove"]Limit[Tan[x], x -> π / 2, Direction -> ℝ]Limit[Tan[x], x -> π / 2, Direction -> ℂ]Limit[Sqrt[x], x -> -1, Direction -> Reals]Limit[Sqrt[x], x -> -1, Direction -> -I]Limit[Sqrt[x], x -> -1, Direction -> +I]Limit[Sqrt[x], x -> -1, Direction -> Complexes]Compute the bivariate limit approach from different quadrants:
f[x_, y_] := (x y/x + y)(2 + RealSign[ x y] + RealSign[y])Approaching the origin from the first quadrant:
Limit[f[x, y], {x, y} -> {0, 0}, Direction -> "FromAbove"]Limit[f[x, y], {x, y} -> {0, 0}, Direction -> {"FromAbove", "FromAbove"}]Approaching the origin from the second quadrant:
Limit[f[x, y], {x, y} -> {0, 0}, Direction -> {"FromBelow", "FromAbove"}]Approaching the origin from the left half-plane:
Limit[f[x, y], {x, y} -> {0, 0}, Direction -> {"FromBelow", Reals}]Approaching the origin from the bottom half-plane:
Limit[f[x, y], {x, y} -> {0, 0}, Direction -> {Reals, "FromBelow"}]Row@{Plot3D[f[x, y], {x, y}∈Disk[], Exclusions -> {{x == -y , x <= 0}}, ClippingStyle -> None, ImageSize -> 200], DensityPlot[f[x, y], {x, -1, 1}, {y, -1, 1}, Exclusions -> {{x == -y , x <= 0}}, ClippingStyle -> Automatic, ImageSize -> Small]}Properties & Relations (4)
The settings "FromBelow" and 1 are equivalent:
MinLimit[Cos[x] / x, x -> 0, Direction -> "FromBelow"]MinLimit[Cos[x] / x, x -> 0, Direction -> 1]The settings "FromAbove" and -1 are equivalent:
MinLimit[Cos[x] / x, x -> 0, Direction -> "FromAbove"]MinLimit[Cos[x] / x, x -> 0, Direction -> -1]The settings "TwoSided" and Reals are equivalent:
MinLimit[Cos[x] / x, x -> 0, Direction -> "TwoSided"]MinLimit[Cos[x] / x, x -> 0, Direction -> ℝ]Direction places conditions on the limit variable:
Limit[Tan[x], x -> π / 2 + n π, Direction -> 1, Assumptions -> n∈Integers]Assumptions applies to parameters in the limit expression:
Limit[Tan[x], x -> π / 2 + n π, Direction -> -1, Assumptions -> n∈Integers]Plot[Tan[x], {x, -2π, 2π}, ExclusionsStyle -> {{Dashed, Red}}]See Also
History
Introduced in 1991 (2.0) | Updated in 2017 (11.2)
Text
Wolfram Research (1991), Direction, Wolfram Language function, https://reference.wolfram.com/language/ref/Direction.html (updated 2017).
CMS
Wolfram Language. 1991. "Direction." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2017. https://reference.wolfram.com/language/ref/Direction.html.
APA
Wolfram Language. (1991). Direction. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Direction.html
BibTeX
@misc{reference.wolfram_2026_direction, author="Wolfram Research", title="{Direction}", year="2017", howpublished="\url{https://reference.wolfram.com/language/ref/Direction.html}", note=[Accessed: 12-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_direction, organization={Wolfram Research}, title={Direction}, year={2017}, url={https://reference.wolfram.com/language/ref/Direction.html}, note=[Accessed: 12-June-2026]}