Products
  • Wolfram|One

    The definitive Wolfram Language and notebook experience

  • Mathematica

    The original technical computing environment

  • Notebook Assistant + LLM Kit

    All-in-one AI assistance for your Wolfram experience

  • Compute Services
  • System Modeler
  • Finance Platform
  • Wolfram|Alpha Notebook Edition
  • Application Server
  • Enterprise Private Cloud
  • Wolfram Engine
  • Wolfram Player
  • Wolfram Cloud App
  • Wolfram Player App

More mobile apps

Core Technologies of Wolfram Products

  • Wolfram Language
  • Computable Data
  • Wolfram Notebooks
  • AI & Linguistic Understanding

Deployment Options

  • Wolfram Cloud
  • wolframscript
  • Wolfram Engine Community Edition
  • Wolfram LLM API
  • WSTPServer
  • Wolfram|Alpha APIs

From the Community

  • Function Repository
  • Community Paclet Repository
  • Example Repository
  • Neural Net Repository
  • Prompt Repository
  • Wolfram Demonstrations
  • Data Repository
  • Group & Organizational Licensing
  • All Products
Consulting & Solutions

We deliver solutions for the AI era—combining symbolic computation, data-driven insights and deep technical expertise

  • Data & Computational Intelligence
  • Model-Based Design
  • Algorithm Development
  • Wolfram|Alpha for Business
  • Blockchain Technology
  • Education Technology
  • Quantum Computation

Wolfram Consulting

Wolfram Solutions

  • Data Science
  • Artificial Intelligence
  • Biosciences
  • Healthcare Intelligence
  • Sustainable Energy
  • Control Systems
  • Enterprise Wolfram|Alpha
  • Blockchain Labs

More Wolfram Solutions

Wolfram Solutions For Education

  • Research Universities
  • Colleges & Teaching Universities
  • Junior & Community Colleges
  • High Schools
  • Educational Technology
  • Computer-Based Math

More Solutions for Education

  • Contact Us
Learning & Support

Get Started

  • Wolfram Language Introduction
  • Fast Intro for Programmers
  • Fast Intro for Math Students
  • Wolfram Language Documentation

More Learning

  • Highlighted Core Areas
  • Demonstrations
  • YouTube
  • Daily Study Groups
  • Wolfram Schools and Programs
  • Books

Grow Your Skills

  • Wolfram U

    Courses in computing, science, life and more

  • Community

    Learn, solve problems and share ideas.

  • Blog

    News, views and insights from Wolfram

  • Resources for

    Software Developers

Tech Support

  • Contact Us
  • Support FAQs
  • Support FAQs
  • Contact Us
Company
  • About Wolfram
  • Career Center
  • All Sites & Resources
  • Connect & Follow
  • Contact Us

Work with Us

  • Student Ambassador Initiative
  • Wolfram for Startups
  • Student Opportunities
  • Jobs Using Wolfram Language

Educational Programs for Adults

  • Summer School
  • Winter School

Educational Programs for Youth

  • Middle School Camp
  • High School Research Program
  • Computational Adventures

Read

  • Stephen Wolfram's Writings
  • Wolfram Blog
  • Wolfram Tech | Books
  • Wolfram Media
  • Complex Systems

Educational Resources

  • Wolfram MathWorld
  • Wolfram in STEM/STEAM
  • Wolfram Challenges
  • Wolfram Problem Generator

Wolfram Initiatives

  • Wolfram Science
  • Wolfram Foundation
  • History of Mathematics Project

Events

  • Stephen Wolfram Livestreams
  • Online & In-Person Events
  • Contact Us
  • Connect & Follow
