def construct(self):
    series = VideoSeries()
    series.to_edge(UP)
    this_video = series[7]
    this_video.save_state()
    next_video = series[8]
    (deriv, integral, v_t, dt, equals, v_T) = formula = TexMobject('\\frac{d}{dT}', '\\int_0^T', 'v(t)', '\\,dt', '=', 'v(T)')
    formula.set_color_by_tex('v', VELOCITY_COLOR)
    formula.next_to(self.teacher.get_corner((UP + LEFT)), UP, MED_LARGE_BUFF)
    self.play(FadeIn(series, lag_ratio=0.5))
    self.play(this_video.shift, ((this_video.get_height() * DOWN) / 2), this_video.set_color, YELLOW, self.teacher.change_mode, 'raise_right_hand')
    self.play(Write(VGroup(integral, v_t, dt)))
    self.change_student_modes(*(['erm'] * 3))
    self.wait()
    self.play(Write(VGroup(deriv, equals, v_T)))
    self.change_student_modes(*(['confused'] * 3))
    self.wait(3)
    self.play(this_video.restore, next_video.shift, ((next_video.get_height() * DOWN) / 2), next_video.set_color, YELLOW, integral[0].copy().next_to, next_video, DOWN, MED_LARGE_BUFF, FadeOut(formula), *it.chain(*[[pi.change_mode, 'plain', pi.look_at, next_video] for pi in self.pi_creatures]))
    self.wait(2)
def construct(self):
    series = VideoSeries()
    series.to_edge(UP)
    this_video = series[7]
    this_video.save_state()
    next_video = series[8]
    (deriv, integral, v_t, dt, equals, v_T) = formula = TexMobject('\\frac{d}{dT}', '\\int_0^T', 'v(t)', '\\,dt', '=', 'v(T)')
    formula.set_color_by_tex('v', VELOCITY_COLOR)
    formula.next_to(self.teacher.get_corner((UP + LEFT)), UP, MED_LARGE_BUFF)
    self.play(FadeIn(series, lag_ratio=0.5))
    self.play(this_video.shift, ((this_video.get_height() * DOWN) / 2), this_video.set_color, YELLOW, self.teacher.change_mode, 'raise_right_hand')
    self.play(Write(VGroup(integral, v_t, dt)))
    self.change_student_modes(*(['erm'] * 3))
    self.wait()
    self.play(Write(VGroup(deriv, equals, v_T)))
    self.change_student_modes(*(['confused'] * 3))
    self.wait(3)
    self.play(this_video.restore, next_video.shift, ((next_video.get_height() * DOWN) / 2), next_video.set_color, YELLOW, integral[0].copy().next_to, next_video, DOWN, MED_LARGE_BUFF, FadeOut(formula), *it.chain(*[[pi.change_mode, 'plain', pi.look_at, next_video] for pi in self.pi_creatures]))
    self.wait(2)