I'm a high schooler who recently found a derivation of a trigonometric function over complex numbers. I typed it up as a LaTeX paper and know it's probably not publishable to an actual journal. I'm deciding if I should publish it to arXiv and when I tried registering as a user it asked for my affiliation. Is an affiliation necessary to register and publish? Is it even worth trying to publish?
Independently of whether you need an affiliation, this sounds like a well-known representation of trig formulas (Euler's formula). There is quite some theory involved with this, including and up to Galois theory. You should check with someone knowledgeable whether you indeed discovered anything new.
It's fun to discover new stuff, and it's a cool feeling to recover things that very smart people came up with, but, once you are there, you have to give it the reality check, which is the ultimate hallmark of the scientist.
Perhaps some friendly mathematician from the local college is happy to spare half an hour with a talented high schooler to give you at least an idea how novel the idea is or what else to try from this point on?
I believe an affiliation is not necessary when registering, although their help page only mentions that if you supply an affiliation, it has to be correct. If the signup form insists that you fill out the field, you can always write "None" or something like that. Note however opening a user account is only one part of submitting an article. In your case it is likely that you would need to be endorsed first for the category in which you want to submit. This would require you to find someone who has published a few papers in your category to endorse you. The arXiv recommends that endorsers do a quick check to see if the manuscript is appropriate for the arXiv or not. More information can be found here.
That being said, Captain Emacs makes a good point, and it would be wise to first check if your work adds anything to what is already known and available.
No, you don't need an academic affiliation.
I registered with arXiv a while back. I may or may not have entered the name of my employer (a large software company, in no way an academic institution). I have also been endorsed, so I could upload something. (I haven't done so yet, because I found the process to be painfully cumbersome.)
If you must fill in an affiliation field, I'd suggest you just put in the name of your high school, or "independent".