Sech
✖
Sech
Details

- Mathematical function, suitable for both symbolic and numerical manipulation.
.
- 1/Cosh[z] is automatically converted to Sech[z]. TrigFactorList[expr] does decomposition.
- For certain special arguments, Sech automatically evaluates to exact values.
- Sech can be evaluated to arbitrary numerical precision.
- Sech automatically threads over lists. »
- Sech can be used with Interval and CenteredInterval objects. »
Background & Context
- Sech is the hyperbolic secant function, which is the hyperbolic analogue of the Sec circular function used throughout trigonometry. It is defined as the reciprocal of the hyperbolic cosine function as
. It is defined for real numbers by letting
be twice the area between the
axis and a ray through the origin intersecting the unit hyperbola
. Sech[α] then represents the reciprocal of the horizontal coordinate of the intersection point. The equivalent definition of hyperbolic secant is
, where
is the base of the natural logarithm Log.
- Sech automatically evaluates to exact values when its argument is the (natural) logarithm of a rational number. When given exact numeric expressions as arguments, Sech may be evaluated to arbitrary numeric precision. TrigFactorList can be used to factor expressions involving Sech into terms containing Sinh, Cosh, Sin, and Cos. Other operations useful for manipulation of symbolic expressions involving Sech include TrigToExp, TrigExpand, Simplify, and FullSimplify.
- Sech threads element-wise over lists and matrices. In contrast, MatrixFunction can be used to give the hyperbolic secant of a square matrix (i.e. the power series for the hyperbolic secant function with ordinary powers replaced by matrix powers) as opposed to the hyperbolic secants of the individual matrix elements.
- Sech[x] decreases exponentially as x approaches
. Sech satisfies an identity similar to the Pythagorean identity satisfied by Sec, namely
. The definition of the hyperbolic secant function is extended to complex arguments
by way of the identity
. Sech has poles at values
for
an integer and evaluates to ComplexInfinity at these points. Sech[z] has series expansion
about the origin that may be expressed in terms of the Euler numbers EulerE.
- The inverse function of Sech is ArcSech. Related mathematical functions include Cosh and Csch.
Examples
open allclose allBasic Examples (5)Summary of the most common use cases

https://wolfram.com/xid/0mq4j6-d3freo

Plot over a subset of the reals:

https://wolfram.com/xid/0mq4j6-ftxzrs

Plot over a subset of the complexes:

https://wolfram.com/xid/0mq4j6-kiedlx

Series expansion at the origin:

https://wolfram.com/xid/0mq4j6-d84plt

Asymptotic expansion at a singular point:

https://wolfram.com/xid/0mq4j6-qrwggr

Scope (47)Survey of the scope of standard use cases
Numerical Evaluation (6)

https://wolfram.com/xid/0mq4j6-l274ju


https://wolfram.com/xid/0mq4j6-q9hex5

The precision of the output tracks the precision of the input:

https://wolfram.com/xid/0mq4j6-cgotwz

Sech can take complex number inputs:

https://wolfram.com/xid/0mq4j6-ko71k6

Evaluate Sech efficiently at high precision:

https://wolfram.com/xid/0mq4j6-di5gcr


https://wolfram.com/xid/0mq4j6-bq2c6r

Compute the elementwise values of an array using automatic threading:

https://wolfram.com/xid/0mq4j6-thgd2

Or compute the matrix Sech function using MatrixFunction:

https://wolfram.com/xid/0mq4j6-o5jpo

Compute worst-case guaranteed intervals using Interval and CenteredInterval objects:

https://wolfram.com/xid/0mq4j6-crg1wt


https://wolfram.com/xid/0mq4j6-lmyeh7


https://wolfram.com/xid/0mq4j6-f4gayw

Or compute average-case statistical intervals using Around:

https://wolfram.com/xid/0mq4j6-cw18bq

Specific Values (4)
Values of Sech at fixed purely imaginary points:

https://wolfram.com/xid/0mq4j6-nww7l


https://wolfram.com/xid/0mq4j6-do145d


https://wolfram.com/xid/0mq4j6-bxpy4

Maximum of Sech:

https://wolfram.com/xid/0mq4j6-cw39qs

Find the maximum as a root of :

https://wolfram.com/xid/0mq4j6-bgtr3o


https://wolfram.com/xid/0mq4j6-oiazhe


https://wolfram.com/xid/0mq4j6-bp76w5

Simple exact values are generated automatically:

https://wolfram.com/xid/0mq4j6-eyjevv

More complicated cases require explicit use of FunctionExpand:

https://wolfram.com/xid/0mq4j6-mnn


https://wolfram.com/xid/0mq4j6-p3j

Visualization (3)
Plot the Sech function:

