Consider a pendulum whose string is replaced with a spring.
It is a system which can be described neatly using polar coordinates, where your radial component is $ l = l_0 + \Delta l $ and your angular component is $ \varphi $.
The Lagrangian of this system is:
$$ L = \frac{1}{2} m (\dot l^2 + l^2 \dot \varphi^2) - \frac{1}{2} k (l - l_0)^2 + mgl \cos(\varphi) $$
With this you get for your Euler-Lagrange-Equations the following terms.
$$ \frac{\partial L}{\partial \varphi} = -mgl \sin(\varphi) $$ $$ \frac{d}{dt}\left(\frac{\partial L}{\partial \dot \varphi}\right) = 2m \dot ll \dot \varphi + ml^2 \ddot \varphi $$
$$ \frac{\partial L}{\partial l} = ml \dot \varphi^2 - kl + kl_0 + mg \cos(\varphi) $$ $$ \frac{d}{dt}\left(\frac{\partial L}{\partial \dot l}\right) = m \ddot l$$
which leads you to the following two equations of motion.
$$ 0 = 2 \dot{l} \dot{\varphi} + l \ddot{\varphi} + g\sin(\varphi) $$
$$ 0 = m (\ddot{l} - l \dot{\varphi}^2 - g \cos(\varphi)) +k (l-l_0) $$
Out of curiosity, i played a little bit with the second law and oddly, it worked like a charm. If you substitute the accelerations with the corresponding terms you have in polar coordinates, you get the following two equations, which lead to the same result.
$$ m a_\varphi = m(l \ddot \varphi + 2 \dot l \dot \varphi) = -mg \sin(\varphi) $$
$$ m a_l = m (\ddot{l} - l \dot{\varphi}^2) = - k(l-l_0) + mg\cos(\varphi) $$
The thing is now, that my professor for dynamics always said, that you cannot use the second law in non inertial frames of reference. And since this coordinate system is rotating with the pendulum (is it though? I mean, the basis vectors change over time, so...?) it can't be inertial, or am i wrong? And if it is indeed not inertial, can you always just add the "fictitious" accelerations, that are relevent and get the second law back to work?
I am a little bit confused by this.