[tex]\begin{gathered} y=a^x \\ P(1,\frac{1}{2}) \\ Finding\text{ the value of a using P} \\ \frac{1}{2}=a^1 \\ \frac{1}{2}=a \\ \text{Hence, the function is} \\ y=\frac{1}{2}^x \\ From\text{ the graph the domain is (-2,2}\rbrack \\ F\text{inding the range} \\ \text{for x=-2} \\ y=\frac{1}{2}^{(-2)} \\ y=4 \\ For\text{ x=2} \\ y=\frac{1}{2}^{(2)} \\ y=\frac{1}{4} \\ \text{Therefore the range is (4,}\frac{1}{4}\rbrack \end{gathered}[/tex]