why do some examples have 'de' before the infinitive and others not?
This is because they are used with different meanings, one is to express obligation and the other one to express assumption. There is a link to a lesson explaining this at the bottom of that lesson. Have a look here.
I hope it helps
Sign in to submit your answer
Don't have an account yet? Join today
Test your Spanish to the CEFR standard