Derivative of Composition of Functions

There is a certain function $f$ such that the tangent line at $x=\frac{1}{2}$ is $y=2x+1.$

Given that $g(x)=f(\sin x),$ find the sum of all possible values of $\frac{dg}{dx}$ when evaluated at $x=\frac{\pi}{6}$.

×