# Elastic collision

An elastic collision is an encounter between two bodies in which the total kinetic energy of the two bodies remains the same. In an ideal, perfectly elastic collision, there is no net conversion of kinetic energy into other forms such as heat, noise, or potential energy.

During the collision of small objects, kinetic energy is first converted to potential energy associated with a repulsive force between the particles (when the particles move against this force, i.e. the angle between the force and the relative velocity is obtuse), then this potential energy is converted back to kinetic energy (when the particles move with this force, i.e. the angle between the force and the relative velocity is acute).

Collisions of atoms are elastic, for example Rutherford backscattering.

A useful special case of elastic collision is when the two bodies have equal mass, in which case they will simply exchange their momenta.

The molecules—as distinct from atoms—of a gas or liquid rarely experience perfectly elastic collisions because kinetic energy is exchanged between the molecules’ translational motion and their internal degrees of freedom with each collision. At any instant, half the collisions are, to a varying extent, inelastic collisions (the pair possesses less kinetic energy in their translational motions after the collision than before), and half could be described as “super-elastic” (possessing more kinetic energy after the collision than before). Averaged across the entire sample, molecular collisions can be regarded as essentially elastic as long as Planck's law forbids black-body photons to carry away energy from the system.

In the case of macroscopic bodies, perfectly elastic collisions are an ideal never fully realized, but approximated by the interactions of objects such as billiard balls.

When considering energies, possible rotational energy before and/or after a collision may also play a role.

## Equations

### One-dimensional Newtonian

Consider particles 1 and 2 with masses m1, m2, and velocities u1, u2 before collision, v1, v2 after collision.

The conservation of the total momentum before and after the collision is expressed by:

${\displaystyle \,\!m_{1}u_{1}+m_{2}u_{2}\ =\ m_{1}v_{1}+m_{2}v_{2}.}$

Likewise, the conservation of the total kinetic energy is expressed by:

${\displaystyle {\tfrac {1}{2}}m_{1}u_{1}^{2}+{\tfrac {1}{2}}m_{2}u_{2}^{2}\ =\ {\tfrac {1}{2}}m_{1}v_{1}^{2}+{\tfrac {1}{2}}m_{2}v_{2}^{2}.}$

These equations may be solved directly to find ${\displaystyle v_{1},v_{2}}$ when ${\displaystyle u_{1},u_{2}}$ are known:

${\displaystyle {\begin{array}{ccc}v_{1}&=&\displaystyle {\frac {m_{1}-m_{2}}{m_{1}+m_{2}}}u_{1}+{\frac {2m_{2}}{m_{1}+m_{2}}}u_{2}\\[.5em]v_{2}&=&\displaystyle {\frac {2m_{1}}{m_{1}+m_{2}}}u_{1}+{\frac {m_{2}-m_{1}}{m_{1}+m_{2}}}u_{2}\end{array}}}$

If both masses are the same, we have a trivial solution:

${\displaystyle \ v_{1}=u_{2}}$
${\displaystyle \ v_{2}=u_{1}}$.

This simply corresponds to the bodies exchanging their initial velocities to each other.

As can be expected, the solution is invariant under adding a constant to all velocities, which is like using a frame of reference with constant translational velocity. Indeed, to derive the equations, one may first change the frame of reference so that one of the known velocities is zero, determine the unknown velocities in the new frame of reference, and convert back to the original frame of reference.

#### Examples

Ball 1: mass = 3 kg, velocity = 4 m/s
Ball 2: mass = 5 kg, velocity = 6 m/s

After collision:

Ball 1: velocity = 8.5 m/s
Ball 2: velocity = 1.5 m/s

Another situation:

The following illustrate the case of equal mass, ${\displaystyle m_{1}=m_{2}}$.

In the limiting case where ${\displaystyle m_{1}}$ is much larger than ${\displaystyle m_{2}}$, such as a ping-pong paddle hitting a ping-pong ball or an SUV hitting a trash can, the heavier mass hardly changes velocity, while the lighter mass bounces off, reversing its velocity plus approximately twice that of the heavy one.

In the case of a large ${\displaystyle u_{1}}$, the value of ${\displaystyle v_{1}}$ is small if the masses are approximately the same: hitting a much lighter particle does not change the velocity much, hitting a much heavier particle causes the fast particle to bounce back with high speed. This is why a neutron moderator (a medium which slows down fast neutrons, thereby turning them into thermal neutrons capable of sustaining a chain reaction) is a material full of atoms with light nuclei which do not easily absorb neutrons: the lightest nuclei have about the same mass as a neutron.

