Mathematical methods in electrical engineering