Solve sigmoidGradient.m