RightComposition
✖
RightComposition
represents a composition on the right of the functions f1, f2, f3, ….
Details

- RightComposition allows you to build up compositions of functions, which can later be applied to specific arguments.
- RightComposition objects are automatically simplified when possible. »
- InverseFunction objects containing RightComposition are automatically simplified. »
- RightComposition has the attributes Flat and OneIdentity.
- RightComposition can be entered in the form f1/*f2/*….
- RightComposition[] gives Identity. »
Examples
open allclose allBasic Examples (2)Summary of the most common use cases
Scope (4)Survey of the scope of standard use cases
Use pure functions inside RightComposition:

https://wolfram.com/xid/09b1uwjma-d48

Use Apply with RightComposition:

https://wolfram.com/xid/09b1uwjma-dh3

RightComposition objects are automatically simplified when possible:

https://wolfram.com/xid/09b1uwjma-644qlc


https://wolfram.com/xid/09b1uwjma-nfbn6n

Assign a RightComposition object to a variable:

https://wolfram.com/xid/09b1uwjma-jgdpbv

The variable can be used like any other function:

https://wolfram.com/xid/09b1uwjma-9cgbka

Applications (2)Sample problems that can be solved with this function
Properties & Relations (9)Properties of the function, and connections to other functions
RightComposition[f] gives f:

https://wolfram.com/xid/09b1uwjma-h6ho87

RightComposition[] gives Identity:

https://wolfram.com/xid/09b1uwjma-b6eb3e

Identity inside a composition is automatically removed:

https://wolfram.com/xid/09b1uwjma-1160tl

Consecutive TransformationFunction objects are combined:

https://wolfram.com/xid/09b1uwjma-svqib8

InverseFunction of a composition produces a reversed composition of inverse functions:

https://wolfram.com/xid/09b1uwjma-u6q

RightComposition composes on the right:

https://wolfram.com/xid/09b1uwjma-dc3pwh

Composition composes on the left:

https://wolfram.com/xid/09b1uwjma-67hud1

Pure functions let you set up objects that work like RightComposition:

https://wolfram.com/xid/09b1uwjma-xjn


https://wolfram.com/xid/09b1uwjma-q1k

Different ways of entering the same right composition:

https://wolfram.com/xid/09b1uwjma-7id555


https://wolfram.com/xid/09b1uwjma-mew6ah

RightComposition is natural with postfix notation, entering the functions in the same order:

https://wolfram.com/xid/09b1uwjma-uf0ua7

With prefix notation, the functions are reversed relative to pure prefix application:

https://wolfram.com/xid/09b1uwjma-f27gib


https://wolfram.com/xid/09b1uwjma-ivhbk

Compose a function with itself times using Nest:

https://wolfram.com/xid/09b1uwjma-iy0ich


https://wolfram.com/xid/09b1uwjma-bbjw8b

Compose a function with itself times using RSolve:

https://wolfram.com/xid/09b1uwjma-0nfx2

https://wolfram.com/xid/09b1uwjma-mce8p


https://wolfram.com/xid/09b1uwjma-o4wtlb


https://wolfram.com/xid/09b1uwjma-emw33s

Possible Issues (1)Common pitfalls and unexpected behavior
RightComposition[…] objects do not hold their arguments:

https://wolfram.com/xid/09b1uwjma-id48me

Use ordinary function application to allow functions to hold their arguments:

https://wolfram.com/xid/09b1uwjma-v9wxmf

Wolfram Research (2014), RightComposition, Wolfram Language function, https://reference.wolfram.com/language/ref/RightComposition.html.
Text
Wolfram Research (2014), RightComposition, Wolfram Language function, https://reference.wolfram.com/language/ref/RightComposition.html.
Wolfram Research (2014), RightComposition, Wolfram Language function, https://reference.wolfram.com/language/ref/RightComposition.html.
CMS
Wolfram Language. 2014. "RightComposition." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/RightComposition.html.
Wolfram Language. 2014. "RightComposition." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/RightComposition.html.
APA
Wolfram Language. (2014). RightComposition. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/RightComposition.html
Wolfram Language. (2014). RightComposition. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/RightComposition.html
BibTeX
@misc{reference.wolfram_2025_rightcomposition, author="Wolfram Research", title="{RightComposition}", year="2014", howpublished="\url{https://reference.wolfram.com/language/ref/RightComposition.html}", note=[Accessed: 09-July-2025
]}
BibLaTeX
@online{reference.wolfram_2025_rightcomposition, organization={Wolfram Research}, title={RightComposition}, year={2014}, url={https://reference.wolfram.com/language/ref/RightComposition.html}, note=[Accessed: 09-July-2025
]}