Wolfram|Alpha
  • Your Account
  • User Portal
  • Wolfram Cloud
  • Products
    • Wolfram|One
    • Mathematica
    • Notebook Assistant + LLM Kit
    • Compute Services
    • System Modeler
    • Finance Platform
    • Wolfram|Alpha Notebook Edition
    • Application Server
    • Enterprise Private Cloud
    • Wolfram Engine
    • Wolfram Player
    • Wolfram Cloud App
    • Wolfram Player App

    More mobile apps

    • Core Technologies
      • Wolfram Language
      • Computable Data
      • Wolfram Notebooks
      • AI & Linguistic Understanding
    • Deployment Options
      • Wolfram Cloud
      • wolframscript
      • Wolfram Engine Community Edition
      • Wolfram LLM API
      • WSTPServer
      • Wolfram|Alpha APIs
    • From the Community
      • Function Repository
      • Community Paclet Repository
      • Example Repository
      • Neural Net Repository
      • Prompt Repository
      • Wolfram Demonstrations
      • Data Repository
    • Group & Organizational Licensing
    • All Products
  • Consulting & Solutions

    We deliver solutions for the AI era—combining symbolic computation, data-driven insights and deep technical expertise

    WolframConsulting.com

    Wolfram Solutions

    • Data Science
    • Artificial Intelligence
    • Biosciences
    • Healthcare Intelligence
    • Sustainable Energy
    • Control Systems
    • Enterprise Wolfram|Alpha
    • Blockchain Labs

    More Wolfram Solutions

    Wolfram Solutions For Education

    • Research Universities
    • Colleges & Teaching Universities
    • Junior & Community Colleges
    • High Schools
    • Educational Technology
    • Computer-Based Math

    More Solutions for Education

    • Contact Us
  • Learning & Support

    Get Started

    • Wolfram Language Introduction
    • Fast Intro for Programmers
    • Fast Intro for Math Students
    • Wolfram Language Documentation

    Grow Your Skills

    • Wolfram U

      Courses in computing, science, life and more

    • Community

      Learn, solve problems and share ideas.

    • Blog

      News, views and insights from Wolfram

    • Resources for

      Software Developers
    • Tech Support
      • Contact Us
      • Support FAQs
    • More Learning
      • Highlighted Core Areas
      • Demonstrations
      • YouTube
      • Daily Study Groups
      • Wolfram Schools and Programs
      • Books
    • Support FAQs
    • Contact Us
  • Company
    • About Wolfram
    • Career Center
    • All Sites & Resources
    • Connect & Follow
    • Contact Us

    Work with Us

    • Student Ambassador Initiative
    • Wolfram for Startups
    • Student Opportunities
    • Jobs Using Wolfram Language

    Educational Programs for Adults

    • Summer School
    • Winter School

    Educational Programs for Youth

    • Middle School Camp
    • High School Research Program
    • Computational Adventures

    Read

    • Stephen Wolfram's Writings
    • Wolfram Blog
    • Wolfram Tech | Books
    • Wolfram Media
    • Complex Systems
    • Educational Resources
      • Wolfram MathWorld
      • Wolfram in STEM/STEAM
      • Wolfram Challenges
      • Wolfram Problem Generator
    • Wolfram Initiatives
      • Wolfram Science
      • Wolfram Foundation
      • History of Mathematics Project
    • Events
      • Stephen Wolfram Livestreams
      • Online & In-Person Events
    • Contact Us
    • Connect & Follow
  • Wolfram|Alpha
  • Wolfram Cloud
  • Your Account
  • User Portal
Wolfram Language & System Documentation Center
Sech
  • See Also
    • Cosh
    • ArcSech
    • Csch
    • TrigToExp
    • TrigExpand
  • Related Guides
    • Hyperbolic Functions
  • Tech Notes
    • Elementary Transcendental Functions
    • See Also
      • Cosh
      • ArcSech
      • Csch
      • TrigToExp
      • TrigExpand
    • Related Guides
      • Hyperbolic Functions
    • Tech Notes
      • Elementary Transcendental Functions

Sech[z]

gives the hyperbolic secant of z.

Details
Details and Options Details and Options
Background & Context
Examples  
Basic Examples  
Scope  
Numerical Evaluation  
Specific Values  
Visualization  
Show More Show More
Function Properties  
Differentiation  
Integration  
Series Expansions  
Integral Transforms  
Function Identities and Simplifications  
Function Representations  
Applications  
Properties & Relations  
Possible Issues  
See Also
Tech Notes
Related Guides
Related Links
History
Cite this Page
BUILT-IN SYMBOL
  • See Also
    • Cosh
    • ArcSech
    • Csch
    • TrigToExp
    • TrigExpand
  • Related Guides
    • Hyperbolic Functions
  • Tech Notes
    • Elementary Transcendental Functions
    • See Also
      • Cosh
      • ArcSech
      • Csch
      • TrigToExp
      • TrigExpand
    • Related Guides
      • Hyperbolic Functions
    • Tech Notes
      • Elementary Transcendental Functions

Sech

Sech[z]

gives the hyperbolic secant of z.

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 sum_(k=0)^infty(TemplateBox[{{2,  , k}}, EulerE])/((2 k)!)z^(2 k) 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 all close all

Basic Examples  (5)

Evaluate numerically:

Plot over a subset of the reals:

Plot over a subset of the complexes:

Series expansion at the origin:

Asymptotic expansion at a singular point:

Scope  (47)

Numerical Evaluation  (6)

Evaluate numerically:

Evaluate to high precision:

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

Sech can take complex number inputs:

Evaluate Sech efficiently at high precision:

Compute the elementwise values of an array using automatic threading:

Or compute the matrix Sech function using MatrixFunction:

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

Or compute average-case statistical intervals using Around:

Specific Values  (4)

Values of Sech at fixed purely imaginary points:

Values at infinity:

Maximum of Sech:

Find the maximum as a root of :

Substitute in the value:

Visualize the result:

Simple exact values are generated automatically:

More complicated cases require explicit use of FunctionExpand:

Visualization  (3)

Plot the Sech function:

Plot the real part of :

Plot the imaginary part of :

Polar plot with :

Function Properties  (12)

Sech is defined for all real values:

Complex domain:

Sech achieves all real values from the interval :

Sech is an even function:

