MathJax

MathJax es una biblioteca javascript que permite visualizar fórmulas matemáticas en navegadores web, utilizando los lenguajes de marcado LaTeX, MathML y ASCIIMathML.

En el lenguaje $\LaTeX$, existen dos tipos de fórmulas: Las fórmulas en línea, inline, se delimitan con $$ ó \(\). En Moodle por defecto está deshabilitado el delimitador $$.
Las fórmulas en tamaño natural, displaystyle, con $$$$ ó \[\].

Un editor en línea lo podemos encontrar aquí.

Potencias, subíndices y superíndices

Para empezar, la mayoría de los comandos de $\LaTeX$ tienen la estructura \command{}{}, donde los argumentos se delimitan por {} y pueden tener 0,1 ó dos argumentos.

ExpresióncódigoExpresiónCódigo
$x^n$x^n$x^{n+1}$x^{n+1}
$(a^m)^n$(a^m)^n$a^{m^n}$a^{m^n}
$x_n$x_n$x_{n+1}$x_{n+1}
$u_{N+1}$u_{N+1}$u_{_{N+1}}$u_{_{N+1}}
$a_i^j$a_i^j$\int_a^b f(x) \, dx$\int_a^b f(x) \, dx
$\sum_{i=1}^N x_i y_i$\sum_{i=1}^N x_i y_i$\prod_{j=1}^n (x-x_i)$\prod_{j=1}^n (x-x_i)

Las fórmulas en tamaño natural aparecen:

$$\sum_{i=1}^N x_i y_i \qquad \int_a^b f(x) \, dx$$

Para desplegar en tamaño natural dentro de las fórmulas en linea use \displaystyle. El código para la última fórmula del siguiente párrafo es: S_n = \displaystyle \sum_{i=1}^n a_i

La $n$-ésima suma parcial $S_n$ se define por $S_n = \displaystyle \sum_{i=1}^n a_i$.

Fracciones y expresiones en dos niveles

Para hacer fracciones tenemos los operadores binarios: { \over } \frac{}{} \dfrac{}{}

\begin{array}{cl}
{x + 1 \over x – 1} & \texttt{{x + 1 \over x – 1}}\\
\frac{x + 1}{x – 1} & \texttt{\frac{x + 1}{x – 1}}\\
\dfrac{x + 1}{x – 1} & \texttt{\dfrac{x + 1}{x – 1}}\\
\end{array}

Las fórmulas que no presenten código lo pueden obtener por su menú contextual -> Show Math As -> TeX Commands.

$f[x_2,x_1,x_0] = { {f(x_2) – f(x_1) \over x_2 – x_1} – {f(x_1) – f(x_0) \over x_1 – x_0} \over x_2 – x_0}$

$f[x_2,x_1,x_0] = \dfrac{\dfrac{f(x_2) – f(x_1)}{x_2 – x_1} – \dfrac{f(x_1) – f(x_0)}{x_1 – x_0}}{x_2 – x_0}$

Operadores: \atop \above \brace \brack \stackrel \choose

\begin{array}{cl}
x + 1 \atop x – 1 & \texttt{x + 1 \atop x – 1}\\
x + 1 \above 2pt x – 1 & \texttt{x + 1 \above 2pt x – 1}\\
x + 1 \brace x – 1 & \texttt{x + 1 \brace x – 1}\\
x + 1 \brack x – 1 & \texttt{x + 1 \brack x – 1}\\
a \stackrel{f}{\mapsto} b & \texttt{a \stackrel{f}{\mapsto} b}\\
a \choose b & \texttt{a \choose b}
\end{array}

Comandos \substack \overset:

$${\sum_{\substack{0<i< m\\0<j<n}}a_ib_j} \qquad \prod_{\overset{i=0}{i \neq k}}^{n}\frac{w_i}{(w_i-w_k)}$$

Comando \limits:

$$\lim\limits_{x \to 0} f(x) \qquad \int\limits_a^b f(x) \, dx$$

Integrales \int \iint \iiint \oint:

$$\int_a^b f(x) \, dx \qquad \iint_S f(x,y) \, dA \qquad \iiint_B f(x,y,z) \, dV \qquad \oint_C f(r)\,dr$$

