The general form of the exponential function is given by;

where a is the initial value and b is any value greater than 0.
If the exponential function goes through the points (-1, 2) and (2, 128) we have;

And,

Divide [2] by [1] we have;

Simplify

Find the cube-root of both sides
![\begin{gathered} \sqrt[3]{64}=\sqrt[3]{b^3} \\ 4=b \\ \therefore b=4 \end{gathered}](https://img.qammunity.org/2023/formulas/mathematics/high-school/pgmdcxu83ifabuk418ukr1rr1pmbh8j95q.png)
Substitute the value of b = 4 in [2] we get;

Substitute the value of a and b in

then we have;

Therefore, the exponential function that goes through the points ( -1, 2) and (2, 128) is;
