def write_antiderivative(self):
    deriv = TexMobject('{d', 'F', '\\over\\,', 'dx}', '(x)', '=', 'f(x)')
    deriv_F = deriv.get_part_by_tex('F')
    deriv.next_to(self.integral, DOWN, MED_LARGE_BUFF)
    rhs = TexMobject(*'=F(b)-F(a)')
    rhs.set_color_by_tex('a', self.lower_bound_color)
    rhs.set_color_by_tex('b', self.upper_bound_color)
    rhs.next_to(self.integral, RIGHT)
    self.play(Write(deriv))
    self.wait(2)
    self.play(*it.chain([ReplacementTransform(deriv_F.copy(), part) for part in rhs.get_parts_by_tex('F')], [Write(VGroup(*rhs.get_parts_by_tex(tex))) for tex in '=()-']))
    for tex in ('b', 'a'):
        self.play(ReplacementTransform(self.integral.get_part_by_tex(tex).copy(), rhs.get_part_by_tex(tex)))
        self.wait()
    self.wait(2)
    self.deriv = deriv
    self.rhs = rhs
def write_antiderivative(self):
    deriv = TexMobject('{d', 'F', '\\over\\,', 'dx}', '(x)', '=', 'f(x)')
    deriv_F = deriv.get_part_by_tex('F')
    deriv.next_to(self.integral, DOWN, MED_LARGE_BUFF)
    rhs = TexMobject(*'=F(b)-F(a)')
    rhs.set_color_by_tex('a', self.lower_bound_color)
    rhs.set_color_by_tex('b', self.upper_bound_color)
    rhs.next_to(self.integral, RIGHT)
    self.play(Write(deriv))
    self.wait(2)
    self.play(*it.chain([ReplacementTransform(deriv_F.copy(), part) for part in rhs.get_parts_by_tex('F')], [Write(VGroup(*rhs.get_parts_by_tex(tex))) for tex in '=()-']))
    for tex in ('b', 'a'):
        self.play(ReplacementTransform(self.integral.get_part_by_tex(tex).copy(), rhs.get_part_by_tex(tex)))
        self.wait()
    self.wait(2)
    self.deriv = deriv
    self.rhs = rhs