ta có : \(\dfrac{sinx+sin\left(\dfrac{x}{2}\right)}{1+cosx+cos\left(\dfrac{x}{2}\right)}=\dfrac{2sin\left(\dfrac{x}{2}\right).cos\left(\dfrac{x}{2}\right)+sin\left(\dfrac{x}{2}\right)}{2cos^2\left(\dfrac{x}{2}\right)+cos\left(\dfrac{x}{2}\right)}\)
\(=\dfrac{sin\left(\dfrac{x}{2}\right)\left(2cos\left(\dfrac{x}{2}\right)+1\right)}{cos\left(\dfrac{x}{2}\right)\left(2cos\left(\dfrac{x}{2}\right)+1\right)}=\dfrac{sin\left(\dfrac{x}{2}\right)}{cos\left(\dfrac{x}{2}\right)}=tan\left(\dfrac{x}{2}\right)\left(đpcm\right)\)