Mathematical methods in continuous and discrete systems