I need to evaluate these limits using L'Hopital's Rule, but i do not understand how to set these up. Full answers would be extremely helpful, but i could deal with set ups.

1.

lim

n->infinity

n(1-cos(1/n))

and

2.

lim

x->(pi/2) (left)

(x-(pi/2))sec(x)