"to be invented" is simple passive infinitive ("invented" is a participle, not a past tense form). "to have been invented" is perfect passive infinitive. As was mentioned in another thread recently (not sure if that was you), there is no simple past infinitive in English.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.