Painstaking effort or trouble — working hard and using ingenuity to solve a problem (commonly used as 苦心する).
新しい方法を見つけるために苦心した。
I worked hard to find a new method.
彼の苦心の跡が作品に表れている。
The marks of his hard work are reflected in the work.
苦心の末、問題が解決した。
After much effort, the problem was solved.