Can anybody help in writing the following formula… I am having trouble. LHS I can write, but not the RHS.

# [Tex/LaTex] How to write a formula using box product

math-modemath-operators

Skip to content
# [Tex/LaTex] How to write a formula using box product

math-modemath-operators

Can anybody help in writing the following formula… I am having trouble. LHS I can write, but not the RHS.

## Best Answer

You can use

`\DeclareMathOperator*`

from`amsmath`

to declare an operator accepting "limits" in super/sub script positions:As

egregcomments, perhaps one could use`\vcenter`

instead of an explicit dimension in the definition of`\MyS`

; in this way, the square will be vertically centered with respect to the equal sign:Notice also the use of

`\mathbin`

in the definition of`\Osq`

to have the proper spacing for a binary operator.