The polyimide of the present invention comprises repeating units represented by the formula: ##STR12## wherein Ar is a divalent group containing an aromatic ring; X is ##STR13## and R1, R2, R3 and R4 represent independently an alkyl or alkoxyl group having 1 to 4 carbon atoms.