#### Derivation of solution

To derive the above equations for ${\displaystyle v_{1},v_{2}}$, rearrange the kinetic energy and momentum equations:

${\displaystyle \ m_{1}(v_{1}^{2}-u_{1}^{2})=m_{2}(u_{2}^{2}-v_{2}^{2})}$
${\displaystyle \ m_{1}(v_{1}-u_{1})=m_{2}(u_{2}-v_{2})}$

Dividing each side of the top equation by each side of the bottom equation, and using ${\displaystyle {\tfrac {a^{2}-b^{2}}{(a-b)}}=a+b}$, gives:

${\displaystyle \ v_{1}+u_{1}=u_{2}+v_{2}\quad \Rightarrow \quad v_{1}-v_{2}=u_{2}-u_{1}}$.

That is, the relative velocity of one particle with respect to the other is reversed by the collision.

Now the above formulas follow from solving a system of linear equations for ${\displaystyle v_{1},v_{2}}$, regarding ${\displaystyle m_{1},m_{2},u_{1},u_{2}}$ as constants:

${\displaystyle \left\{{\begin{array}{rcrcc}v_{1}&-&v_{2}&=&u_{2}-u_{1}\\m_{1}v_{1}&+&m_{2}v_{2}&=&m_{1}u_{1}+m_{2}u_{2}.\end{array}}\right.}$

Once ${\displaystyle v_{1}}$ is determined, ${\displaystyle v_{2}}$ can be found by symmetry.

#### Center of mass frame

With respect to the center of mass, both velocities are reversed by the collision: a heavy particle moves slowly toward the center of mass, and bounces back with the same low speed, and a light particle moves fast toward the center of mass, and bounces back with the same high speed.

The velocity of the center of mass does not change by the collision. To see this, consider the center of mass at time ${\displaystyle \ t}$ before collision and time ${\displaystyle \ t'}$ after collision:

${\displaystyle {\bar {x}}(t)={\frac {m_{1}x_{1}(t)+m_{2}x_{2}(t)}{m_{1}+m_{2}}}}$
${\displaystyle {\bar {x}}(t')={\frac {m_{1}x_{1}(t')+m_{2}x_{2}(t')}{m_{1}+m_{2}}}}$.

Hence, the velocities of the center of mass before and after collision are:

${\displaystyle \ v_{\bar {x}}={\frac {m_{1}u_{1}+m_{2}u_{2}}{m_{1}+m_{2}}}}$
${\displaystyle \ v_{\bar {x}}'={\frac {m_{1}v_{1}+m_{2}v_{2}}{m_{1}+m_{2}}}}$.

The numerators of ${\displaystyle \ v_{\bar {x}}}$ and ${\displaystyle \ v_{\bar {x}}'}$ are the total momenta before and after collision. Since momentum is conserved, we have ${\displaystyle \ v_{\bar {x}}=\ v_{\bar {x}}'}$.

### One-dimensional relativistic

According to special relativity,

${\displaystyle p={\frac {mv}{\sqrt {1-{\frac {v^{2}}{c^{2}}}}}}}$

Where p denotes momentum of any particle with mass, v denotes velocity, and c is the speed of light.

In the center of momentum frame where the total momentum equals zero,

${\displaystyle p_{1}=-p_{2}}$
${\displaystyle p_{1}^{2}=p_{2}^{2}}$
${\displaystyle {\sqrt {m_{1}^{2}c^{4}+p_{1}^{2}c^{2}}}+{\sqrt {m_{2}^{2}c^{4}+p_{2}^{2}c^{2}}}=E}$
${\displaystyle p_{1}=\pm {\frac {\sqrt {E^{4}-2E^{2}m_{1}^{2}c^{4}-2E^{2}m_{2}^{2}c^{4}+m_{1}^{4}c^{8}-2m_{1}^{2}m_{2}^{2}c^{8}+m_{2}^{4}c^{8}}}{2cE}}}$
${\displaystyle u_{1}=-v_{1}}$.

Here ${\displaystyle m_{1},m_{2}}$represent the rest masses of the two colliding bodies, ${\displaystyle u_{1},u_{2}}$represent their velocities before collision, ${\displaystyle v_{1},v_{2}}$their velocities after collision, ${\displaystyle p_{1},p_{2}}$their momenta, ${\displaystyle c}$ is the speed of light in vacuum, and ${\displaystyle E}$ denotes the total energy, the sum of rest masses and kinetic energies of the two bodies.

Since the total energy and momentum of the system are conserved and their rest masses do not change, it is shown that the momentum of the colliding body is decided by the rest masses of the colliding bodies, total energy and the total momentum. Relative to the center of momentum frame, the momentum of each colliding body does not change magnitude after collision, but reverses its direction of movement.

Comparing with classical mechanics, which gives accurate results dealing with macroscopic objects moving much slower than the speed of light, total momentum of the two colliding bodies is frame-dependent. In the center of momentum frame, according to classical mechanics,

${\displaystyle m_{1}u_{1}+m_{2}u_{2}=m_{1}v_{1}+m_{2}v_{2}={0}\,\!}$
${\displaystyle m_{1}u_{1}^{2}+m_{2}u_{2}^{2}=m_{1}v_{1}^{2}+m_{2}v_{2}^{2}\,\!}$
${\displaystyle {\frac {(m_{2}u_{2})^{2}}{2m_{1}}}+{\frac {(m_{2}u_{2})^{2}}{2m_{2}}}={\frac {(m_{2}v_{2})^{2}}{2m_{1}}}+{\frac {(m_{2}v_{2})^{2}}{2m_{2}}}\,\!}$
${\displaystyle (m_{1}+m_{2})(m_{2}u_{2})^{2}=(m_{1}+m_{2})(m_{2}v_{2})^{2}\,\!}$
${\displaystyle u_{2}=-v_{2}\,\!}$
${\displaystyle {\frac {(m_{1}u_{1})^{2}}{2m_{1}}}+{\frac {(m_{1}u_{1})^{2}}{2m_{2}}}={\frac {(m_{1}v_{1})^{2}}{2m_{1}}}+{\frac {(m_{1}v_{1})^{2}}{2m_{2}}}\,\!}$
${\displaystyle (m_{1}+m_{2})(m_{1}u_{1})^{2}=(m_{1}+m_{2})(m_{1}v_{1})^{2}\,\!}$
${\displaystyle u_{1}=-v_{1}\,\!}$

This agrees with the relativistic calculation ${\displaystyle u_{1}=-v_{1}}$, despite other differences.

One of the postulates in Special Relativity states that the laws of physics, such as conservation of momentum, should be invariant in all inertial frames of reference. In a general inertial frame where the total momentum could be arbitrary,

${\displaystyle {\frac {m_{1}\;u_{1}}{\sqrt {1-u_{1}^{2}/c^{2}}}}+{\frac {m_{2}\;u_{2}}{\sqrt {1-u_{2}^{2}/c^{2}}}}={\frac {m_{1}\;v_{1}}{\sqrt {1-v_{1}^{2}/c^{2}}}}+{\frac {m_{2}\;v_{2}}{\sqrt {1-v_{2}^{2}/c^{2}}}}=p_{T}}$
${\displaystyle {\frac {m_{1}c^{2}}{\sqrt {1-u_{1}^{2}/c^{2}}}}+{\frac {m_{2}c^{2}}{\sqrt {1-u_{2}^{2}/c^{2}}}}={\frac {m_{1}c^{2}}{\sqrt {1-v_{1}^{2}/c^{2}}}}+{\frac {m_{2}c^{2}}{\sqrt {1-v_{2}^{2}/c^{2}}}}=E}$

We can look at the two moving bodies as one system of which the total momentum is ${\displaystyle p_{T}}$, the total energy is ${\displaystyle E}$ and its velocity ${\displaystyle v_{c}}$ is the velocity of its center of mass. Relative to the center of momentum frame the total momentum equals zero. It can be shown that ${\displaystyle v_{c}}$ is given by:

${\displaystyle v_{c}={\frac {p_{T}c^{2}}{E}}}$

Now the velocities before the collision in the center of momentum frame ${\displaystyle u_{1}'}$ and ${\displaystyle u_{2}'}$ are:

${\displaystyle u_{1}'={\frac {u_{1}-v_{c}}{1-{\frac {u_{1}v_{c}}{c^{2}}}}}}$
${\displaystyle u_{2}'={\frac {u_{2}-v_{c}}{1-{\frac {u_{2}v_{c}}{c^{2}}}}}}$
${\displaystyle v_{1}'=-u_{1}'}$
${\displaystyle v_{2}'=-u_{2}'}$
${\displaystyle v_{1}={\frac {v_{1}'+v_{c}}{1+{\frac {v_{1}'v_{c}}{c^{2}}}}}}$
${\displaystyle v_{2}={\frac {v_{2}'+v_{c}}{1+{\frac {v_{2}'v_{c}}{c^{2}}}}}}$

When ${\displaystyle u_{1}\ll c}$ and ${\displaystyle u_{2}\ll c}$,

${\displaystyle p_{T}}$${\displaystyle m_{1}u_{1}+m_{2}u_{2}}$
${\displaystyle v_{c}}$${\displaystyle {\frac {m_{1}u_{1}+m_{2}u_{2}}{m_{1}+m_{2}}}}$
${\displaystyle u_{1}'}$${\displaystyle u_{1}-v_{c}}$${\displaystyle {\frac {m_{1}u_{1}+m_{2}u_{1}-m_{1}u_{1}-m_{2}u_{2}}{m_{1}+m_{2}}}={\frac {m_{2}(u_{1}-u_{2})}{m_{1}+m_{2}}}}$
${\displaystyle u_{2}'}$${\displaystyle {\frac {m_{1}(u_{2}-u_{1})}{m_{1}+m_{2}}}}$
${\displaystyle v_{1}'}$${\displaystyle {\frac {m_{2}(u_{2}-u_{1})}{m_{1}+m_{2}}}}$
${\displaystyle v_{2}'}$${\displaystyle {\frac {m_{1}(u_{1}-u_{2})}{m_{1}+m_{2}}}}$
${\displaystyle v_{1}}$${\displaystyle v_{1}'+v_{c}}$${\displaystyle {\frac {m_{2}u_{2}-m_{2}u_{1}+m_{1}u_{1}+m_{2}u_{2}}{m_{1}+m_{2}}}={\frac {u_{1}(m_{1}-m_{2})+2m_{2}u_{2}}{m_{1}+m_{2}}}}$
${\displaystyle v_{2}}$${\displaystyle {\frac {u_{2}(m_{2}-m_{1})+2m_{1}u_{1}}{m_{1}+m_{2}}}}$

Therefore, the classical calculation holds true when the speed of both colliding bodies is much lower than the speed of light (~300 million m/s).

### Relativistic derivation using hyperbolic functions

We use the so-called parameter of velocity ${\displaystyle s}$ (usually called the rapidity) to get :

${\displaystyle v/c={\mbox{tanh}}(s)}$

hence we get

${\displaystyle {\sqrt {1-{\frac {v^{2}}{c^{2}}}}}={\mbox{ sech}}(s)}$

Relativistic energy and momentum are expressed as follows:

${\displaystyle E={\frac {mc^{2}}{\sqrt {1-{\frac {v^{2}}{c^{2}}}}}}=mc^{2}{\mbox{cosh}}(s)}$
${\displaystyle p={\frac {mv}{\sqrt {1-{\frac {v^{2}}{c^{2}}}}}}=mc{\mbox{ sinh}}(s)}$

Equations sum of energy and momentum colliding masses ${\displaystyle {m_{1}}}$ and ${\displaystyle {m_{2}}}$, (velocities${\displaystyle {v_{1}}}$, ${\displaystyle {v_{2}}}$, ${\displaystyle {u_{1}}}$,${\displaystyle {u_{2}}}$ correspond to the velocity parameters ${\displaystyle {s_{1}}}$, ${\displaystyle {s_{2}}}$, ${\displaystyle {s_{3}}}$, ${\displaystyle {s_{4}}}$), after dividing by adequate power ${\displaystyle {c}}$ are as follows:

${\displaystyle m_{1}{\mbox{cosh}}(s_{1})+m_{2}{\mbox{cosh}}(s_{2})=m_{1}{\mbox{cosh}}(s_{3})+m_{2}{\mbox{cosh}}(s_{4})}$
${\displaystyle m_{1}{\mbox{sinh}}(s_{1})+m_{2}{\mbox{sinh}}(s_{2})=m_{1}{\mbox{sinh}}(s_{3})+m_{2}{\mbox{sinh}}(s_{4})}$

and dependent equation, the sum of above equations:

${\displaystyle m_{1}e^{s_{1}}+m_{2}e^{s_{2}}=m_{1}e^{s_{3}}+m_{2}e^{s_{4}}}$

subtract squares both sides equations "momentum" from "energy" and use the identity ${\displaystyle {\mbox{cosh}}^{2}(s)-{\mbox{sinh}}^{2}(s)=1}$, after simplicity we get:

${\displaystyle 2m_{1}m_{2}({\mbox{cosh}}(s_{1}){\mbox{sinh}}(s_{2})-{\mbox{cosh}}(s_{2}){\mbox{sinh}}(s_{1}))=2m_{1}m_{2}({\mbox{cosh}}(s_{3}){\mbox{sinh}}(s_{4})-{\mbox{cosh}}(s_{4}){\mbox{sinh}}(s_{3}))}$

for non-zero mass, we get:

${\displaystyle {\mbox{cosh}}(s_{1}-s_{2})={\mbox{cosh}}(s_{3}-s_{4})}$

as functions ${\displaystyle {\mbox{cosh}}(s)}$ is even we get two solutions:

${\displaystyle s_{1}-s_{2}=s_{3}-s_{4}}$
${\displaystyle s_{1}-s_{2}=-s_{3}+s_{4}}$

from the last equation, leading to a non-trivial solution, we solve ${\displaystyle s_{2}}$ and substitute into the dependent equation, we obtain ${\displaystyle e^{s_{1}}}$ and then ${\displaystyle e^{s_{2}}}$, we have:

${\displaystyle e^{s_{1}}=e^{s_{4}}{\frac {m_{1}e^{s_{3}}+m_{2}e^{s_{4}}}{m_{1}e^{s_{4}}+m_{2}e^{s_{3}}}}}$
${\displaystyle e^{s_{2}}=e^{s_{3}}{\frac {m_{1}e^{s_{3}}+m_{2}e^{s_{4}}}{m_{1}e^{s_{4}}+m_{2}e^{s_{3}}}}}$

It is a solution to the problem, but expressed by the parameters of velocity. Return substitution to get the solution for velocities is:

${\displaystyle v_{1}/c={\mbox{tanh}}(s_{1})={\frac {e^{s_{1}}-e^{-s_{1}}}{e^{s_{1}}+e^{-s_{1}}}}}$
${\displaystyle v_{2}/c={\mbox{tanh}}(s_{2})={\frac {e^{s_{2}}-e^{-s_{2}}}{e^{s_{2}}+e^{-s_{2}}}}}$

Substitute the previous solutions and replace: ${\displaystyle e^{s_{3}}={\sqrt {\frac {c+u_{1}}{c-u_{1}}}}}$ and ${\displaystyle e^{s_{4}}={\sqrt {\frac {c+u_{2}}{c-u_{2}}}}}$, after long transformation, with substituting: ${\displaystyle Z={\sqrt {(1-u_{1}^{2}/c^{2})(1-u_{2}^{2}/c^{2})}}}$ we get:

${\displaystyle v_{1}={\frac {2m_{1}m_{2}c^{2}u_{2}Z+2m_{2}^{2}c^{2}u_{2}-(m_{1}^{2}+m_{2}^{2})u_{1}u_{2}^{2}+(m_{1}^{2}-m_{2}^{2})c^{2}u_{1}}{2m_{1}m_{2}c^{2}Z-2m_{2}^{2}u_{1}u_{2}-(m_{1}^{2}-m_{2}^{2})u_{2}^{2}+(m_{1}^{2}+m_{2}^{2})c^{2}}}}$
${\displaystyle v_{2}={\frac {2m_{1}m_{2}c^{2}u_{1}Z+2m_{1}^{2}c^{2}u_{1}-(m_{1}^{2}+m_{2}^{2})u_{1}^{2}u_{2}+(m_{2}^{2}-m_{1}^{2})c^{2}u_{2}}{2m_{1}m_{2}c^{2}Z-2m_{1}^{2}u_{1}u_{2}-(m_{2}^{2}-m_{1}^{2})u_{1}^{2}+(m_{1}^{2}+m_{2}^{2})c^{2}}}}$.

## Two-dimensional

For the case of two colliding bodies in two dimensions, the overall velocity of each body must be split into two perpendicular velocities: one tangent to the common normal surfaces of the colliding bodies at the point of contact, the other along the line of collision. Since the collision only imparts force along the line of collision, the velocities that are tangent to the point of collision do not change. The velocities along the line of collision can then be used in the same equations as a one-dimensional collision. The final velocities can then be calculated from the two new component velocities and will depend on the point of collision. Studies of two-dimensional collisions are conducted for many bodies in the framework of a two-dimensional gas.

In a center of momentum frame at any time the velocities of the two bodies are in opposite directions, with magnitudes inversely proportional to the masses. In an elastic collision these magnitudes do not change. The directions may change depending on the shapes of the bodies and the point of impact. For example, in the case of spheres the angle depends on the distance between the (parallel) paths of the centers of the two bodies. Any non-zero change of direction is possible: if this distance is zero the velocities are reversed in the collision; if it is close to the sum of the radii of the spheres the two bodies are only slightly deflected.

Assuming that the second particle is at rest before the collision, the angles of deflection of the two particles, ${\displaystyle \vartheta _{1}}$ and ${\displaystyle \vartheta _{2}}$, are related to the angle of deflection ${\displaystyle \theta }$ in the system of the center of mass by[1]

${\displaystyle \tan \vartheta _{1}={\frac {m_{2}\sin \theta }{m_{1}+m_{2}\cos \theta }},\qquad \vartheta _{2}={\frac {{\pi }-{\theta }}{2}}.}$

The magnitudes of the velocities of the particles after the collision are:

${\displaystyle v'_{1}=v_{1}{\frac {\sqrt {m_{1}^{2}+m_{2}^{2}+2m_{1}m_{2}\cos \theta }}{m_{1}+m_{2}}},\qquad v'_{2}=v_{1}{\frac {2m_{1}}{m_{1}+m_{2}}}\sin {\frac {\theta }{2}}.}$

### Two-dimensional collision with two moving objects

The final x and y velocities components of the first ball can be calculated as:[2]

{\displaystyle {\begin{aligned}v'_{1x}&={\frac {v_{1}\cos(\theta _{1}-\varphi )(m_{1}-m_{2})+2m_{2}v_{2}\cos(\theta _{2}-\varphi )}{m_{1}+m_{2}}}\cos(\varphi )+v_{1}\sin(\theta _{1}-\varphi )\cos(\varphi +{\frac {\pi }{2}})\\[0.8em]v'_{1y}&={\frac {v_{1}\cos(\theta _{1}-\varphi )(m_{1}-m_{2})+2m_{2}v_{2}\cos(\theta _{2}-\varphi )}{m_{1}+m_{2}}}\sin(\varphi )+v_{1}\sin(\theta _{1}-\varphi )\sin(\varphi +{\frac {\pi }{2}})\end{aligned}}}

where v1 and v2 are the scalar sizes of the two original speeds of the objects, m1 and m2 are their masses, θ1 and θ2 are their movement angles, that is, ${\displaystyle v_{1x}=v_{1}\cos \theta _{1},\;v_{1y}=v_{1}\sin \theta _{1}}$ (meaning moving directly down to the right is either a -45° angle, or a 315°angle), and lowercase phi (φ) is the contact angle. (To get the x and y velocities of the second ball, one needs to swap all the '1' subscripts with '2' subscripts.)

This equation is derived from the fact that the interaction between the two bodies is easily calculated along the contact angle, meaning the velocities of the objects can be calculated in one dimension by rotating the x and y axis to be parallel with the contact angle of the objects, and then rotated back to the original orientation to get the true x and y components of the velocities[3][4][5][6][7][8]

In an angle-free representation, the changed velocities are computed using the centers x1 and x2 at the time of contact as

{\displaystyle {\begin{aligned}\mathbf {v} '_{1}&=\mathbf {v} _{1}-{\frac {2m_{2}}{m_{1}+m_{2}}}\ {\frac {\langle \mathbf {v} _{1}-\mathbf {v} _{2},\,\mathbf {x} _{1}-\mathbf {x} _{2}\rangle }{\|\mathbf {x} _{1}-\mathbf {x} _{2}\|^{2}}}\ (\mathbf {x} _{1}-\mathbf {x} _{2}),\\\mathbf {v} '_{2}&=\mathbf {v} _{2}-{\frac {2m_{1}}{m_{1}+m_{2}}}\ {\frac {\langle \mathbf {v} _{2}-\mathbf {v} _{1},\,\mathbf {x} _{2}-\mathbf {x} _{1}\rangle }{\|\mathbf {x} _{2}-\mathbf {x} _{1}\|^{2}}}\ (\mathbf {x} _{2}-\mathbf {x} _{1})\end{aligned}}}

where the angle brackets indicate the inner product (or dot product) of two vectors.