Invent = create a machine, instrument, system or process, which has not existed before: ‘Who invented the telephone?’ ‘The cotton gin was invented by Eli Whitney in 1793.’
Discover = find or find out something for the first time: ‘Penicillin was discovered almost by accident.’ ‘I’ve just discovered a new way of cooking pasta.’