Raíces \sqrt{} \sqrt[]{}:

$$\sqrt{x + 1} \qquad \sqrt[n]{x + \sqrt{x}}$$

Delimitadores

\begin{array}{c}
\texttt{\left( \right)}\\
\texttt{\left[ \right]}\\
\texttt{\left\lbrace \right\rbrace}\\
\texttt{\left\langle \right\rangle}\\
\texttt{\left| \right|}\\
\texttt{\left\| \right\|}\\
\texttt{\lfloor \rfloor}
\end{array}

$$\left[ {x+1 \over (x-1)^2}\right]^n$$

$$\int_a^b 2x \, dx = \left. x^2 \right|_a^b$$

$$\lim\limits_{x \to \infty} \left( 1 + \frac{1}{x} \right)^x = e$$

$$\left\{ {n \in \mathbb{N} \atop r \neq 1 } \right.$$

Delimitadores adicionales:

\begin{array}{c}
\texttt{\Biggl \Biggr}\\
\texttt{\biggl \biggr}\\
\texttt{\Bigl \Bigr}\\
\texttt{\bigl \bigr}
\end{array}

$\Biggl( \biggl( \Bigl( \bigl($

$$\int_a^b 2x \, dx = x^2 \biggr|_a^b$$

$$\biggl[ \sum_j \Bigl| \sum_i x_{ij} \Bigr|^2 \biggr]^{1/2}$$

clásico:
$$\left[ \sum_j \left|\sum_i x_{ij}\right|^2\right]^{1/2}$$

Acentos: \hat{} \tilde{} \bar{} \vec{}\ dot{} \overrightarrow{} \overline{} \overbrace{} \underbrace{}:

$\hat{a} \quad \tilde{a} \quad \bar{A} \quad \vec{u}\ \quad \dot{a}$

$\overrightarrow{AB} \quad \overline{CD}$

$$\int x(x^2 + 3)^4 \, dx = \frac{1}{2}\int (\underbrace{ x^2 + 3}_u)^4 \overbrace{2 x \, dx}^{du} = \dfrac{1}{10}(x^2 + 3)^5 + C$$

Leyes de De Morgan:
$\displaystyle{ \left\{
{ \overline{A \cup B} = \overline{A} \cap \overline{B} \atop \overline{A \cap B} = \overline{A}\cup \overline{B}
} \right.}$

Texto \mathbb{} \mathbf{} \mathcal{} \mathrm{} \boldsymbol{}:

$\mathbb{Z}$

$\mathbf{u} = \dfrac{\vec{u}}{\left| u \right| }$

$\mathcal{L}: {\mathrm{P} = \mathrm{P}_0 + \mathsf{t} \, \vec{a}, \, \mathsf{t} \in \mathbb{R}}$

$C = 2\boldsymbol{\pi}r$

Espacios \, \; \! \: \quad \qquad \hspace{}.

Arreglos:
\begin{array}{l}
\texttt{\begin{array}{lcl}}\\
\texttt{ & & \\\\}\\
\texttt{ & & \\\\}\\
\texttt{\end{array}}
\end{array}

$$f(x) = \left\lbrace \begin{array}{lcl}
x^2 & \text{si} & x < 0 \\[0.5cm] x-1 & \text{si} & x > 0
\end{array}\right.$$

Matrices smallmatrix pmatrix bmatrix Bmatrix vmatrix Vmatrix y puntos \cdots \vdots \ddots.

Matriz ajustada $\bigl( \begin{smallmatrix}a & b \\ c & d \end{smallmatrix}\bigr)$

\begin{pmatrix}
a_{11} & a_{12} & a_{33} & \cdots & a_{1n} \\
a_{21} & a_{22} & a_{23} & \cdots & a_{2n} \\
a_{31} & a_{32} & a_{33} & \cdots & a_{3n} \\
\vdots & \vdots & \vdots & \ddots & \vdots \\
a_{m1} & a_{m2} & a_{m3} & \cdots & a_{mn}
\end{pmatrix}

Multilineas

\begin{align*}
\lim\limits_{x \to 2} \frac{x^4 + x^3 – 5x^2 + x – 6}{x^3 – 4x^2 + x + 6} \\
\text{Al evaluar el limite, se tiene una indeterminaciónde 0/0}\\
\lim\limits_{x \to 2} \frac{x^4 + x^3 – 5x^2 + x – 6}{x^3 – 4x^2 + x + 6} &= \lim\limits_{x \to 2} \frac{(x-2)(x+3)(x^2 + 1)}{(x-2)(x-3)(x+1)} & \text{factorizando}\\
&= \lim\limits_{x \to 2} \frac{(x+3)(x^2 + 1)}{(x-3)(x+1)} & \text{eliminando el factor común}\\
&= – \frac{25}{3}
\end{align*}

Símbolos

Letras griegas:

\begin{array}{llll}
\alpha \text{ \alpha} & \kappa \text{ \kappa} & \varsigma \text{ \varsigma} & \Lambda \text{ \Lambda}\\
\beta \text{ \beta} & \lambda \text{ \lambda} & \tau \text{ \tau} & \Xi \text{ \Xi}\\
\gamma \text{ \gamma} & \mu \text{ \mu} & \upsilon \text{ \upsilon} & \Pi \text{ \Pi}\\
\delta \text{ \delta} & \nu \text{ \nu} & \phi \text{ \phi} & \Sigma \text{ \Sigma}\\
\epsilon \text{ \epsilon} & \xi \text{ \xi} & \varphi \text{ \varphi} & \Upsilon \text{ \Upsilon}\\
\varepsilon \text{ \varepsilon} & o \text{ o} & \chi \text{ \chi} & \Phi \text{ \Phi}\\
\zeta \text{ \zeta} & \pi \text{ \pi} & \psi \text{ \psi} & \Psi \text{ \Psi}\\
\eta \text{ \eta} & \varpi \text{ \varpi} & \omega \text{ \omega} & \Omega \text{ \Omega}\\
\theta\text{ \theta} & \rho \text{ \rho} & \Gamma \text{ \Gamma}\\
\vartheta \text{ \vartheta} & \varrho \text{ \varrho} & \Delta \text{ \Delta}\\
\iota \text{ \iota} & \sigma \text{ \sigma} & \Theta \text{ \Theta}
\end{array}

Operadores binarios:

\begin{array}{llll}
\pm \text{ \pm} & \circ \text{ \circ} & \triangleleft \text{ \triangleleft} & \oplus\text{ \oplus}\\
\mp \text{ \mp} & \bullet \text{ \bullet} & \triangleright \text{ \triangleright} & \ominus\text{ \ominus}\\
\setminus \text{ \setminus} & \div \text{ \div} & \wr \text{ \wr} & \otimes \text{ \otimes}\\
\cdot \text{ \cdot} & \cap \text{ \cap} & \bigcirc \text{ \bigcirc} & \oslash \text{ \oslash}\\
\times \text{ \times} & \cup \text{ \cup} & \bigtriangleup \text{ \bigtriangleup} & \odot \text{ \odot}\\
\ast \text{ \ast} & \uplus \text{ \uplus} & \bigtriangledown \text{ \bigtriangledown} & \dagger \text{ \dagger}\\
\star \text{ \star} & \sqcap \text{ \sqcap} & \vee \text{ \vee} & \ddagger \text{ \ddagger}\\
\diamond \text{ \diamond} & \sqcup \text{ \sqcup} & \wedge \text{ \wedge} & \amalg \text{ \amalg}
\end{array}

Relaciones:

\begin{array}{llll}
\leq \text{ \leq} & \subseteq \text{ \subseteq} & \frown \text{ \frown} & \cong \text{ \cong}\\
\geq \text{ \geq} & \sqsubseteq \text{ \sqsubseteq} & \dashv \text{ \dashv} & \bowtie \text{ \bowtie}\\
\succ \text{ \succ} & \supset \text{ \supset} & \mid \text{ \mid} & \propto \text{ \propto}\\
\succeq \text{ \succeq} & \supseteq \text{ \supseteq} & \parallel \text{ \parallel} & \models \text{ \models}\\
\gg \text{ \gg} & \sqsupseteq \text{ \sqsupseteq} & \equiv \text{ \equiv} & \doteq \text{ \doteq}\\
\ll \text{ \ll} & \in \text{ \in} & \sim \text{ \sim} & \perp \text{ \perp}\\
\prec \text{ \prec} & \ni \text{ \ni} & \simeq \text{ \simeq} & \neq \text{ \neq}\\
\preceq \text{ \preceq} & \vdash \text{ \vdash} & \asymp \text{ \asymp} & \Join \text{ \Join}\\
\subset \text{ \subset} & \smile \text{ \smile} & \approx \text{ \approx}
\end{array}

Para las negaciones anteponga \not

$\not= \not< \not> \not\sim \not\approx$

Otros símbolos:

\begin{array}{llll}
\aleph\text{ \aleph} & \partial \text{ \partial} & | \text{ |} & \natural \text{ \natural}\\
\hbar \text{ \hbar} & \infty \text{ \infty} & \angle \text{ \angle} & \sharp \text{ \sharp}\\
\imath \text{ \imath} & \prime \text{ \prime} & \triangle \text{ \triangle} & \clubsuit \text{ \clubsuit}\\
\jmath \text{ \jmath} & \emptyset \text{ \emptyset} & \backslash \text{ \backslash} & \diamondsuit \text{ \diamondsuit}\\
\ell \text{ \ell} & \nabla \text{ \nabla} & \forall \text{ \forall} & \heartsuit \text{ \heartsuit}\\
\wp \text{ \wp} & \surd \text{ \surd} & \exists \text{ \exists} & \spadesuit \text{ \spadesuit}\\
\Re \text{ \Re} & \top \text{ \top} & \neg \text{ \neg}\\
\Im \text{ \Im} & \bot \text{ \bot} & \flat \text{ \flat}
\end{array}

\begin{array}{llll}
\mathbb{R} \text{ \mathbb{R}} & \gtrdot \text{ \gtrdot} & \lesseqqgtr \text{ \lesseqqgtr} & \Supset \text{ \Supset}\\
\mathbb{Q} \text{ \mathbb{Q}} & \gtrless \text{ \gtrless} & \doteqdot \text{ \doteqdot} & \sqsubset \text{ \sqsubset}\\
\mathbb{Z} \text{ \mathbb{Z}} & \eqslantless \text{ \eqslantless} & \risingdotseq \text{ \risingdotseq} & \sqsupset \text{ \sqsupset}\\
\mathbb{I} \text{ \mathbb{I}} & \lesssim \text{ \lesssim} & \fallingdotseq \text{ \fallingdotseqq} & \succcurlyeq \text{ \succcurlyeq}\\
\therefore \text{ \therefore} & \lessapprox \text{ \lessapprox} & \circeq \text{ \circeq} & \preccurlyeq \text{ \preccurlyeq}\\
\because \text{ \because} & \approxeq \text{ \approxeq} & \triangleq \text{ \triangleq} & \curlyeqprec \text{ \curlyeqprec}\\
\leqq \text{ \leqq} & \lessdot \text{ \lessdot} & \thicksim \text{ \thicksim} & \curlyeqsucc \text{ \curlyeqsucc}\\
\geqq \text{ \geqq} & \gtreqless \text{ \gtreqless} & \thickapprox \text{ \thickapprox} & \precsim \text{ \precsim}\\
\leqslant \text{ \leqslant} & \gtreqqless \text{ \gtreqqless} & \backsim \text{ \backsim} & \succsim \text{ \succsim}\\
\geqslant \text{ \geqslant} & \lll \text{ \lll} & \backsimeq \text{ \backsimeq} & \precapprox \text{ \precapprox}\\
\eqslantgtr \text{ \eqslantgtr} & \ggg \text{ \ggg} & \subseteqq \text{ \subseteqq} & \succapprox \text{ \succapprox}\\
\gtrsim \text{ \gtrsim} & \lessgtr \text{ \lessgtr} & \supseteqq \text{ \supseteqq} & \vartriangleright \text{ \vartriangleright}\\
\gtrapprox \text{ \gtrapprox} & \lesseqgtr \text{ \lesseqgtr} & \Subset \text{ \Subset} & \trianglerighteq \text{ \trianglerighteq}
\end{array}


Posted

in

by

Tags:

Comments

Agregue un comentario

Su dirección de correo no se hará público. Los campos requeridos están marcados *