to "butter up" someone means to treat them nicely, usually because you want something from them. It is similar to the phrasal verbs "to kiss up" or "brown nosing".
To use this in a sentence, the object of the sentence can be placed after 'butter up', or in between 'butter' and 'up'.
For example, when a student is being really nice to a teacher to get a better grade, you can say, "That student is buttering up the teacher" or "That student is buttering the teacher up"
This comes from cooking. When you put more butter on some bread, or butter it up, you are covering it with yumminess. haha. So, it the people sense, the person you are flattering is the bread, and the butter is the flattery.