Weakly Differentiable Functions: Sobolev Spaces and Functions of Bounded Variation