# How to solve Equations with Variables on Both Sides

**URL:** https://discourse.julialang.org/t/how-to-solve-equations-with-variables-on-both-sides/117121
**Category:** General Usage
**Tags:** question
**Created:** [July 17, 2024, 4:22am UTC](https://discourse.julialang.org/t/how-to-solve-equations-with-variables-on-both-sides/117121 "2024-07-17T04:22:30Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![HamidrezaSafari](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/hamidrezasafari/32/209735_2.png) [@HamidrezaSafari](https://discourse.julialang.org/u/HamidrezaSafari)
#### Post date: [July 17, 2024, 4:22am UTC](https://discourse.julialang.org/t/how-to-solve-equations-with-variables-on-both-sides/117121/1 "2024-07-17T04:22:31Z")

</div>

Polynomial equations like x^2-3x = 2 and x^2-3x \> 4

---

<div class="post-metadata">

### Author: ![screw\_dog](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/screw_dog/32/48119_2.png) [@screw\_dog](https://discourse.julialang.org/u/screw_dog)
#### Post date: [July 17, 2024, 6:47am UTC](https://discourse.julialang.org/t/how-to-solve-equations-with-variables-on-both-sides/117121/2 "2024-07-17T06:47:51Z")

</div>

It sort of depends on the specifics of what you want.

Julia is not itself a CAS and so you’d need to use a package like [Symbolics.jl](https://symbolics.juliasymbolics.org/stable/getting_started/) to write your equations. However, this doesn’t have a general purpose equation solver so you’d have to write your own, which would range from fairly straightforward if you are only dealing with quadratics to theoretically impossible if you want to handle arbitrary polynomials.

An alternative would be to use a specific polynomial package like [Polynomials.jl](https://juliamath.github.io/Polynomials.jl/stable/) and find roots numerically. [This](https://juliamath.github.io/Polynomials.jl/stable/#Comments-on-root-finding) section of the docs lists several alternative packages for root-finding with different advantages depending on what you need.

HTH
