1. To get vertical asymptotes at x=2 and x=-2, the DENOMINATOR of the rational function has to be (x-2)(x+2). The reason is that when x=2 or x=-2, we would get division by zero, which is undefined, and causes the vertical asymptote.
2. To get x intercepts at x=1 and x=-4, the NUMERATOR of the rational function has to be (x-1)(x+4). The reason is that when x=1 or x=-4, it causes the numerator to be 0. This makes y=0, and we have an x intercept.
So far we have:
a(x-1)(x+4)
y = ---------------
(x-2)(x+2)
3. The y intercept at 4 gives us the point (0,4) which we can plug in to find a.
a(0-1)(0+4)
4 = ---------------
(0-2)(0+2)
We will get a=4, so the final answer is:
4(x-1)(x+4)
y = ---------------
(x-2)(x+2)