Defaults are m_1 = 2.0 kg, v_1 = 10.0 m/s, m_2 = 3.0 kg, v_2 = 0.0 m/s — the canonical impact of a moving body onto a stationary one. They yield v_f = 4.0 m/s and a 60.0% energy-loss fraction. Set v_2 negative for a head-on collision, or same-sign for a rear-end one.
Top row = before (blue disk = m_1, orange disk = m_2, arrows = v_1, v_2) / bottom row = after (purple disk = merged m_1+m_2, arrow = v_f) / disk radii scale as mass^(1/3) (visual mass ratio) / arrow lengths scale with absolute speed
Blue bar = initial kinetic energy KE_i / green bar = final kinetic energy KE_f (after merging) / red bar = lost energy DeltaKE = KE_i - KE_f / numerical labels above each bar [J] / KE_f/KE_i complements the loss fraction printed in the top-right corner
In a perfectly inelastic collision two bodies (masses $m_1, m_2$, velocities $v_1, v_2$) merge after impact and move together with a single common velocity $v_f$. Momentum is conserved exactly and kinetic energy is reduced by the largest possible amount.
Common velocity from momentum conservation:
$$v_f = \frac{m_1 v_1 + m_2 v_2}{m_1 + m_2}$$Initial and final kinetic energy:
$$KE_i = \tfrac{1}{2} m_1 v_1^{2} + \tfrac{1}{2} m_2 v_2^{2},\qquad KE_f = \tfrac{1}{2}(m_1+m_2)\,v_f^{2}$$Energy loss expressed via the reduced mass $\mu = m_1 m_2/(m_1+m_2)$ and the relative motion:
$$\Delta KE = KE_i - KE_f = \tfrac{1}{2}\,\mu\,(v_1 - v_2)^{2}$$$m_1, m_2$ are masses [kg], $v_1, v_2$ are signed velocities [m/s], and $v_f$ is the common post-collision velocity [m/s]. The limit $e = 0$ of the coefficient of restitution turns the missing kinetic energy into heat, sound, plastic deformation and adhesion.