To be clear:
Ex 1 is Bar 14, RH top voice.
Ex 2 is Bar 15-17 and similar RH top voice.
Bar 14. The D's are tied. They are all the same note, and they are adjacent notes in the same voice. You can have chains of tied notes such as this. Probable reason for doing this is to clarify the relationship of each D with the changing LH harmony.
Bar 15-17. You should see a dot under each note, in addition to the slur. This indicates portato - a type of articulation. Get your teacher to demonstrate the differences in touch and sound. It is not a tie even though they are the same adjacent notes.
What edition are you using? Paderewski edition clears up some of these notational conventions.