I wonder if there could be a tricky automated way to detect fractions within "parentheses, brackets, braces" to adjust their heights to the maximum height of the candidates. See picture below and highlighted in yellow.
The minimal example is given by:
\documentclass{article}
\usepackage{amsmath,amssymb}
\begin{document}
\begin{align*}
I_x&=\int y^2\,\underbrace{\text{d}A}_{=\text{d}x\text{d}y}=4\left(\int \limits_{x=0}^{\frac{B}{2}-\frac{b}{2}}\int \limits_{y=0}^{\frac{H}{2}}y^2\,\text{d}y\text{d}x+\int\limits_{x=\frac{B}{2}-\frac{b}{2}}^{\frac{B}{2}}\int \limits_{y=\frac{h}{2}}^{\frac{H}{2}}y^2\,\text{d}y\text{d}x\right)\\
&=4\left(\left[x\right]_{x=0}^{\frac{B}{2}-\frac{b}{2}}\cdot \left[\frac{1}{3}y^3\right]_{y=0}^{\frac{H}{2}}+\left[x\right]_{x= \frac{B}{2}-\frac{b}{2}}^{\frac{B}{2}}\cdot \left[\frac{1}{3}y^3\right]_{y=\frac{h}{2}}^{\frac{H}{2}}\right)\\
&=\frac{BH^3-bh^3}{12}
\end{align*}
\end{document}
Any hints appreciated. As told above - the target is to detect the fractions and then adjust the height to all other parentheses, brackets, braces alike.
The way I did looks quite ugly to my sense of good typing ...
Hope I was precise enough!



\big,\bigg,\Big, or\Bigginstead of\left...\right. – Steven B. Segletes Apr 14 '18 at 20:18\bigs to\Biggs, it seems trivial to just do it with the editor, rather than writing code to detect and remedy it. – Steven B. Segletes Apr 14 '18 at 20:32\text{d}; you should use\mathrm{...}or for bold simbol\mathbf. – Sebastiano Apr 14 '18 at 20:36