The equation g(x)=sin(bx) moved the horizontal waves/pattern in a vertical shift depending on what number was either subtracted or added. The diagonal patterns
are diagonal because an x was added to the equation, which told the lines where to move to. The wavy patterns were mostly used with sine and different additions and subtractions moved the patterns to where they are in the picture.