Find the value of \(\int _ { 0 } ^ { \frac { 1 } { 2 } \pi } ( \sin 2 x + \cos x ) \mathrm { d } x\).
\includegraphics[max width=\textwidth, alt={}, center]{9894d97f-3b7b-4dbe-b94a-2c8415442038-3_517_880_422_669}
The diagram shows part of the curve \(y = \frac { 1 } { x + 1 }\). The shaded region \(R\) is bounded by the curve and by the lines \(x = 1 , y = 0\) and \(x = p\).
Find, in terms of \(p\), the area of \(R\).
Hence find, correct to 1 decimal place, the value of \(p\) for which the area of \(R\) is equal to 2 .