Could you please explain what is meant by the term 'derivative' and provide an example to illustrate its concept? I'm quite interested in understanding how it applies in the realm of finance and investment, especially given its potential role in risk management and portfolio diversification. Would it be possible for you to elaborate on this matter with a specific instance that helps visualize the working of a derivative?