How do you find the derivative of

y=sin(x)*(sinx+cosx)

just use the product rule

If y = uv then
y' = u'v + uv'
where u=sinx and v=sinx+cosx

y' = cosx(sinx+cosx) + sinx(cosx-sinx)
= sin2x + cos2x