Black Scholes valuation for european call option is:
$$C_0=S_0N(d_1)-Xe^{-rT}N(d_2)$$
where $d_1=\dfrac{\ln(\frac{S_0}{x})+(r+{\sigma^2\over2})T}{\sigma\sqrt{T}}$
and $d_2=\dfrac{\ln(\frac{S_0}{x})+(r-{\sigma^2\over2})T}{\sigma\sqrt{T}}$
I need to find $\sigma$ in $d_1$ and $d_2$
So far for $d_1$ I have gone to this point: $r(d_1\sqrt{T}-Tr)-\frac{T\sigma^2}{4}=\ln(\frac{S_0}{x})+Tr^2$ but I'm not sure how to continue solving for $\sigma$.