Textbook, software recommendations for self-study

I'm pretty serious about programming as a hobby, and I want to deepen my understanding by learning some of the underlying math that goes into computer science.

To start out with, I want to re-teach myself Calculus I & II (I took it in college 15 years ago, but I only remember basic things like how to do simple derivatives). But I'm planning to also eventually do other topics like discrete mathematics, probability, liner algebra, etc.

I'm looking for a textbook that also has a solutions manual available. I see a lot of people recommending Stewart as an author on the most similar threads I can find. For my purposes, where I'm treating this as a 'prerequisite' course, does it matter if I do the one that is just labeled "Calculus" vs. "Early Transcendentals"? Or if there are other textbooks you'd recommend in this case, I'm open to that.

In addition, I tend to learn best when I take notes. I have some hand issues so I can't hold a pen/pencil for very long; typing is better, but it's best if I can keep my hands on the keyboard without having to constantly swap to the mouse. Given that I'm a Linux user, what software would you recommend for taking notes where you need to mix blocks of text with math equations?

And similar question--what would you recommend for typing out question answers (e.g. where I don't need to mix significant amounts of non-math text). For that one, I wonder if just straight up LaTeX would be the best route (don't know it, but I'm sure I could learn).

Author: shapingthefuture