a: \(y'=\left(x^2+3x-1\right)'\cdot e^x+\left(x^2+3x-1\right)\cdot\left(e^x\right)'\)
\(=e^x\left(2x+3\right)+\left(x^2+3x-1\right)\cdot e^x\)
\(=e^x\left(x^2+5x+2\right)\)
b: \(y'=\left(x^3\right)'\cdot log_2x+x^3\cdot\left(log_2x\right)'\)
\(=3x^2\cdot log_2x+x^3\cdot\dfrac{1}{x\cdot ln2}\)