1

The equation I'm trying to write is as follows: enter image description here

The Latex Code I've written is:

$\text{I.F.}= \frac{1}{Mk+Nt}= \frac{1}{k \sqrt{t^2+k^2}+kt-kt}= \frac{1}{k\sqrt{t^2+k^2}}$

I keep getting the aforementioned error. I've read the answers to an identical question and tried to remove any line from this equation. Still the error persists.

Student
  • 567
  • 2
    I used your code and it produces the output as desired. However, you can't use $ in an equation environment (if this should be the case) –  Jun 16 '16 at 09:07
  • The error message shows that the bug is on line 1, whereas the equation is written 65. Why? – Student Jun 16 '16 at 09:10
  • It got fixed. I forgot to use a bracket in a previous equation. – Student Jun 16 '16 at 09:16

1 Answers1

4

Changed $ as $$, and used amsmath package:

Input:

\documentclass{article}

\usepackage{amsmath}

\begin{document}

$$
\text{I.F.}= \frac{1}{Mk+Nt}= \frac{1}{k \sqrt{t^2+k^2}+kt-kt}= \frac{1}{k\sqrt{t^2+k^2}}
$$

\end{document}

Output:

enter image description here

Kumaresh PS
  • 1,267