The Mathematics of Derivatives Securities with Applications in MATLAB