Currently I am trying to make Mathematica handle vector expressions defined element-wise. For example,
But I can find no way to do this. Every way I tried requires a fixed-sized vector and returns a fixed sized vector rather than a formula for elements.
Evaluating y[{1, 2, 3}] works but y[x] doesn't work.
I'm new to Mathematica, but I believe there's an elegant way to do this :)


- As you receive help, try to give it too, by answering questions in your area of expertise.
- Take the tour and check the faqs!
- When you see good questions and answers, vote them up by clicking the gray triangles, because the credibility of the system is based on the reputation gained by users sharing their knowledge. Remember to accept the answer, if any, that solves your problem, by clicking the checkmark sign!
– Jun 19 '16 at 15:21