Sech has the mirror property sech(TemplateBox[{z}, Conjugate])=TemplateBox[{{sech, (, z, )}}, Conjugate]:

Sech is an analytic function of on the reals:

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

Sech is neither non-decreasing nor non-increasing:

Sech is not injective:

Sech is not surjective:

Sech is non-negative:

Sech has no singularities or discontinuities:

Sech is neither convex nor concave:

TraditionalForm formatting:

Differentiation  (3)

First derivative:

Higher derivatives:

Formula for the ^(th) derivative:

Integration  (3)

Indefinite integral of Sech:

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

This is twice the integral over half the interval:

More integrals:

Series Expansions  (4)

Find the Taylor expansion using Series:

Plot the first three approximations for Sech around :

General term in the series expansion of Sech:

The first term of Fourier series for Sech:

Sech can be applied to power series:

Integral Transforms  (2)

Compute the Laplace transform using LaplaceTransform:

FourierTransform:

Function Identities and Simplifications  (6)

Sech of a double angle:

Sech of a sum:

Convert multiple‐angle expressions:

Convert sums of hyperbolic functions to products:

Expand assuming real variables and :

Convert to exponentials:

Function Representations  (4)

Representation through Cos:

Representation through Bessel functions:

Representation through Jacobi functions:

Representation in terms of MeijerG:

Applications  (7)

Plot a tractrix pursuit curve:

Plot a pseudosphere:

Calculate the finite area of the surface extending to infinity:

A soliton in the Korteweg–de Vries equation:

A Schrödinger equation with a zero energy solution:

Calculate the CDF of the hyperbolic secant PDF:

Plot the PDF and CDF:

Solve a differential equation:

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

Properties & Relations  (11)

Basic parity and periodicity properties of Sech get automatically applied:

Expressions containing hyperbolic functions do not automatically simplify:

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

Use FunctionExpand to express special values in radicals:

Compose with inverse functions:

Solve a hyperbolic equation:

Numerically find a root of a transcendental equation:

Reduce a hyperbolic equation:

Obtain Sech from sums, products, and integrals:

Sech appears in special cases of special functions:

Sech is a numeric function:

Possible Issues  (5)

Machine-precision input is insufficient to give a correct answer:

With exact input, the answer is correct:

A larger setting for $MaxExtraPrecision can be needed:

The inverse of Sech evaluates to Cosh:

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

In TraditionalForm, parentheses are needed around the argument:

See Also

Cosh  ArcSech  Csch  TrigToExp  TrigExpand

Tech Notes

    ▪
  • Elementary Transcendental Functions

Related Guides

    ▪
  • Hyperbolic Functions

Related Links

  • MathWorld
  • The Wolfram Functions Site
  • NKS|Online  (A New Kind of Science)

History

Introduced in 1988 (1.0) | Updated in 1996 (3.0) ▪ 2021 (13.0)

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).

CMS

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

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: 01-May-2026]}

BibLaTeX

@online{reference.wolfram_2025_sech, organization={Wolfram Research}, title={Sech}, year={2021}, url={https://reference.wolfram.com/language/ref/Sech.html}, note=[Accessed: 01-May-2026]}

Top
Introduction for Programmers
Introductory Book
Wolfram Function Repository | Wolfram Data Repository | Wolfram Data Drop | Wolfram Language Products
Top
  • Products
  • Wolfram|One
  • Mathematica
  • Notebook Assistant + LLM Kit
  • Compute Services
  • System Modeler

  • Wolfram|Alpha Notebook Edition
  • Wolfram|Alpha Pro
  • Mobile Apps

  • Wolfram Engine
  • Wolfram Player

  • Volume & Site Licensing
  • Server Deployment Options
  • Consulting
  • Wolfram Consulting
  • Repositories
  • Data Repository
  • Function Repository
  • Community Paclet Repository
  • Neural Net Repository
  • Prompt Repository

  • Wolfram Language Example Repository
  • Notebook Archive
  • Wolfram GitHub
  • Learning
  • Wolfram U
  • Wolfram Language Documentation
  • Webinars & Training
  • Educational Programs

  • Wolfram Language Introduction
  • Fast Introduction for Programmers
  • Fast Introduction for Math Students
  • Books

  • Wolfram Community
  • Wolfram Blog
  • Public Resources
  • Wolfram|Alpha
  • Wolfram Problem Generator
  • Wolfram Challenges

  • Computer-Based Math
  • Computational Thinking
  • Computational Adventures

  • Demonstrations Project
  • Wolfram Data Drop
  • MathWorld
  • Wolfram Science
  • Wolfram Media Publishing
  • Customer Resources
  • Store
  • Product Downloads
  • User Portal
  • Your Account
  • Organization Access

  • Support FAQ
  • Contact Support
  • Company
  • About Wolfram
  • Careers
  • Contact
  • Events
Wolfram Community Wolfram Blog
Legal & Privacy Policy
WolframAlpha.com | WolframCloud.com
© 2026 Wolfram
© 2026 Wolfram | Legal & Privacy Policy |
English