Please tell me if this is the correct way of solving this problem.

You did not tell us what you wanted to FIND !!

You calculated dy/dx correctly.
Sorry. Yeah the question was to find dy/dx. I was confused since there was a direct formula as well d/dxcsc-1(x)=-1/|x| sqrt(x2-1) but that made no sense for this problem
 
Assuming you are looking for dy/dx, looks ok. However, leaving cos(cosec-1(x2-1)) is usually considered unfinished, because the expression can be written algebraically, without the need for trig functions.

imagine an angle in a right triangle whose hypotenuse is length x2-1 and whose opposite side is length 1. The adjacent side would be x SQRT(x2-2). The cosecant of this angle equals x2-1, and hence that angle’s measure is cosec -1(x2-1). Cosine of this angle would equal

x SQRT(x2-2)/(x2-1).
 
Sorry. Yeah the question was to find dy/dx. I was confused since there was a direct formula as well d/dxcsc-1(x)=-1/|x| sqrt(x2-1) but that made no sense for this problem
Why does it make no sense? You can do it that way and get the same result as your way yields (after simplifying the cosine to an algebraic expression).
 
Why does it make no sense? You can do it that way and get the same result as your way yields (after simplifying the cosine to an algebraic expression).
how do i simplify cosine to algrebraic expression?
 
how do i simplify cosine to algebraic expression?

Did you read #5? Davey Jones left out some steps, so you may not immediately follow his work. But you have probably seen problems like this.

Draw a right triangle and mark angle \(\theta\), whose cosecant is \(x^2-1\). Label an appropriate side 1 and another \(x^2-1\), then use the Pythagorean theorem to label the third. Write an expression for \(\cos(\theta)\) in terms of x.
 
Top