Simple mathematical equation in overleaf

equations

I have needed to type a simple mathematical equation into my PhD thesis, on overleaf.

target number = {(a x b)/(c x d)} x constant.

I don't quite know how to use the equation function as I'm new to coding… if someone could please tell me the code that produces the equation above, I would be most thankful.

It would be really good, if the format of the equation could be designed as follows;

  1. The content within the curly brackets be written out in two lines, as in (a x b) on top line and (c x d) on the bottom line with the x constant aligned in the middle which would also align with the "target number" on the left hand side.
  2. underneath the "target number" on the left hand side, within brackets, write its units (number/ul)

Thank you so much!

Best Answer

Mostly off-topic:

  • Overleaf has nothing to do how you write equations ar other math expressions. This is task of LaTeX.
  • To make yourself more familiar with LaTeX and the way how to write equation by it, I strongly encourage to consider @daleif comment.
  • For advance math is worth to read wiki Advance Math

It seems that you in your thesis use quantities. For writing them on proper way in accordance with SI (Système International d’Unités) rules published in CGPM (Conférence Génrale des Poids et Mesures) you should consider to use package siunitx. In its documentation you will find thoroughly explained how to use packages in writing units, quantities and design tables with with collected values.

An MWE (Minimal Working Example) in which consider of use of the siunitx package and mimic desired form of equation can be:


\documentclass{article}
\usepackage{amsmath} % for use of \underset
\usepackage{siunitx}
\sisetup{inter-unit-product=\ensuremath{{}\cdot{}}}

\begin{document}
\begin{equation}
\underset{[\unit{\kilogram\meter\per\second}]}
         {h} = \frac{a \times b}{c \times d} \times k
\end{equation}
\end{document}

enter image description here

Note: Usually (in technical texts at least) aren't used dots between units. Also \times are more or less reserved for denote vector product. Without them you will get:

\documentclass{article}
\usepackage{amsmath}
\usepackage{siunitx}

\begin{document}
\begin{equation}
\underset{[\unit{\kilogram\meter\per\second}]}
         {h} = \frac{ab}{cd} k
\end{equation}
\end{document}

enter image description here