why x=Acoswt? Simple Harmonic motion #malayalam
Channel: Sophile
Date: 2021-07-25

എന്തുകൊണ്ട് x=Acoswt? in Simple Harmonic motion explained in malayalam.
we will derive the equation of simple Harmonic oscillator and explain why is it in the form x= Acoswt.

by PB Physics

 keywords:
- why x=Acoswt in SHM
-Simple Harmonic oscillator equation derivation
-SHM equation why
-Simple Harmonic motion
-Simple Harmonic oscillator

This explanation is in the level of Bsc Physics (Calicut University)

The animation is created with the python package "manim" created by 3blue1brown.I am using the community version.

This is the code:

from manim import *


class ThreeDCameraRotation(ThreeDScene):
    def construct(self):
        self.camera.background_color = GREY
        self.set_camera_orientation(phi=0 * DEGREES, theta=270 * DEGREES)

        d1 = Dot()
        axes = ThreeDAxes()
        circle = Circle(radius=3, color=RED)
        sphere = Sphere(radius=0.1, color=BLUE).shift(RIGHT)
        line = Line(d1.get_center(), sphere.get_center()).set_color(GREEN)
        path = Arc(radius=3, angle=360 * DEGREES, stroke_width=0.1)

        b1 = Brace(line)
        b1text = b1.get_text("x")

        self.add(circle, axes)


        self.play(MoveAlongPath(sphere, path), run_time=3, rate_func=linear)


        self.move_camera(phi=90 * DEGREES, theta=270 * DEGREES)

        self.play(MoveAlongPath(sphere, path), run_time=3, rate_func=linear)
        self.play(MoveAlongPath(sphere, path), run_time=3, rate_func=linear)
        self.play(MoveAlongPath(sphere, path), run_time=3, rate_func=linear)

        line.add_updater(lambda z: z.become(Line(d1.get_center(), sphere.get_center())))
        b1.add_updater(lambda z: z.become(Brace(line)))
        b1text.add_updater(lambda z: z.become(b1.get_text("x")))

        self.add(line,b1,b1text)

        self.play(MoveAlongPath(sphere, path), run_time=3, rate_func=linear)
        self.play(MoveAlongPath(sphere, path), run_time=3, rate_func=linear)

        self.move_camera(phi=0 * DEGREES, theta=270 * DEGREES)

        self.play(MoveAlongPath(sphere, path), run_time=4, rate_func=linear)
        self.play(MoveAlongPath(sphere, path), run_time=5, rate_func=linear)

        self.wait(3)