While the author of Ecclesiastes is a debated topic, many think it was written by Solomon. The book of Proverbs makes it clear in the first verse that it was written by Solomon. So we have two different books, probably written by the same guy. But interestingly, there are two verses that give a polar opposite view of the results of wisdom and understanding:
“Her [wisdom and understanding personified] ways are pleasant ways and all her paths are peace.” Proverbs 3:17
“Because in much wisdom there is much grief, and increasing knowledge results in increasing pain.” Ecclesiastes 1:18
Clearly peace is not the same thing as grief, nor is pain the same thing as pleasant. Considering that there is no argument over that, what then make sense of these two verses. Can they both be true at the same time? Is wisdom and understanding a grievously pleasant and peacefully painful thing? Are we supposed to do the math and determine that wisdom is just average then in every regard?
How can these two verses be understood so that they are both true, but can be in harmony with each other and not be a ridiculously obvious contradiction?