Local and global theorems of continuity and differentiability