# Animating a spring pendulum

**URL:** <https://discourse.julialang.org/t/animating-a-spring-pendulum/73588>\
**Category:** New to Julia\
**Tags:** plotting, diffeq, animations\
**Created:** [December 24, 2021, 1:27pm UTC](https://discourse.julialang.org/t/animating-a-spring-pendulum/73588 "2021-12-24T13:27:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ogweno\_Emmanuel](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ogweno_emmanuel/32/35482_2.png) [@Ogweno\_Emmanuel](https://discourse.julialang.org/u/Ogweno_Emmanuel)\
**Post date:** [December 24, 2021, 1:27pm UTC](https://discourse.julialang.org/t/animating-a-spring-pendulum/73588/1 "2021-12-24T13:27:04Z")

</div>

Hello,  
I have been working on a mini-project; to solve a second-order coupled differential equation of a spring pendulum and to animate the swing of the pendulum. I have managed to solve the two coupled differential equations with the extension and angle theta as the variables.  
This means the solutions are in polar coordinates and not cartesian coordinates. Any advice on how I can go about the animation part? I’m quite new to animations.

---

<div class="post-metadata">

**Author:** ![rafael.guerra](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rafael.guerra/32/216610_2.png) [@rafael.guerra](https://discourse.julialang.org/u/rafael.guerra)\
**Post date:** [December 24, 2021, 1:42pm UTC](https://discourse.julialang.org/t/animating-a-spring-pendulum/73588/2 "2021-12-24T13:42:37Z")

</div>

[This post](https://discourse.julialang.org/t/how-to-plot-curve-over-surface-with-plots-jl/72498) has a nice pendulum animation.

---

<div class="post-metadata">

**Author:** ![EvoArt](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/evoart/32/25357_2.png) [@EvoArt](https://discourse.julialang.org/u/EvoArt)\
**Post date:** [December 24, 2021, 2:16pm UTC](https://discourse.julialang.org/t/animating-a-spring-pendulum/73588/3 "2021-12-24T14:16:01Z")

</div>

Check out this tutorial as well

> [@Tutorial on how to make animations and interactive applications in Makie.jl](https://discourse.julialang.org/t/tutorial-on-how-to-make-animations-and-interactive-applications-in-makie-jl/66988):
>
> Hi all, I’ve made a tutorial on how to make animations and interactive applications in Makie.jl and put it on YouTube. Have a look: [Making animations and interactive applications in Makie.jl - YouTube](https://youtu.be/L-gyDvhjzGQ) Hope it helps!
