So i am writing up some maths definitions for my exams and for some reason Texworks says that I have a 'missing $' in my line of work, however I cannot see anything wrong with it.
\subsection{Directional Derivative}
Let $\Omega \subset \mathbb{R}^n$ be open and let $f:\Omega \to \mathbb{R}$ be a continuosly differentiable scalar field on $\Omega$. Let $\vec{\hat{a}}$ be a unit vector in $\mathbb{R}^n$ Then:
$$D\hat{a}f(\vec{x_0})=\lim_{h \to 0}\frac{(f(\vec{x_0}+h\vec{\hat{a}}-f(\vec{x_0})}{h}$$
is the \bi{directional derivative} of fin the direction $\vec{\hat{a}}$
\subsection{ $\nabla$ Operator}
The \textit{\textbf{ $\nabla$ or del operator}} is written formally as
$$ \nabla = \frac{\partial}{\partial x_1}\vect{e_1} + \frac{\partial}{\partial x_2}\vect{e_2}+ \dots \frac{\partial}{\partial x_n}\vect{e_n}$$
\subsection{Gradient}
Let $f:\Omega \to \mathbb{R}$ be a continuously differentiable scalar field on an open set $\Omega \subset \mathbb{R}^n$ Then:
$$grad \, f\equiv \nabla f:=\frac{\partial f}{\partial x_1}\vect{e}_1+\dots+\frac{\partial f}{\partial x_n}\vec{e}_n$$ is the \bi{gradient} on $\Omega$ which is itself a vector field. And is obatained by applying the $\nabla$ Operator to the function.
\subsection{Divergence of F}
If I ignore the error and force it to finish I get a weird repitition of e_1 getting smaller and smaller and then one partial derivative at the end.
When in fact it should be a sum of partial derivatives.
Does anybody know what I am doing wrong?
\vect{}or which packages are you loading that provides that command? – Willie Wong May 02 '13 at 11:09\(...\)and theequationenvironments, it is easier not to mess them up. The "missing $" is most often for using a math-only construct outside of math. – vonbrand May 02 '13 at 11:09$$ ... $$, see Why is\[ … \]preferable to$$? – Torbjørn T. May 02 '13 at 11:18\documentclass{article} \usepackage{amsmath,amsfonts} \let\vect\vec \let\bi\emphas a preamble, I have no problem. So there must be something else hidden in your preamble. – cjorssen May 02 '13 at 11:26