I found the following sentence in my Mathematics book.
All we need to do is rewrite it.
I knew that rewrite is a verb. In that sentence, is rewrite a noun or an adjective.
I found the following sentence in my Mathematics book.
All we need to do is rewrite it.
I knew that rewrite is a verb. In that sentence, is rewrite a noun or an adjective.
In your sentence, 'rewrite' is a verb (as it usually is), denoting the action that is all we need to perform (the only action we need to perform, usually to complete some task).
An expression of the type All that I/you/we need to is... must be followed by a verb in the bare- or to-infinitive form.
I have cooked the bacon. All I need to do is fry the eggs.
After we have dug the hole, all we need to do is to throw the dead dog in.
'To do' is optional. and can be omitted, provide the to-infinitive form of the following verb is used:
To complete the cake, after icing or ('frosting') all you need is to place a cherry on the top.