Questions & Answers about W twoim nazwisku jest mała literówka.
Because w meaning in takes the locative case when it describes location.
- dictionary form: nazwisko = surname / last name
- locative singular: nazwisku
The possessive adjective twój also has to match that case:
- twój → twoim in the locative singular neuter
So:
- w nazwisku = in the surname
- w twoim nazwisku = in your surname
If you said w twoje nazwisko, that would be incorrect here.
Nazwisku is the locative singular form of nazwisko.
Polish nouns change form depending on their role in the sentence. After w meaning in, when talking about being inside something or located somewhere, you usually use the locative:
- nazwisko → w nazwisku
- dom → w domu
- szkole from szkoła → w szkole
So nazwisku is simply the correct case form after w.