It's not math, but I'm seeing this with my son recently with writing. He doesn't care anymore/is bored so he's flubbing simple "Fill in the right word" worksheets, leaving off answers, etc. Of course, he can also write a beautiful 3-page story if in the mood.

"Show your work" has been torturing my DD her whole school career.