Is kinetic energy a relative quantity? Will it make inconsistent equations when applying it to the conservation of energy equations?

Yes, kinetic energy is a relative quantity. As you might guess, this means that when you're using energy conservation, you have to stay within a single frame of reference; all that energy conservation tells you is that the amount of energy as measured in any one frame stays the same over time. You can't meaningfully compare the amount of energy measured in frame A (e.g. the ground) to the amount of energy measured in frame B (e.g. the train).

However, you can convert an amount of kinetic energy measured in one frame to another frame, if you know their relative velocity. If you're working at low speeds, the easy (approximate) way to do this is to just calculate the relative velocity, as you did. So if the train observer measures a kinetic energy $K = \frac{1}{2}mv^2$, the ground observer will measure a kinetic energy of $\frac{1}{2}m(v + V)^2$, or

$$K + \sqrt{2Km}V + \frac{1}{2}mV^2$$

(in one dimension).

If you get up to higher speeds, or you want an exact expression, you'll have to use the relativistic definition of energy. In special relativity, the kinetic energy is given by the difference between the total energy and the "rest energy,"

$$K = E - mc^2$$

One way to figure out the transformation rule is to use the fact that the total energy is part of a four-vector, along with the relativistic momentum,

$$\begin{pmatrix}E/c \\ p\end{pmatrix} = \begin{pmatrix}\gamma_v mc \\ \gamma_v mv\end{pmatrix}$$

where $\gamma_v = 1/\sqrt{1 - v^2/c^2}$. This four-vector transforms under the Lorentz transformation as you shift from one reference frame to another,

$$\begin{pmatrix}E/c \\ p\end{pmatrix}_\text{ground} = \begin{pmatrix}\gamma & \gamma\beta \\ \gamma\beta & \gamma\end{pmatrix}\begin{pmatrix}E/c \\ p\end{pmatrix}_\text{train}$$

(where $\beta = V/c$ and $\gamma = 1/\sqrt{1 - \beta^2}$), so the energy as observed from the ground would be given by

$$E_\text{ground} = \gamma(E_\text{train} + \beta c p_\text{train})$$

The kinetic energy is obtained by subtracting $mc^2$ from the total energy, so you'd get

$$K_\text{ground} = \gamma(E_\text{train} + \beta c p_\text{train}) - mc^2$$

which works out to

$$K_\text{ground} = \gamma K_\text{train} + (\gamma - 1) mc^2 + \gamma\beta c p_\text{train}$$

where $K$ is the relativistic kinetic energy and $p$ is the relativistic momentum.

If you wanted it in terms of energy alone:

$$K_\text{ground} = \gamma K_\text{train} + (\gamma - 1) mc^2 + \gamma\beta\sqrt{K_\text{train}^2 + 2 mc^2 K_\text{train}}$$

You might start to notice a similarity to the non-relativistic expression above ($K + \sqrt{2Km}V + \frac{1}{2}mV^2$), and indeed, if you plug in some approximations that are valid at low speeds ($\gamma \approx 1$, $\gamma - 1 \approx V^2/c^2$, $K_\text{train} \approx \frac{1}{2}mv^2 \ll mc^2$), you will recover exactly that expression.


You should remain in one frame of reference when applying the law of conservation of energy. Then you should be fine.