
Eu tenho esse MWE:
\documentclass[a4paper,12pt]{article}
\usepackage{mathtools,amssymb}
\begin{document}
\[
\begin{cases} \frac{\partial f}{\partial x} =& 2x(1 - y)=0 \iff x = 0 \quad \text{o} \quad y = 1 \\
\frac{\partial f}{\partial y} =& (x^2 + y^2)(-1) + 2y(x^2 + y^2)(1 - y)=0
\end{cases}
\]
\[H(x,y)=
\begin{bmatrix} \frac{\partial^2 f}{\partial x^2} & \frac{\partial^2 f}{\partial x \partial y} \\ \frac{\partial^2 f}{\partial x \partial y} & \frac{\partial^2 f}{\partial y^2}
\end{bmatrix} \]
\[
\begin{cases} \dfrac{\partial f}{\partial x} =& 2x(1 - y)=0 \iff x = 0 \quad \text{o} \quad y = 1 \\[10pt]
\dfrac{\partial f}{\partial y} =& (x^2 + y^2)(-1) + 2y(x^2 + y^2)(1 - y)=0
\end{cases}
\]
\[H(x,y)=
\begin{bmatrix} \dfrac{\partial^2 f}{\partial x^2} & \dfrac{\partial^2 f}{\partial x \partial y} \\[10pt] \dfrac{\partial^2 f}{\partial x \partial y} & \dfrac{\partial^2 f}{\partial y^2}
\end{bmatrix} \]
\end{document}
Usando o
cases
ambiente e forbmatrix
, para ter um espaço visível devo forçar o uso da opção (por exemplo)[10pt]
?
Por que quando uso o comando a
\frac{}{}
fração\[ ...\]
é pequena e para ter uma fração normal devo usar \dfrac?
Responder1
Minha principal sugestão é que você use, \\[\jot]
em vez de \\[10mm]
no final das linhas, que deve haver algum espaço em branco extra colocado abaixo delas. (Como @wipet apontou em um comentário, \jot
é um registro de dimensão definido tanto no PlainTeX quanto no kernel LaTeX.) Por padrão, \\[\jot]
insere 3pt
espaços em branco verticais extras abaixo de uma linha. 3pt
não é muito, mas geralmente é suficiente para melhorar significativamente a aparência de alguma expressão de duas ou várias linhas. Use \setlength
ou \addtolength
para modificar o valor padrão.
Um comentário separado: eu não usaria um cases
ambiente aqui, já que você mal usa o maquinário desse ambiente e gera quantidades inesperadas (e provavelmente indesejadas) de espaços em branco horizontais quando usado incorretamente. Em vez disso, eu usaria um array
ambiente (se \textstyle
a matemática for necessária) ou um aligned
ambiente, se \displaystyle
a matemática for necessária.
\documentclass[a4paper,12pt]{article}
\usepackage{amsmath} % for 'cases' and 'aligned' environments
% and '\jot' macro (default: 3pt)
\begin{document}
\[
\begin{cases}
\frac{\partial f}{\partial x} =& 2x(1 - y)=0 \iff x = 0 \quad \text{or} \quad y = 1 \\
\frac{\partial f}{\partial y} =& (x^2 + y^2)(-1) + 2y(x^2 + y^2)(1 - y)=0
\end{cases}
\]
\[
\left\{ \begin{array}{@{} r @{{}={}} l @{}}
\frac{\partial f}{\partial x} & 2x(1 - y)=0 \iff x = 0 \quad \text{or} \quad y = 1 \\[\jot]
\frac{\partial f}{\partial y} & (x^2 + y^2)(-1) + 2y(x^2 + y^2)(1 - y)=0
\end{array} \right.
\]
\[
\left\{ \begin{aligned}
\frac{\partial f}{\partial x} &= 2x(1 - y)=0 \iff x = 0 \quad \text{or} \quad y = 1 \\[\jot]
\frac{\partial f}{\partial y} &= (x^2 + y^2)(-1) + 2y(x^2 + y^2)(1 - y)=0
\end{aligned} \right.
\]
\medskip
\[
\begin{bmatrix}
\frac{\partial^2 f}{\partial x^2} &
\frac{\partial^2 f}{\partial x \partial y} \\
\frac{\partial^2 f}{\partial x \partial y} &
\frac{\partial^2 f}{\partial y^2}
\end{bmatrix}
\quad\text{vs.}\quad
\begin{bmatrix}
\frac{\partial^2 f}{\partial x^2} &
\frac{\partial^2 f}{\partial x \partial y} \\[\jot]
\frac{\partial^2 f}{\partial x \partial y} &
\frac{\partial^2 f}{\partial y^2}
\end{bmatrix}
\]
\end{document}