A polyimide comprising a structural unit represented by the following formula: where A 1 in a partial structure represented by [-O-A 1 -] is: a divalent aliphatic group R 1 which has a carbon number of 1 to 10 and may have a substituent; a divalent aromatic group Ar 1 which contains 1 to 4 rings and may have a substituent; a group represented by formula [-Ar 2 -Z 1 -Ar 3 -] (where Ar 2 and Ar 3, which may be the same as or different from each other, are each a divalent aromatic group which contains 1 to 4 rings and may have a substituent, and Z 1 is a direct bond (-), an ether group (-O-), a thioether group (-S-), or a sulfone group (-SO 2 -)); a group represented by formula [-R 2 -Ar 4 -] (where R 2 is a divalent aliphatic group which has a carbon number of 1 to 10 and may have a substituent, and Ar 4 is a divalent aromatic group which contains 1 to 4 rings and may have a substituent); or a group represented by formula [-Ar 5 -R 3 -Ar 6 -] (where Ar 5 and Ar 6, which may be the same as or different from each other, are each a divalent aromatic group which contains 1 to 4 rings and may have a substituent, and R 3 is a divalent aliphatic group which has a carbon number of 1 to 10 and may have a substituent), the substituent which the aliphatic groups R 1, R 2 and R 3, and the aromatic groups Ar 1, Ar 2, Ar 3, Ar 4, Ar 5 and Ar 6 may have is at least one selected from a methyl group, an ethyl group, a propyl group, a butyl group, a trifluoromethyl group, a phenyl group, a phenoxy group, a phenylthio group, and a benzenesulfonyl group, and C 1 is a tetravalent group. A 1 in a partial structure represented by [-O-A 1 -] is: a divalent aliphatic group R 1 which has a carbon number of 1 to 10 and may have a substituent; a divalent aromatic group Ar 1 which contains 1 to 4 rings and may have a substituent; a group represented by formula [-Ar 2 -Z 1 -Ar 3 -] (where Ar 2 and Ar 3, which may be the same as or different from each other, are each a divalent aromatic group which contains 1 to 4 rings and may have a substituent, and Z 1 is a direct bond (-), an ether group (-O-), a thioether group (-S-), or a sulfone group (-SO 2 -)); a group represented by formula [-R 2 -Ar 4 -] (where R 2 is a divalent aliphatic group which has a carbon number of 1 to 10 and may have a substituent, and Ar 4 is a divalent aromatic group which contains 1 to 4 rings and may have a substituent); or a group represented by formula [-Ar 5 -R 3 -Ar 6 -] (where Ar 5 and Ar 6, which may be the same as or different from each other, are each a divalent aromatic group which contains 1 to 4 rings and may have a substituent, and R 3 is a divalent aliphatic group which has a carbon number of 1 to 10 and may have a substituent), a divalent aliphatic group R 1 which has a carbon number of 1 to 10 and may have a substituent; a divalent aromatic group Ar 1 which contains 1 to 4 rings and may have a substituent; a group represented by formula [-Ar 2 -Z 1 -Ar 3 -] (where Ar 2 and Ar 3, which may be the same as or different from each other, are each a divalent aromatic group which contains 1 to 4 rings and may have a substituent, and Z 1 is a direct bond (-), an ether group (-O-), a thioether group (-S-), or a sulfone group (-SO 2 -)); a group represented by formula [-R 2 -Ar 4 -] (where R 2 is a divalent aliphatic group which has a carbon number of 1 to 10 and may have a substituent, and Ar 4 is a divalent aromatic group which contains 1 to 4 rings and may have a substituent); or a group represented by formula [-Ar 5 -R 3 -Ar 6 -] (where Ar 5 and Ar 6, which may be the same as or different from each other, are each a divalent aromatic group which contains 1 to 4 rings and may have a substituent, and R 3 is a divalent aliphatic group which has a carbon number of 1 to 10 and may have a substituent), the substituent which the aliphatic groups R 1, R 2 and R 3, and the aromatic groups Ar 1, Ar 2, Ar 3, Ar 4, Ar 5 and Ar 6 may have is at least one selected from a methyl group, an ethyl group, a propyl group, a butyl group, a trifluoromethyl group, a phenyl group, a phenoxy group, a phenylthio group, and a benzenesulfonyl group, and C 1 is a tetravalent group.