Gradient Based Optimization Algorithm Example In Math