"Just like how taking the derivative of a function gives you the slope, a derivative in finance is a bet on the rate of change of the value of a stock, or a bond, or an index."
No. That is just completely wrong. A derivative is a financial instrument that derives value from other things.
As an aside, the derivatives market is far bigger than the stock market.