Try+ing does mean to experiment with something, but those examples aren't helpful at all.
The best way to understand the difference between 'try to do' and 'try doing' is with a concrete example.
Let's say you have a friend who wants to give up smoking.
He is trying TO STOP smoking. Here we use 'to +infinitive' because it something that is difficult for him, but he is making an effort to do this.
You want to help him, so you make some suggestions:
Why don't you try SMOKING one of those e-cigarettes?
Maybe you could try USING nicotine patches?
Perhaps you could try HAVING acupuncture?
Here you use try + gerund because these are 'experiments'. It is not difficult to smoke an e-cigarette or put on nicotine patches. These are just possible ideas - they're things which your friend could try, in order to help him to achieve his goal.
I hope that makes sense.