So we have a differential equation to model an oscillator: $$5f''(t)+10f(t)=0$$
Where the initial conditions are $f(0)=0$ and $f'(0)=4$.
It is given that $f(t) = \frac{2\sqrt 2}{5}\sin\sqrt2 t$.
Now, if we make make a slight change to the original equation and add in a multiple of $f'(t)$, specifically: $$5f''(t)+5f'(t)+10f(t)=0$$
The initial conditions are still same as before, but it appears adding this $f'(t)$ introduces damping. I solved the equation above to yield: $$f(t)=\frac{8e^{-\frac t2}}{\sqrt 7}\sin \frac{\sqrt 7}{2}t$$
My question is this: why does the addition of a multiple of $f'(t)$ create this effect?
If $f(t)$ stands for the displacement of the oscillator from its equilibrium, then the first derivative $f'(t)$ will be the velocity and the second derivative $f''(t)$ the acceleration (which, according to Newton's $2^{nd}$ law of motion, is always proportional to the resultant force exerted on the oscillator).
So, your first equation $5f''(t)+10f(t)=0$ says that: $\sum F(t)=-kx(t)$, ($k$:constant) which is Hooke's law i.e. the necessary and sufficient condition for a free (undamped) oscillation.
On the other hand, your second equation $5f''(t)+5f'(t)+10f(t)=0$ says that: $\sum F=-kx(t)-bu(t)$, ($k,b$:constant) i.e. there is a component of the net force proportional to the velocity: $-bu(t)$, which is exactly the damping force. (Usually frictional forces, air resistance and more generally various resistances to motion are modelled by summands proportional to the velocity or to some power of it).