Imagine I have an arbitrary shape, say $ f(x) = x^2 $ and I want to morph this curve to $ f(x) = x^3 $ by morphing the curve or even a square to a circle or visa versa, just something that I have the equation for to another thing that I also has the equation for,
Visual example in this video made by using manim
How does it "generically" transforms any shape, with a deformation animation that's not hardcoded per equation, what's the maths behind this pure magic ? every single result I found was research maths papers that I was not able to even read the first page, I wonder if there's a simpler solution, or at least a simpler explanation for the same papers, any resource that I could use for this one.
More examples are in the official docs of MorphSVG JS plugin of GSAP
They literally take any shape and make some kind of deformation then change to the new shape, assuming we have the first shape points, we end up with a nice animation, clearly not the same as manim but it's still good.
Someone just take my hand and put it on a cover of a good book or even the field of maths that can help me with this one, my Maths is mostly practical (senior engineering student maths)
EDIT: thanks everyone for replying, I got it now, would this idea scale to 3d ?
One common and simple way is to do a linear combination that continuously transitions from one curve to the other. To that end, introduce an additional parameter $t\in[0,1]$. For example,
$$f_t(x) = (1-t)x^2 + tx^3$$
$f_0$ is a parabola and $f_1$ is a cubic. Here is a Desmos plot with more examples like square ↔ circle. Just play around with the sliders.
One of the square ↔ circle examples uses $$|y|^z = a^z+|x|^z$$ For some constant "radius" $r$. For $z=1$ it's a square, for $z=2$ it's a circle, and for $z\to\infty$ it's a square again.