0

enter image description here I want to write this equation:

Here is my current LaTeX code: D(u,v) = {(u-\frac{P}{2}^{2} + (v - \frac{Q}{2})^{2}]}^{\frac{1}{2}}

0

1 Answer 1

3

\left and \right give stretchy delimiters:

enter image description here

\documentclass{article}

\usepackage{amsmath}

\begin{document}

\[
 D(u,v) = \left[\left(u-\frac{P}{2}\right)^{2} +
               \left (v - \frac{Q}{2}\right)^{2}\right]^{\frac{1}{2}}
\]

\end{document}
1
  • I learned something new, that would help a lot in future, thanks :)
    – Parhubix
    Commented Oct 2, 2021 at 22:17

You must log in to answer this question.

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