Which of the following defines friction