https://wolfram.com/xid/0mq4j6-ecj8m7


https://wolfram.com/xid/0mq4j6-bo5grg


https://wolfram.com/xid/0mq4j6-d4yw4c


https://wolfram.com/xid/0mq4j6-epb4bn

Function Properties (12)
Sech is defined for all real values:

https://wolfram.com/xid/0mq4j6-cl7ele


https://wolfram.com/xid/0mq4j6-de3irc

Sech achieves all real values from the interval :

https://wolfram.com/xid/0mq4j6-evf2yr

Sech is an even function:

https://wolfram.com/xid/0mq4j6-dnla5q

Sech has the mirror property :

https://wolfram.com/xid/0mq4j6-heoddu

Sech is an analytic function of on the reals:

https://wolfram.com/xid/0mq4j6-h5x4l2

While it is not analytic on the complex plane, it is meromorphic:

https://wolfram.com/xid/0mq4j6-xl0tdy


https://wolfram.com/xid/0mq4j6-e434t9

Sech is neither non-decreasing nor non-increasing:

https://wolfram.com/xid/0mq4j6-g6kynf

Sech is not injective:

https://wolfram.com/xid/0mq4j6-gi38d7


https://wolfram.com/xid/0mq4j6-ctca0g

Sech is not surjective:

https://wolfram.com/xid/0mq4j6-hkqec4


https://wolfram.com/xid/0mq4j6-b1r9xi

Sech is non-negative:

https://wolfram.com/xid/0mq4j6-84dui

Sech has no singularities or discontinuities:

https://wolfram.com/xid/0mq4j6-mdtl3h


https://wolfram.com/xid/0mq4j6-mn5jws

Sech is neither convex nor concave:

https://wolfram.com/xid/0mq4j6-kdss3

TraditionalForm formatting:

https://wolfram.com/xid/0mq4j6-b3991r

Differentiation (3)
Integration (3)
Indefinite integral of Sech:

https://wolfram.com/xid/0mq4j6-bponid

Definite integral of an even function over the interval centered at the origin:

https://wolfram.com/xid/0mq4j6-b9jw7l

This is twice the integral over half the interval:

https://wolfram.com/xid/0mq4j6-fnnzyy


https://wolfram.com/xid/0mq4j6-cz1s1n


https://wolfram.com/xid/0mq4j6-f6pje1


https://wolfram.com/xid/0mq4j6-ca0slx

Series Expansions (4)
Find the Taylor expansion using Series:

https://wolfram.com/xid/0mq4j6-ewr1h8

Plot the first three approximations for Sech around :

https://wolfram.com/xid/0mq4j6-binhar

General term in the series expansion of Sech:

https://wolfram.com/xid/0mq4j6-kevxtm

The first term of Fourier series for Sech:

https://wolfram.com/xid/0mq4j6-f64drv

Sech can be applied to power series:

https://wolfram.com/xid/0mq4j6-m3hn12

Integral Transforms (2)
Compute the Laplace transform using LaplaceTransform:

https://wolfram.com/xid/0mq4j6-d3nogi


https://wolfram.com/xid/0mq4j6-ecytiv

Function Identities and Simplifications (6)
Sech of a double angle:

https://wolfram.com/xid/0mq4j6-mjplp7

Sech of a sum:

https://wolfram.com/xid/0mq4j6-nfe4y

Convert multiple‐angle expressions:

https://wolfram.com/xid/0mq4j6-bbbslh


https://wolfram.com/xid/0mq4j6-kq05k

Convert sums of hyperbolic functions to products:

https://wolfram.com/xid/0mq4j6-f7kbnv

Expand assuming real variables and
:

https://wolfram.com/xid/0mq4j6-dfb1e1


https://wolfram.com/xid/0mq4j6-j5k3nt

Function Representations (4)
Representation through Cos:

https://wolfram.com/xid/0mq4j6-df304y

Representation through Bessel functions:

https://wolfram.com/xid/0mq4j6-ewa69v


https://wolfram.com/xid/0mq4j6-9y9s4

Representation through Jacobi functions:

https://wolfram.com/xid/0mq4j6-b622gi


https://wolfram.com/xid/0mq4j6-hst6yl

Representation in terms of MeijerG:

https://wolfram.com/xid/0mq4j6-hry552

Applications (7)Sample problems that can be solved with this function
Plot a tractrix pursuit curve:

https://wolfram.com/xid/0mq4j6-pwz39


https://wolfram.com/xid/0mq4j6-c5789q

Calculate the finite area of the surface extending to infinity:

https://wolfram.com/xid/0mq4j6-b0l9w2

A soliton in the Korteweg–de Vries equation:

https://wolfram.com/xid/0mq4j6-cle9bq

