Symbolic calculation is not an easy task, but if you succeed, you'll have learnt a lot about programming. Another possible approach is an iterative numerical approximation. Just google "newton raphson" (for example) to get an idea on how it might work.