Try to define it the same way you defined the first g(x), so with an immediate array, instead of assigning expressions to the first and second elements of the array.
Your definition of A3(a) fails because x is an unknown. This may work if you include a symbolic evaluation at the definition.
(I can't try it out, because I'm limited to Prime express.)
The way you try to define your function in A2 would not work outside a program on worksheet level either.
You have to define your function the very same way as you defined g(x) on the very top of your sheet (as Luc and Valery already wrote/showed).
Another way which works also with numerical evaluation is shown below
Of course in this approach g is not a local function but a simple vector variable. So you can't use it as a function inside your program. Your sheet does not show if you intend to do this, though.
If this is your goal and you insist on defining the functions singly, you could use something like this: