We will need a point and a slope to construct the tangent line.
Point: when \(q=100\text{,}\) we have \(\profit(100)=-100^2+300(100)-2500=-10,000+30,000-2500=18,500\)
Also \(\tax(\profit)=0.4(\profit-1000),\) gives
\begin{equation*}
\tax(18,500)=0.4(18,500-1000)= 7,000\text{.}
\end{equation*}
So the point is \(q = 100\text{,}\) \(tax = 7,000\text{.}\)
Slope: \(\frac{d\tax}{dq}= {d\tax}{d\profit}*\frac{d\profit}{dq}=(0.4)*(-2q+300)\)
So at \(q =100\) we have \(m=\frac{d\tax}{dq}= 0.4*(-200+300)= 40\text{.}\)
Tangent line: \(\tax-\tax_0=m(q-q_0)\)
So \(\tax=tax_0+m(q-q_0 )= 7000+40(q-100)\)
In slope-intercept form we have
\begin{equation*}
\tax(q)=40q+3000\text{.}
\end{equation*}
Note that here we have approximated a composite function by something much simpler. Finding tax meant we had to first find the profit, and then plug that profit into the tax function. Now, all we have to do is plug our value of \(q\) into the linear equation!