View Single Post
Triss
#763
Oct20-06, 03:29 AM
P: 85
Quote Quote by loop quantum gravity
hi, im using texniccenter, and i would appreciate if someone could sopt my errors in my code, and help me correct it.
here's the code:
\begin{normalsize}
\begin{document}
\begin{equation}
\normalsize
m\int\limits_{x_1}^{x_2}
\frac{dv}{dt}dx=\int\limits_'{x_1}^{x_2}F(x)dx
\nonumber\\
dx=\frac{dx}{dt}dt=vdt
\nonumber\\
m\int\limits_{x_1}^{x_2}\frac{dv}{dt}dx=m\int\limits_{t_1}^{t_2}\frac{d v}{dt}vdt
\nonumber\\
=\int\limits_{t_1}^{t_2}\frac(d}{dt}
(\frac{1}{2}v^2)dt=\frac{1}{2}m[v_2^2-v_1^2]
\end{equation}
\end{document}
\end{normalsize}
It does not matter what program you used. If it will not compile it will not compile no matter the program you are useing.

First of all, *never* put any enviroments around, or outside your main document -- just doesn't work. \normalsize also does nothing for you in a math enviroment. a few other errors where in how you used \limits and \frac{}{}. The following compiles nicely

\documentclass{article}

%\begin{normalsize}
\begin{document}
\begin{equation}
%\normalsize
m\int\limits_{x_1}^{x_2}
\frac{dv}{dt}dx=\int\limits_{x_1}^{x_2}F(x)dx %removed '
\nonumber\\
dx=\frac{dx}{dt}dt=vdt
\nonumber\\
m\int\limits_{x_1}^{x_2}\frac{dv}{dt}dx=m\int\limits_{t_1}^{t_2}\frac{dv}{dt}vdt
\nonumber\\
=\int\limits_{t_1}^{t_2}\frac{d}{dt} %corrected ( => {
(\frac{1}{2}v^2)dt=\frac{1}{2}m[v_2^2-v_1^2]
\end{equation}
\end{document}
%\end{normalsize}