An imperative sentence in direct speech is changed by using reporting verbs like advised/ordered/requested with to + verb. The reported sentence becomes: The teacher advised him to do his work with dedication. Option 2 uses the correct structure with the pronoun change.