Also, IF the first derivative were what you wrote, you (still) would have gotten the wrong second derivative; the first term would require the product and chain rules, and the second term would require the chain rule.
Also, IF the first derivative were what you wrote, you (still) would have gotten the wrong second derivative; the first term would require the product and chain rules, and the second term would require the chain rule.