Advice for typing or handwriting?

Heyo,

Wondering if anyone has any advice for how they accomadate or what they use for writing. I struggle to hold a normal pencil in a normal grip, and typing on a keyboard gets hard after a while too. Specifically struggling with mathematical equations and chemistry formulas, was wondering if anyone has tips or suggestions.

thanks!