Everyline tanjent to the function y=sin x has a y-intercept. Among all these tanjent lines, somewere between 0<x<2pi, find the equation of the line with the highest y-intercept.
derivative of sinx=cosx
Second derivative is -sinx
The Attempt at a Solution
I got both of the derivatives and know that x = 0 when it equals pi and 2pi, I know the slope when x=pi is -1 so thats probabley the slope. But how would i figure out the y-intercept and put it in an equation?