# What will be the kinetic energy expression in SHM with two bodies attached with spring?

I know Kinetic energy of two body system is

$$KE = \frac{1}{2}\mu V^2_{rel}$$

where $$\mu$$ is the reduced mass $$\mu = m_1 m_2 /(m_1+m_2)$$ and Vrel is V1-V2 or the reverse .here I am not taking KE of com . But can it be applied to shm also ? Further KE in shm changes as a function of displacement . Then how ke changes for two body system .

• I've partially edited your answer to use MathJax. Please consider finishing the edit to make your equations more readable and up to the standards here. – Alfred Centauri Apr 18 at 2:59