YOU SAID:
I am going to the library to do homework.
INTO JAPANESE
宿題をするために図書館へ行きます
BACK INTO ENGLISH
Go to the library to do homework
INTO JAPANESE
宿題をするために図書館に行く
BACK INTO ENGLISH
Go to the library to do homework
That didn't even make that much sense in English.