Your function does not proeduce:
I don't know what method you used . . .
We have: .
Let . . . That is, assume is an exponential function.
Then we have: .
Form a linear combination of these roots: .
From the first two values, we have: .
Solve the system of equations: .
. . Therefore: .