All formulas

Waves and optics

Thin lens equation - formula in LaTeX

The thin lens equation. For a virtual image y is negative, and for a diverging lens the focal length is negative. The three fractions written with \dfrac share the same height, so the equation looks even inline too.

1f=1x+1y\dfrac{1}{f} = \dfrac{1}{x} + \dfrac{1}{y}

LaTeX code

$$
\dfrac{1}{f} = \dfrac{1}{x} + \dfrac{1}{y}
$$

Got this formula in your notes or on a whiteboard? Snap a photo and CamteX turns it into LaTeX. Try it free

What the symbols mean

ff
focal length of the lens (m)
xx
distance from the object to the lens (m)
yy
distance from the image to the lens (m)

A waves and optics formula - common in interference, refraction and quantum physics problems.

Worked example

An object 15 cm in front of a converging lens with a 10 cm focal length. The image forms 30 cm behind the lens and is twice as large, since the magnification p = y/x = 2. Distances can stay in centimetres as long as they all use the same unit.

1y=110 cm−115 cm=130 cm,y=30 cm\dfrac{1}{y} = \dfrac{1}{10\,\mathrm{cm}} - \dfrac{1}{15\,\mathrm{cm}} = \dfrac{1}{30\,\mathrm{cm}}, \quad y = 30\,\mathrm{cm}

LaTeX commands in this formula

\dfrac
fraction (display)

How to use this formula in LaTeX?

  1. Copy the code with the button above - $$…$$ is centered display math.
  2. Paste it into the CamteX editor, Overleaf or any LaTeX document.
  3. Inside a sentence, use single $…$ instead of double.
  4. The formula needs the amsmath package - CamteX templates include it in the preamble.

Related formulas - Waves and optics

Drawing formulas is faster than typing them.

Draw a formula, table or chart - CamteX AI turns it into ready LaTeX and inserts it into your document.

Try it free