There is no simple algebraic way to do that.
Have a look at the experimental “rjh-stereo-tool.ny” https://forum.audacityteam.org/t/karaoke-rotation-panning-more/30112/1
As that plugin is not part of Audacity, any questions regarding the plugin should be addressed to Robert JH (the plugin author) by posting to that topic.