# Derivation of E = mc2

Over the years that Karl's Calculus Tutor has been on line, I have received a number of emails requesting that I show from first principles how you get Einstein's famous formula,  E = mc2.  I shall begin by assuming that anybody interested enough to read this page is already familiar with basic Newtonian physics and is also familiar with the origin of the time dilation formula, the Lorenz contraction formula, and most importantly, the formula by which the mass of an object increases with its speed.

The time dilation formula, which states that a clock in motion ticks slower as seen by an observer at rest, derives from basic geometry combined with the experimentally verified fact that the speed of light in a vacuum is always the same regardless of whether the observer is moving toward or away from the light source or whether the light source is moving toward or away from the observer. The contraction of distances in the direction of motion and the increase in mass of an object that is in motion can both be thought of as consequences of the time dilation, since they are necessary to make the basic laws of physics remain consistent.

The mass, m, of an object whose mass at rest is m0 and which is moving at a speed, v, with respect to the observer is given by

 ``` m = ``` ``` m0   √1 - v2/c2 ```

Keep in mind that m0 and the speed of light, c, are both constants.

In what follows, we shall use the above formula to show that when you increase the velocity of an object by a small amount, dv, sufficient to increase the mass by small amount, dm, then the kinetic energy is increased by an amount equal to  c2 dm

Let's start by taking the derivative of the mass formula with respect to velocity. That gives

 ``` dm = dv ``` ``` m0 (v/c2)   (1 - v2/c2)(3/2) ```

Observe the relationship between m and  dm/dv  (which you can determine from simple algebra):

 ``` m = ``` ``` dm (1 - v2/c2) c2 = dv v ``` ``` dm (c2 - v2)   dv v ```

So where do we get kinetic energy from? By classical physics, the kinetic energy is increased by the amount of work done on an object. Work is given as force applied to an object times the distance the object moves while the force is applied. This works also in the world of relativity. But before we can look at that, we have to be specific about what is meant by force.

You have probably already learned that Newton's second law is  f = ma  -- that is force is mass times acceleration. In the Newtonian world, that works. But in the world of relativity it doesn't. Why? Because it assumes that mass is constant. In the Newtonian world, the mass of objects does not change as a function of their speed. But in relativity it does. So in relativity we use a definition of force that works both in relativity and in the Newtonian world. It is that force is the rate of change of momentum.

```         dp
f  =
dt
```
where momentum, p, is given by  p = mv.  If you assume mass to be constant and take the derivative of momentum, you easily see that you get the familiar  f = ma,  where acceleration, a, is the time derivative of velocity, v. But if mass is not constant, but is instead a function of velocity, then you get (applying the product rule):

 ``` dp f = = dt ``` ``` d(mv) = dt ``` ``` dm v + dt ``` ``` dv m   dt ```

Now we replace m with the expression we derived earlier for it in terms of  dm/dv

 ``` d(mv) f = = dt ``` ``` dm v + dt ``` ``` dm (c2 - v2) dv   dv v dt ```

By the chain rule we also have

```   dm     dm dv
=
dt     dv dt
```
which gives

 ``` d(mv) f = = dt ``` ``` dm v + dt ``` ``` (c2 - v2) dm   v dt ```

Now we drop the middle part of the equation and just keep the right and left parts. And we multiply through by dt, which gives what happens when a force is applied to the object over a short time, dt:

 ``` f dt = v dm + ``` ``` (c2 - v2) dm v ```

But this is not what we are looking for. We want the left side to be force applied over a short distance, dx. To convert dt to dx, we multiply by velocity,  dx/dt.  On the left that gives us  f dx,  which is the change in kinetic energy, dE (recall that work is force applied over distance, and change in kinetic energy is equal to work done). We multiply the right by v, which is equal to  dx/dt

```    dE  =  f dx  =  v2 dm  +  (c2 - v2) dm
```
The v2's cancel, leaving
```   dE  =  c2 dm
```
Remember that c, and therefore also c2, is constant. So this indicates that the amount of kinetic energy it takes to cause an object to gain any amount of mass is equal to the amount of mass gained times c2, which you get by integrating the last equation above.