Epicycloid is generated by a circle rolled outside of another circle, whereas a hypocycloid is circle…