elucubrate

(verb)

verb

1. To solve, write or compose by working studiously at night; to study.