Math & ScienceQuestions about Equations and Terms

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
cloud28
Posts: 2
Joined: Wed Aug 24, 2011 9:02 pm

Questions about Equations and Terms

Post by cloud28 »

Hi, I am a beginner just starting to learn LaTeX, I have a couple of questions:
excerpt.png
excerpt.png (60.26 KiB) Viewed 1888 times
First, how do I type St with t as a subscript?

Second, how do I type the first equation? I need something like
dSt = u S dt + v S dWt

For this I typed:

Code: Select all

\begin{equation}\label{GMB}
{dS$_t$} = u\S\{dt} + v\S\{dW$_t$}
\end{equation}
but didn't work?

Thanks so much!
Last edited by cloud28 on Wed Aug 24, 2011 10:19 pm, edited 3 times in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Questions about Equations and Terms

Post by localghost »

Regarding math typesetting you need to do some basic reading [1]. Advanced stuff can be found in the excellent »Math mode« document.

Code: Select all

\documentclass[11pt]{article}
\usepackage[T1]{fontenc}
\usepackage{mathtools}   % loads »amsmath«
\usepackage{xfrac}
\usepackage{fix-cm}

\begin{document}
  \[
    dS_t=u\,S\,dt+v\,S\,dW_t
  \]
  \[
    S_t=S_0\exp\left[\left(u-\sfrac{v^2}{2}\right)t+vW_t\right]
  \]
\end{document}
The second equation has been tweaked by the xfrac package for typesetting a nice fraction.

[1] View topic: LaTeX Resources for Beginners


Best regards and welcome to the board
Thorsten
cloud28
Posts: 2
Joined: Wed Aug 24, 2011 9:02 pm

Re: Questions about Equations and Terms

Post by cloud28 »

Thanks so much for the fast reply, I eventually figured it out! :D

I have one more question, how do I type a dot multiplication symbol in text rather than using the new equation parameters?

for example (u - v "dot" v/2)

Thanks so much!
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Questions about Equations and Terms

Post by localghost »

Since your struggling with those elementary things, I again strongly recommend some basic reading.

Code: Select all

\[
  (u - v \cdot \frac{v}{2})
\]
Post Reply