1

I'm trying to create an equation in LaTeX, however, there seems to be a gigantic white space that is rather unsightly. Here's the code I'm using:

\[
x=a\sqrt[n]{1-\left(\dfrac{\sqrt[n]{\dfrac{\sqrt[2-n]{\left(\dfrac{a} 
{b}\right)^{2n}}}{\dfrac{1}{a^n}+\dfrac{1}{b^n}\left(\sqrt[2-n] 
{\left(\dfrac{a}{b}\right)^{2n}}\right)}}}{b}\right)^n}
\]

enter image description here

Is there a way to shorten the braces and root so that they look somewhat closer to this? enter image description here

4

2 Answers 2

2

I'm not sure such a horrible formula can help the reader.

Anyway it's possible to make it less ugly without guessing dimensions. I added a two-story version, anyhow.

\documentclass{article}
\usepackage{amsmath}

\begin{document}

\[
\sbox0{$\displaystyle
  \dfrac{
    \sqrt[n]{
      \dfrac{
        \sqrt[2-n]{\left(\dfrac{a}{b}\right)^{2n}}
      }{
        \dfrac{1}{a^n}+
        \dfrac{1}{b^n}\sqrt[2-n]{\left(\dfrac{a}{b}\right)^{2n}}
      }
    }
  }{b}
$}
%
x=a\sqrt[n]{
  1-
  \raisebox{\dimexpr\depth-3\fontdimen22\textfont2}{$
    \left(\begin{gathered}\usebox{0}\end{gathered}\:\right)^n
  $}
}
\]

\[
x=a
\left(1-
  \left(
    \dfrac{1}{b}
    \sqrt[n]{
      \dfrac{
        (a/b)^{2n/(2-n)}
      }{
        a^{-n}+b^{-n}(a/b)^{2n/(2-n)}
      }
    }\,
  \right)^{\!\!n}\;
\right)^{\!\!1/n}
\]

\end{document}

enter image description here

0

I propose this hack, found with trial and error:

\documentclass{article}
 \usepackage{mathtools}

\begin{document}

\[
\raisebox{-4.25ex}{$ x=a $}\sqrt[n]{\raisebox{-4.25ex}{$ 1- {}$}\begin{pmatrix}\dfrac{\sqrt[n]{\dfrac{\sqrt[2-n]{\left(\dfrac{a}
{b}\right)^{2n}}}{\dfrac{1}{a^n}+\dfrac{1}{b^n}\left(\sqrt[2-n]
{\left(\dfrac{a}{b}\right)^{2n}}\right)}}}{\begin{matrix}b \\ \mbox{}\end{matrix}}\end{pmatrix}^n}
\]

\end{document} 

enter image description here

Not the answer you're looking for? Browse other questions tagged .