Yes, you made an error. You can apply the quotient rule. You can apply the product rule to . But, you cannot take the derivative of the numerator, then the derivative of the denominator, and assume you are getting a correct derivative.

You can also simplify the expression:

Then, the derivative would be and the second derivative would be .