The graph of is given below:

Find a formula for each of the transformations whose graphs are given below.
a)


b)