https://wolfram.com/xid/0mq4j6-jw5dcq

A Schrödinger equation with a zero energy solution:

https://wolfram.com/xid/0mq4j6-jiszow

https://wolfram.com/xid/0mq4j6-jzrotj

Calculate the CDF of the hyperbolic secant PDF:

https://wolfram.com/xid/0mq4j6-bvxz5r

https://wolfram.com/xid/0mq4j6-chai88


https://wolfram.com/xid/0mq4j6-djrfr0

Solve a differential equation:

https://wolfram.com/xid/0mq4j6-looaq

Compute nonlinear Schrödinger equation: a soliton profile perturbed by a periodic potential:

https://wolfram.com/xid/0mq4j6-ebw3sx


https://wolfram.com/xid/0mq4j6-eq8dkv

Properties & Relations (11)Properties of the function, and connections to other functions
Basic parity and periodicity properties of Sech get automatically applied:

https://wolfram.com/xid/0mq4j6-caywmk


https://wolfram.com/xid/0mq4j6-f7wju8


https://wolfram.com/xid/0mq4j6-cs2kii

Expressions containing hyperbolic functions do not automatically simplify:

https://wolfram.com/xid/0mq4j6-pc0o9


https://wolfram.com/xid/0mq4j6-ehd33x

Use Refine, Simplify, and FullSimplify to simplify expressions containing Sech:

https://wolfram.com/xid/0mq4j6-brx6g5


https://wolfram.com/xid/0mq4j6-bqs961


https://wolfram.com/xid/0mq4j6-o9izg

Use FunctionExpand to express special values in radicals:

https://wolfram.com/xid/0mq4j6-c9tx1v

Compose with inverse functions:

https://wolfram.com/xid/0mq4j6-hldu3c


https://wolfram.com/xid/0mq4j6-cet7tq


https://wolfram.com/xid/0mq4j6-c5h0de

Numerically find a root of a transcendental equation:

https://wolfram.com/xid/0mq4j6-bctqgm


https://wolfram.com/xid/0mq4j6-fxve3q

Obtain Sech from sums, products, and integrals:

https://wolfram.com/xid/0mq4j6-eitopx


https://wolfram.com/xid/0mq4j6-e3vehy


https://wolfram.com/xid/0mq4j6-g6ngu

Sech appears in special cases of special functions:

https://wolfram.com/xid/0mq4j6-j5ud1h

Sech is a numeric function:

https://wolfram.com/xid/0mq4j6-jk9o7t


https://wolfram.com/xid/0mq4j6-gho5cl

Possible Issues (5)Common pitfalls and unexpected behavior
Machine-precision input is insufficient to give a correct answer:

https://wolfram.com/xid/0mq4j6-c6gpss

With exact input, the answer is correct:

https://wolfram.com/xid/0mq4j6-prvh3

A larger setting for $MaxExtraPrecision can be needed:

https://wolfram.com/xid/0mq4j6-iyk1qv



https://wolfram.com/xid/0mq4j6-kpy4c

The inverse of Sech evaluates to Cosh:

https://wolfram.com/xid/0mq4j6-hmn3gv

No power series exists at infinity, where Sech has an essential singularity:

https://wolfram.com/xid/0mq4j6-ifiand

In TraditionalForm, parentheses are needed around the argument:

https://wolfram.com/xid/0mq4j6-c4azs6


https://wolfram.com/xid/0mq4j6-fv4ia

Wolfram Research (1988), Sech, Wolfram Language function, https://reference.wolfram.com/language/ref/Sech.html (updated 2021).
Text
Wolfram Research (1988), Sech, Wolfram Language function, https://reference.wolfram.com/language/ref/Sech.html (updated 2021).
Wolfram Research (1988), Sech, Wolfram Language function, https://reference.wolfram.com/language/ref/Sech.html (updated 2021).
CMS
Wolfram Language. 1988. "Sech." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2021. https://reference.wolfram.com/language/ref/Sech.html.
Wolfram Language. 1988. "Sech." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2021. https://reference.wolfram.com/language/ref/Sech.html.
APA
Wolfram Language. (1988). Sech. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Sech.html
Wolfram Language. (1988). Sech. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Sech.html
BibTeX
@misc{reference.wolfram_2025_sech, author="Wolfram Research", title="{Sech}", year="2021", howpublished="\url{https://reference.wolfram.com/language/ref/Sech.html}", note=[Accessed: 13-May-2025
]}
BibLaTeX
@online{reference.wolfram_2025_sech, organization={Wolfram Research}, title={Sech}, year={2021}, url={https://reference.wolfram.com/language/ref/Sech.html}, note=[Accessed: 13-May-2025
]}