Here
\begin{equation*}
y=ax^3+bx^2+cx+d
\end{equation*}
\begin{equation*}
\therefore \, \frac{dy}{dx} = 3ax^2+2bx+c
\end{equation*}
\begin{equation*}
or, \, m_1 = \frac{dy}{dx}\bigg|_{x=-2} = 3a(-2)^2 +2b(-2)+c = 12a-4b+c
\end{equation*}
But, slope, \(m_1=0\) for a horizontal tangent line.
\begin{equation*}
\therefore \, m_1= 12a-4b+c=0
\end{equation*}
Also,
\begin{equation*}
or, \, m_2 = \frac{dy}{dx}\vert_{x=2} = 3a(2)^2 +2b(2)+c = 12a+4b+c =0
\end{equation*}
Hence, the equation of tangent line
\begin{align*}
y-y_1 \amp =m_1(x-x_1)\\
y-6 \amp = (12a-4b+c)(x+2)
\end{align*}
\begin{equation*}
y-6 = (12a-4b+c)(x+2)
\end{equation*}
and
\begin{equation*}
y-0 = (12a+4b+c)(x-2)
\end{equation*}
Now, collecting all equations from above,
\begin{align}
y(-2) \amp = -8a+4b-2c+d = 6 \tag{βΆ}\\
y(2) \amp = 8a+4b+2c+d = 0 \tag{βΆβΆ}\\
y'(-2) \amp = m_1= 12a-4b+c = 0 \tag{βΆβΆβΆ}\\
y(2) \amp = m_2 = 12a+4b+c = 0\tag{##}
\end{align}
Solving last third and fourth equations, we have
\begin{align*}
12a-4b+c \amp =0 \\
12a+4b+c \amp = 0
\end{align*}
\begin{equation}
-8b=0 \Rightarrow \, b=0\tag{3.6.6}
\end{equation}
From third equation
\begin{equation}
12a+c = 0 \, \Rightarrow \, c=-12a\tag{3.6.7}
\end{equation}
From first equation
\begin{equation}
-8a+0-2(-12a)+d = 6 \, \Rightarrow \, 16a+d=6\tag{3.6.8}
\end{equation}
From second equation
\begin{equation}
8a+0+2(-12a)+d = 0 \, \Rightarrow \, -16a +d =0\tag{3.6.9}
\end{equation}
Solving last these two equations
\begin{align*}
16a+d=6 \amp=0 \\
-16a +d \amp =0
\end{align*}
\begin{equation}
d=3.\tag{3.6.10}
\end{equation}
from equation \(-16a +d =0\)
\begin{equation}
a= \frac{3}{16}.\tag{3.6.11}
\end{equation}
Again, from \(8a+4b+2c+d = 0\text{,}\) we get -
\begin{equation*}
8(\frac{3}{16})+4(0) +2c +3 = 0 \, \Rightarrow \, c= -\frac{9}{4}
\end{equation*}
Therefore \(a=\frac{3}{16},\) \(b=0,\) \(c=-\frac{9}{4}\text{,}\) and \(d=3.\)
Hence, the curve can be written as
\begin{equation*}
y= \frac{3}{16}x^3-\frac{9}{4}x+3.
\end{equation*}