Grammatically may be all in order, but the sentence is formed bad. “it” refers to “equation”.
Would be better:
While trying to solve the mathematical equation, the intricacy of it drove the student crazy.
While trying to solve the mathematical equation, the student was driven crazy by the intricacy of it.
Trying to solve the intricate mathematical equation drove the student crazy.
Not “he” in the case… In my understanding, ‘while’-clause with gerind just describes the conditions under which the subject (‘the intricacy’ in the case) acts/acted (‘drove’).
Yes, Tamara.
“the intricacy” is a subject.
The object is “the student”, so - “he”.
The object (student) is driven crazy by the subject (intricacy) while
the object (student) was trying to solve the equation (in this part of the sentence the object of the first part turns into the subject, while the object is “equation”). But aren’t we driven crazy yet with all that subject-object nonsense? We’ve just tried to refine the sentence disliked by Torsten.
.
Just to get back to Torsten’s original question, it might be worth noting that “go crazy trying to do (something)” is a normal phrase.
But Torsten’s sentence is awkward because it seems to say that ‘the student went crazy trying to solve the intricacy’ (rather than ‘solve the equation’).
.
Amy