Estoy intentando escribir esta ecuación usando látex, pero tengo algunos problemas.

Estoy intentando escribir esta ecuación usando látex, pero tengo algunos problemas.

Esto es lo que me gustaría enviar por mensaje de texto.

Nota: El siguiente texto es lo que encontré en este sitio, pero mi proyecto me está "gritando". Dime que algo anda mal.

Las cosas importantes son:

  • \undersetque toma dos argumentos, el primero se coloca bajo el segundo.
  • \mathrmpara hacer que medianparezca vertical y diferenciarlo de una multiplicación de 6 variables llamadas m, e, d, i, a y n.
  • \{y \}necesitan barras invertidas porque {y }son parte del lenguaje base LaTeX.
  • \cupque es un símbolo más bonito para una unión.

Mi código:

\documentclass[28pt]{article}

\usepackage{fancyhdr}

\usepackage[includeheadfoot,margin=1.0cm]{geometry} 
\usepackage{amsmath,amsthm,amssymb}
\usepackage{enumitem}
\usepackage{mathtools}
\usepackage{framed}
\usepackage{chessfss} %chess figure for HW #2
\usepackage[english]{babel} %table for problem A.43
\usepackage{multirow} %table for problem A.43
%\usepackage[table]{xcolor} color certain blocks in a table
%\usepackage[pass,showframe]{geometry}  just to show the margins
\usepackage[makeroom]{cancel}
\usepackage{array}  %BETWEEN TWO 2-DIGIT NUMBERS

\newcommand{\N}{\mathbb{N}}
\newcommand{\Z}{\mathbb{Z}}
\newcommand{\thedate}{\today}

\newtheoremstyle{case}{}{}{}{}{}{:}{ }{}
\theoremstyle{case}
\newtheorem{case}{Case}


\newenvironment{theorem}[2][Theorem]{\begin{trivlist}
\item[\hskip \labelsep {\bfseries #1}\hskip \labelsep {\bfseries #2.}]}{\end{trivlist}}
\newenvironment{lemma}[2][Lemma]{\begin{trivlist}
\item[\hskip \labelsep {\bfseries #1}\hskip \labelsep {\bfseries #2.}]}{\end{trivlist}}
\newenvironment{exercise}[2][Exercise]{\begin{trivlist}
\item[\hskip \labelsep {\bfseries #1}\hskip \labelsep {\bfseries #2.}]}{\end{trivlist}}
\newenvironment{problem}[2][Problem]{\begin{trivlist}
\item[\hskip \labelsep {\bfseries #1}\hskip \labelsep {\bfseries #2.}]}{\end{trivlist}}
\newenvironment{question}[2][Question]{\begin{trivlist}
\item[\hskip \labelsep {\bfseries #1}\hskip \labelsep {\bfseries #2.}]}{\end{trivlist}}
\newenvironment{corollary}[2][Corollary]{\begin{trivlist}
\item[\hskip \labelsep {\bfseries #1}\hskip \labelsep {\bfseries #2.}]}{\end{trivlist}}

\begin{document}
\begin{problem}{C.35}
\textit{Use the formula $T(m,n)=\underset{row n of Pascal's triangle}{\mathrm{\left(1,n,\binom{n}{2},\dotsc,1 \right)}} \cdot \underset{m^{th} powers with alternating signs}{\mathrm{n^{m},-(n-1)^{m},(n-2)^{m}}}$ to calculate T$(10,3)$ and T$(10,4)$.}
\begin{flushleft}

\end{flushleft}
\end{problem}

\end{document}

Respuesta1

Aquí utilicé pilas para el subconjunto y presenté la ecuación en estilo de visualización.

\documentclass[28pt]{article}

\usepackage{fancyhdr}

\usepackage[includeheadfoot,margin=1.0cm]{geometry} 
\usepackage{amsmath,amsthm,amssymb}
\usepackage{enumitem}
\usepackage{mathtools}
\usepackage{framed}
\usepackage{chessfss} %chess figure for HW #2
\usepackage[english]{babel} %table for problem A.43
\usepackage{multirow} %table for problem A.43
%\usepackage[table]{xcolor} color certain blocks in a table
%\usepackage[pass,showframe]{geometry}  just to show the margins
\usepackage[makeroom]{cancel}
\usepackage{array}  %BETWEEN TWO 2-DIGIT NUMBERS
\usepackage{stackengine}
\stackMath
\newcommand{\N}{\mathbb{N}}
\newcommand{\Z}{\mathbb{Z}}
\newcommand{\thedate}{\today}

\newtheoremstyle{case}{}{}{}{}{}{:}{ }{}
\theoremstyle{case}
\newtheorem{case}{Case}


\newenvironment{theorem}[2][Theorem]{\begin{trivlist}
\item[\hskip \labelsep {\bfseries #1}\hskip \labelsep {\bfseries #2.}]}{\end{trivlist}}
\newenvironment{lemma}[2][Lemma]{\begin{trivlist}
\item[\hskip \labelsep {\bfseries #1}\hskip \labelsep {\bfseries #2.}]}{\end{trivlist}}
\newenvironment{exercise}[2][Exercise]{\begin{trivlist}
\item[\hskip \labelsep {\bfseries #1}\hskip \labelsep {\bfseries #2.}]}{\end{trivlist}}
\newenvironment{problem}[2][Problem]{\begin{trivlist}
\item[\hskip \labelsep {\bfseries #1}\hskip \labelsep {\bfseries #2.}]}{\end{trivlist}}
\newenvironment{question}[2][Question]{\begin{trivlist}
\item[\hskip \labelsep {\bfseries #1}\hskip \labelsep {\bfseries #2.}]}{\end{trivlist}}
\newenvironment{corollary}[2][Corollary]{\begin{trivlist}
\item[\hskip \labelsep {\bfseries #1}\hskip \labelsep {\bfseries #2.}]}{\end{trivlist}}

\begin{document}
\begin{problem}{C.35}
\textit{Use the formula 
\[
\renewcommand\stacktype{L}
\renewcommand\useanchorwidth{T}
T(m,n)=\stackunder[1.5\baselineskip]{\mathrm{\left(1,n,\binom{n}{2},\dotsc,1 \right)}}
{\stackunder{\textup{row $n$ of}}{\textup{ Pascal's triangle}}}
 \cdot \stackunder[1.5\baselineskip]{\left(\mathrm{n^{m},-(n-1)^{m},(n-2)^{m}},\dots\right)}
 {\stackunder{\textup{$m^{th}$ powers with}}{\textup{alternating signs}}}
\] 
to calculate T$(10,3)$ and T$(10,4)$.}
\begin{flushleft}

\end{flushleft}
\end{problem}

\end{document}

ingrese la descripción de la imagen aquí

información relacionada