$g$ is a trigonometric function of the form $g(x)=a\sin(bx+c)+d$.
Below is the graph $g(x)$. The function intersects its midline at $\left(\dfrac{\pi}{2},3.5\right)$ and has a minimum point at $\left(-\dfrac{\pi}{2},-2\right)$.
**Find a formula for $g(x)$. Give an exact expression.**
$\qquad g(x)=$ [[☃ expression 1]]
$\qquad$