In order to, so that
6 Korean grammar patterns compared
-(으)러 is "to" before a verb of movement (가다, 오다, 다니다, 나가다 and the like). -(으)려고 is "intending to" with any verb, but it can't come before a request or suggestion. -기 위해(서) is a firmer, more formal "in order to", and it can come before a request; after a noun it's N을/를 위해(서), and 위하여 is common in writing. These three and -고자 need the same subject in both halves. -게 and -도록 are "so that": the first half is the outcome you want, which can have a different subject (often someone else), and both happily come before requests; -도록 is a little more formal than -게. -고자 is the formal, written "intending to", typical of speeches and reports, often as -고자 하다.
-(으)러 (go/come) to do
Gives the purpose of going or coming somewhere, so it's followed by a verb of movement such as 가다, 오다 or 다니다.
머리를 자르러 미용실에 가요.
I'm going to the hairdresser's to get my hair cut.
-(으)려고 intending to, in order to
Says what you mean to do, with any verb, not just verbs of movement; both halves have the same subject. A request or suggestion can't follow it (use -기 위해(서) or -게/-도록 for that). As -(으)려고 하다 it ends a sentence or clause: "intend to", or "be about to" (비가 오려고 해요).
선물을 포장하려고 포장지를 샀어요.
I bought some wrapping paper to wrap the present.
-기 위해(서) in order to
A firm, slightly formal "in order to", with the same subject in both halves. Unlike -(으)려고, it can come before a request or suggestion. After a noun it's N을/를 위해(서); the full form 위하여 is common in writing.
돈을 모으기 위해 아르바이트를 하고 있어요.
I'm doing a part-time job to save up money.
-도록 so that (a little more formal)
The first half is the outcome you're aiming for, often something for someone else, and a request or suggestion often follows. It's the more formal partner of -게; it can also mean "until" or "to the point that" (밤새도록).
아이들이 잘 수 있도록 조용히 해 주세요.
Please keep quiet so that the children can sleep.
-게 so that
The everyday "so that": the first half is the result you want, often for someone else, and a request often follows. Commonly -(으)ㄹ 수 있게 ("so that … can") and -지 않게 ("so that … doesn't").
모두가 볼 수 있게 크게 써 주세요.
Please write it big so everyone can see.
-고자 intending to (formal, written)
The formal "intending to" of speeches, announcements and reports, often as -고자 하다 ("I intend to"). In conversation it would be -(으)려고.
더 많은 것을 배우고자 유학을 결심했습니다.
I decided to study abroad in order to learn more.