7

How do I write this in Latex. I've looked everywhere and to be honest I don't even know how to describe it in google search bar.

I have

$$(\frac{\partial u}{\partial t})_(t=0)$$

but it's the last part that does work properly

This

Torbjørn T.
  • 206,688
Jerry
  • 71

2 Answers2

7

The underscore character (_) will make only one math atom a subscript. In the case of your code, it was the (. To make it work you have to group the t=0 using braces ({...}).

Also, use \left( and \right) instead of just ( and ) to make the parentheses taller for the fraction.

Finally, use \[ and \] to delimit the display math instead of $$ (reference).

enter image description here

\documentclass{article}
\usepackage{amsmath}
\begin{document}
\[\left(\frac{\partial u}{\partial t}\right)_{t=0}\]
\end{document}
  • That is perfect thank you. I meant to use the curly brackets instead of the normal ones but I would have never of figured t out. And I was just going to ask you how to make the brackets taller. Also, I will try the [ instead of $$ It all works, thank you very much and hope you have a great day. – Jerry Mar 08 '18 at 12:27
6

I suggest using a dedicated package like esdiff to simplify typing. It defined a \diffp{function}{variables} command. In addition, the order of crossed partial derivatives is automatically calculated. The evaluation point of partial derivatives is added in the \diffp* command:

\documentclass{article}%

\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{fourier}
\usepackage[thinc]{esdiff}

 \begin{document}

\[ \diffp*{u}{t}{t = 0}\qquad \diffp{u}{t x}\qquad \diffp{u}{{t^2} x}\]%

 \end{document}

enter image description here

Bernard
  • 271,350