All formulas

Mechanics

Potential energy - formula in LaTeX

Gravitational potential energy near the Earth's surface, measured from a reference level you choose. LaTeX typesets adjacent letters as a product; if you want a visible multiplication sign, put \cdot between them.

Ep=mghE_p = m g h

LaTeX code

$$
E_p = m g h
$$

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

EpE_p
potential energy (J)
mm
mass (kg)
gg
gravitational acceleration, about 9.81 m/s²
hh
height above the reference level (m)

A classical mechanics formula - it shows up in kinematics and dynamics problems and in physics lab reports.

Worked example

A 2 kg backpack carried up one floor, 5 m above the ground floor, which you take as the zero level. The unit m/s² is written \mathrm{m/s^2}: superscripts work inside \mathrm as well.

Ep=2 kg⋅9.81 m/s2⋅5 m=98.1 JE_p = 2\,\mathrm{kg} \cdot 9.81\,\mathrm{m/s^2} \cdot 5\,\mathrm{m} = 98.1\,\mathrm{J}

LaTeX commands in this formula

x_{0}
subscript; wrap several characters in braces

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 works without extra packages.

Related formulas - Mechanics

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