Finding the values of k???

Let f be a piecewise defined function given by

f(x) ={ k(k + 1) sin² (x) + 2e^kx cos(x), x < (π÷2),

{ x² + k (x - k + 1), x ≥ (π÷2)

for some k Є R. Find the values of k for which f is continuous when x = (π÷2).

please solve this including showing the workings.

The 2 individual { brackets are supposed to be 1 large bracket but there is no large bracket sign i can use,so i used 2 { instead indicating just 1 {.

Hope u understand what im saying.

Try to show the workings and give a clear answer so i dont get confused with the whole thing.

÷ Є ∞ ○ π { ≤ ² ≥ ∩