Can someone kindly help to find the exact values of cosx and sinx when tanx=2..
You don't really need a formula as such. Try drawing a diagram (i.e. a right angled triangle). You know the value of the tangent of one angle, so you should be able to write down the values of two of the sides. There's a theorem that you know to find the third side-- try using this.