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
BellY
  • See Also
    • D
    • BellB
    • StirlingS2
  • Related Guides
    • Combinatorial Functions
    • See Also
      • D
      • BellB
      • StirlingS2
    • Related Guides
      • Combinatorial Functions

BellY[n,k,{x1,…,xn-k+1}]

gives the partial Bell polynomial TemplateBox[{n, k, {x, _, 1}, ..., {x, _, {(, {n, -, k, +, 1}, )}}}, BellY].

BellY[n,k,m]

gives the generalized partial Bell polynomial of a matrix m.

BellY[m]

gives the generalized Bell polynomial of a matrix m.

Details
Details and Options Details and Options
Examples  
Basic Examples  
Scope  
Applications  
Calculus  
Combinatorics  
Other Applications  
Properties & Relations  
Neat Examples  
See Also
Related Guides
History
Cite this Page
BUILT-IN SYMBOL
  • See Also
    • D
    • BellB
    • StirlingS2
  • Related Guides
    • Combinatorial Functions
    • See Also
      • D
      • BellB
      • StirlingS2
    • Related Guides
      • Combinatorial Functions

BellY

BellY[n,k,{x1,…,xn-k+1}]

gives the partial Bell polynomial TemplateBox[{n, k, {x, _, 1}, ..., {x, _, {(, {n, -, k, +, 1}, )}}}, BellY].

BellY[n,k,m]

gives the generalized partial Bell polynomial of a matrix m.

BellY[m]

gives the generalized Bell polynomial of a matrix m.

