
Bradford T. answered 11/08/20
Retired Engineer / Upper level math instructor
Find the derivative of g(x)
g ' (x) = 1 - 2 sin(x)
g '(π/2) = 1-2 = -1 = m (the tangent slope at that point)
g(π/2) = π/2 + 0 = π/2 --> (x1, y1) = (π/2, π/2)
For the line, use the point slope form
y-y1 = m(x-x1) --> y -π/2 = -1(x - π/2) --> y = -x + π