View Single Post
P: 85
 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} \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{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}
$$%\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{document}
%\end{normalsize}