Details

  • Mathematical function, suitable for both symbolic and numeric manipulations.
  • The partial Bell polynomial can be used to express the ^(th) derivative of a composition of two functions through the Faà di Bruno formula D_t^nf(g(t))=sum_(k=0)^nf^((k))(g(t)) TemplateBox[{n, k, {{g, ^, {(, ', )}}, (, t, )}, {{g, ^, {(, '', )}}, (, t, )}, ..., {{g, ^, {(, {(, {n, -, k, +, 1}, )}, )}}, (, t, )}}, BellY]. »
  • The BellY polynomial TemplateBox[{n, k, {x, _, 1}, ..., {x, _, {(, {n, -, k, +, 1}, )}}}, BellY] is given by ⋯ Boole[m1+2 m2+⋯+n mnn∧m1+m2+⋯+mnk] (xs/s!)ms. »
  • The generalized Bell polynomial can be used to express the ^(th) derivative of a composition of functions D_t^nf_1(f_2(...f_m(t)...))⩵TemplateBox[{{{{{{f, _, 1}, '}, {(, {{f, _, 2}, (, {...,  , {{f, _, m}, (, t, )}, ...}, )}, )}},  , {{{f, _, 2}, '}, {(, {{f, _, 3}, (, {...,  , {{f, _, m}, (, t, )}, ...}, )}, )}},  , ...,  , {{{f, _, m}, '}, {(, t, )}}}, ; , {{{{f, _, 1}, ''}, {(, {{f, _, 2}, (, {...,  , {{f, _, m}, (, t, )}, ...}, )}, )}},  , {{{f, _, 2}, ''}, {(, {{f, _, 3}, {(, {...,  , {{f, _, m}, (, t, )}, ...}, )}}, )}},  , ...,  , {{{f, _, m}, ''}, {(, t, )}}}, ; , {|,  , |,  , ...,  , |}, ; , {{{{f, _, 1}, ^, {(, {(, n, )}, )}}, (, {{f, _, 2}, (, {...,  , {{f, _, m}, (, t, )}, ...}, )}, )},  , {{{f, _, 2}, ^, {(, {(, n, )}, )}}, (, {{f, _, 3}, (, {...,  , {{f, _, m}, (, t, )}, ...}, )}, )},  , ...,  , {{{f, _, m}, ^, {(, {(, n, )}, )}}, (, t, )}}}}, BellY1].
  • BellY[n,k,m] is equivalent to BellY[] where is formed by prepending UnitVector[n,k] to m as a first column. »

Examples

open all close all

Basic Examples  (3)

Partial Bell polynomial:

Generalized partial Bell polynomial:

Generalized Bell polynomial:

Scope  (1)

Evaluate for a numerical matrix:

Applications  (13)

Calculus  (3)

The generalized chain rule allows one to directly compute the ^(th) derivative of using BellY: (partial^nf(g(x)))/(partialx^n)=sum_(k=1)^nf^((k))(g(x)) TemplateBox[{n, k, {{(, {partial, {g, (, x, )}}, )}, /, {(, {partial, {x, ^, 1}}, )}}, ..., {{(, {{partial, ^, {(, {n, -, k, +, 1}, )}}, {g, (, x, )}}, )}, /, {(, {partial, {x, ^, {(, {n, -, k, +, 1}, )}}}, )}}}, BellY]. Verify this with symbolic and for low orders of :

For , this becomes the normal chain rule:

For , this is also known as Faà di Bruno's formula:

From the formula, it can be directly seen that the derivative is linear in with coefficients that are polynomial in , where TemplateBox[{n, k, {g, ^, {(, ', )}}, ..., {g, ^, {(, {(, {{-, k}, +, n, +, 1}, )}, )}}}, BellY] is the polynomial coefficient of . Define a typesetting rule that makes this relation obvious by paneling the Bell coefficients:

A few of the first derivatives:

Compute fourth-order derivatives of the Gamma function using the BellY polynomial:

Compare with the explicit evaluation of the derivative:

Compute the series of an inverse function:

Compare with the result of InverseSeries:

Combinatorics  (6)

Compute Stirling numbers of the first kind in terms of the partial Bell polynomials:

Compute Stirling numbers of the second kind in terms of the partial Bell polynomials:

Compute Bell numbers using generalized Bell polynomials:

Compute Bell polynomials BellB[n,z] using generalized Bell polynomials:

Compute Catalan numbers using generalized Bell polynomials:

Number of -level labeled rooted trees with leaves:

Compare with an alternative formula:

The cycle index polynomial of the symmetric group of degree n:

Compare with the result of CycleIndexPolynomial:

The cycle index polynomial of the alternating group of degree n:

Compare with the result of CycleIndexPolynomial:

Find the number of ways to partition a set of 6 elements into two subsets from a partial Bell polynomial:

Check by explicit recursive generation of set partitions:

There are 10 ways to partition a set of 6 elements into two subsets of 3+3 elements:

There are 15 ways to partition a set of 6 elements into two subsets of 4+2 elements:

There are 6 ways to partition a set of 6 elements into two subsets of 5+1 elements:

Other Applications  (4)

Define the complete Bell polynomial of n variables:

Show the first few complete Bell polynomials:

Compute the third raw moment in terms of cumulants:

Compute the third cumulant in terms of raw moments:

Construct polynomial sequences of binomial type:

Verify their defining identity:

Recover BellB[n,z] as a special case:

The n^(th) elementary symmetric polynomial can be defined in terms of BellY:

Compare with SymmetricPolynomial for the case of five variables:

Properties & Relations  (6)

Compute a partial Bell polynomial using its sum representation:

Compare with BellY:

Compute a partial Bell polynomial using Cvijović's iterated sum formula:

Compare with BellY:

A linear combination of partial Bell polynomials:

The equivalent expression in terms of the generalized Bell polynomial:

A generalized partial Bell polynomial of a matrix:

This can be computed in terms of the generalized Bell polynomial by prepending a unit vector as a column:

A linear combination of generalized partial Bell polynomials of a matrix can be expressed as a generalized Bell polynomial by prepending the column of coefficients to the matrix:

Faà di Bruno's formula for the third derivative of :

Demonstrate an inversion relation for generalized Bell polynomials:

Neat Examples  (2)

Generate Bernoulli numbers using a generalized Bell polynomial:

Generate Euler numbers using a generalized Bell polynomial:

See Also

D  BellB  StirlingS2

Related Guides

    ▪
  • Combinatorial Functions

History

Introduced in 2010 (8.0)

Wolfram Research (2010), BellY, Wolfram Language function, https://reference.wolfram.com/language/ref/BellY.html.

Text

Wolfram Research (2010), BellY, Wolfram Language function, https://reference.wolfram.com/language/ref/BellY.html.

CMS

Wolfram Language. 2010. "BellY." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/BellY.html.

APA

Wolfram Language. (2010). BellY. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/BellY.html

BibTeX

@misc{reference.wolfram_2025_belly, author="Wolfram Research", title="{BellY}", year="2010", howpublished="\url{https://reference.wolfram.com/language/ref/BellY.html}", note=[Accessed: 01-March-2026]}

BibLaTeX

@online{reference.wolfram_2025_belly, organization={Wolfram Research}, title={BellY}, year={2010}, url={https://reference.wolfram.com/language/ref/BellY.html}, note=[Accessed: 01-March-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