\(a,y'=\left(f\left(g\left(x\right)\right)\right)'\)
\(=f'\left(g\left(x\right)\right).g'\left(x\right)\)
\(=e^{g\left(x\right)}.\left(2x-1\right)\)
\(=e^{x^2-x}.\left(2x-1\right)\)
\(b,y'=\dfrac{d}{dx}\left(3^{sinx}\right)\)
\(=\dfrac{d}{dx}\left(e^{ln3.sinx}\right)\)
\(=\dfrac{d}{dx}\left(ln3.sinx\right).e^{ln3.sinx}\)
\(=ln3.cosx.3^{sinx}\)