I am having such a hard time to write this formula in the LaTeX form. I have never used LaTeX before and I know this is not difficult, but how to get that long square root and exponential? Any help will be appreciated. Thanks.

# [Tex/LaTex] How to write a long square root

equations

#### Related Solutions

How about

(You are obviously free to come up with snazzier symbols than "B", "C", and "D".)

```
\documentclass[12pt]{article}
\usepackage{mathtools}
\begin{document}
Let
\begin{equation}
a(t) =
\frac{6.67384\cdot 10^{-11}\cdot 5.972\cdot 10^{24}}{B}
\end{equation}
where
\begin{align*}
B&= \bigl[149.6\sin C-0.908D \bigr]^2\\
&\quad+ \bigl[149.638 - 0.418D- 149.6 \cos C\bigr]^2 + 0.0002831\,,\\
C &= 3\pi t/(47\cdot 10^6)
\shortintertext{and}
D &= 2.5\cdot 10^{-8} t^2 + 9.479 \cdot 10^{-6}\bigl(t+
\lvert t-379.189\rvert -379.189\bigr)
\end{align*}
\end{document}
```

- I used the
`align`

environment. - In addition, using
`\left(`

and`\right.`

to open a bracket and close it invisible to be able to split. - I used
`\notag`

to avoid the equation number in the first line. - I avoided the
`sqrt`

by using`^{1/2}`

. - Make sure to read Big Parenthesis in an Equation, see
`\biggl`

and`\biggr`

as an alternative approach to the automatic bracket size (`\left`

and`\right`

). - You can use
`\vphantom`

to force the same size for all brackets in different lines, see Linebreak between \left and \right for example. - I think that most of my code needs the
`amsmath`

package (or`mathtools`

which builds on`amsmath`

).

```
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\section*{Original}
\begin{equation}
K_{b} = \left(\max
\left( 0, \sum_{k} \max
\left( CVR_{k},0
\right)^{2}
+
\sum_{k} \sum_{k\neq l} \rho_{kl} CVR_{k}CVR_{l} \psi
\left(CVR_{k},CVR_{l}
\right)
\right)
\right)^{1/2}
\end{equation}
\section*{Basic Idea}
\begin{align}
K_{b} = & \left( \max \left( \right. \right. \\
& +
\left. abc \left. \right) \right)
\end{align}
\section*{Proposal}
\begin{align}
K_{b} = & \left( \max \left(
0, \sum_{k} \max \left( CVR_{k},0 \right)^{2}
\right. \right.
+
\notag
\\
& +
\left. \left.
\sum_{k} \sum_{k\neq l} \rho_{kl} CVR_{k}CVR_{l} \psi \left(CVR_{k},CVR_{l} \right)
\right) \right)^{\frac{1}{2}}
\end{align}
\end{document}
```

(added by daleif)

In a case like this auto scaling should not be used as it easily comes out in the wrong size. Here are two example with manual scaling. The latter use the fact that are are a bit away whatever is tall, so we do not need the fences that all, plus using different inner braces makes it a lot easier to match what ever goes together.

```
\begin{align}
K_{b} = & \biggl( \max \biggl(
0, \sum_{k} \max ( CVR_{k},0 )^{2}
+
\notag
\\
& +
\sum_{k} \sum_{k\neq l} \rho_{kl} CVR_{k}CVR_{l} \psi (CVR_{k},CVR_{l} )
\biggr) \biggr)^{\frac{1}{2}}
\end{align}
\begin{align}
K_{b} = & \Bigl( \max \Bigl\{
0, \sum_{k} \max ( CVR_{k},0 )^{2}
+
\notag
\\
& +
\sum_{k} \sum_{k\neq l} \rho_{kl} CVR_{k}CVR_{l} \psi (CVR_{k},CVR_{l} )
\Bigr\} \Bigr)^{\frac{1}{2}}
\end{align}
```

## Best Answer

This is the answer to your question.