We didn't invent 'i' to "solve sqrt(-1)". This is an extremely common misconception about maths and how it progressed that unfortunately people get led into believing by lazy teachers every day
Veritasium - How Imaginary Numbers Were Invented - https://youtu.be/cUzklzVXJwo
Solving the cubic was a physical thing back then. https://www.maa.org/press/periodicals/convergence/solving-th...