1

I would like to create a math formula as follows. How do I write it in LaTeX?

Enter image description here

  • 6
    Welcome to TeX.SX. What have you tried so far, how far did you get? Where did you get stuck? – Johannes_B May 20 at 4:53
10

I recommend reading one of the guides listed here: What are good learning resources for a LaTeX beginner?.

\documentclass{article}
\usepackage{amsmath}
\begin{document}
\[
f\sim\mathcal{GP}(\mu(x),K(\mathbf{x},\mathbf{x}';\theta))
\] 
\end{document}

enter image description here

Next time, please add a minimal working example (MWE) of what you tried.

  • 1
    I'd suggest just a teeny tiny correction: \mathbf{x}' instead of \mathbf{x'}. It doesn't make a practical difference here but I think it is semantically better. (IMO of course.) – campa May 20 at 9:35
  • @campa Yes, it's better, corrected, thanks! – CarLaTeX May 20 at 10:28
  • I know texperts use [] but what do you use for inline expressions? $expression$ – santimirandarp May 20 at 13:14
  • @santimirandarp I this this post can be helpful to you: tex.stackexchange.com/questions/510/… – CarLaTeX May 20 at 13:30
  • thanks @CarLaTeX you're always helpful :) – santimirandarp May 20 at 13:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.