Infinitives refer to a verb as a noun (or adjective/adverb): I like to eat. What do you like? (what is the direct object?) To eat. It is being used as a noun.
Prepositional phrases use "to" as any other preposition, as a part of a phrase which modifies another part of the sentence: I read to the girl. The phrase "to her" is modifying the verb in this case, read. How did you read? To her. An easier way to tell them apart is an infinitive will have a verb after "to". A prepositional phrase will need to have an object of the preposition, a noun. Therefore, it will have a noun after "to":
To eat.
verb, therefore an infinitive
To the girl.
noun, therefore a prepositional phrase
Green wavy underline
we differ when it comes to food.
Green wavy line
"I beg to differ", "It's a small world", "Icing on the cake", "If the shoe fits, wear it" are short phrases. They begin with the letter i.
A phrase is an unfinished sentence or a quote.
The pair of them differ so much.Their opinions often differ.
Me and my friend love the same colors, but our favorite foods tend to differ.
I can still like someone even if we differ in our religious beliefs.
I differ with your argument that all fatty foods are bad to eat.Though I do agree with you, I differ with you on some points.
Egyptian and Sumerian cuneiform differ significantly.
it means to be different from. how does the tree differ from the flower. that's how it would be used in a sentence
The scents of this exhibit's flora are intoxicating! The flora and fauna will differ by region.