Mathematical Analysis In Investment Theory: Applications to The Nigerian Stock Market