Calculus · real student question

Differentiate y = cosine of the square root of (2x + 1).

Question

Differentiate

y=cos2x+1y=\cos\sqrt{2x+1}

and state where the derivative exists.

Step-by-step solution

  1. Identify the layers and the domain. The function is a triple composition: y=cosuy=\cos u with u=vu=\sqrt{v} and v=2x+1v=2x+1. For yy to be defined we need 2x+102x+1\ge 0, i.e. x12x\ge-\frac12; the derivative will require the strict inequality x>12x>-\frac12, because v\sqrt{v} has an infinite slope at v=0v=0.

  2. Differentiate the outer layer.

    dydu=sinu=sin2x+1\frac{dy}{du}=-\sin u=-\sin\sqrt{2x+1}

    The minus sign belongs to the derivative of cosine and must not be lost.

  3. Differentiate the inner square root, using the chain rule again. Writing 2x+1=(2x+1)1/2\sqrt{2x+1}=(2x+1)^{1/2},

    dudx=12(2x+1)1/22=12x+1\frac{du}{dx}=\frac12(2x+1)^{-1/2}\cdot 2=\frac{1}{\sqrt{2x+1}}

    The factor 22 from ddx(2x+1)\frac{d}{dx}(2x+1) cancels the 12\frac12 from the power rule — a tidy coincidence specific to the coefficient 22.

  4. Multiply the two rates.

    y=dydududx=sin2x+112x+1=sin2x+12x+1y'=\frac{dy}{du}\cdot\frac{du}{dx}=-\sin\sqrt{2x+1}\cdot\frac{1}{\sqrt{2x+1}}=-\frac{\sin\sqrt{2x+1}}{\sqrt{2x+1}}

  5. Check numerically and inspect the endpoint. At x=4x=4: 9=3\sqrt{9}=3, so y=sin33=0.14112003=0.0470400y'=-\frac{\sin 3}{3}=-\frac{0.1411200}{3}=-0.0470400, and a central difference of cos2x+1\cos\sqrt{2x+1} at x=4x=4 gives 0.0470400-0.0470400 ✓. At x=12x=-\frac12 the function is defined (y=cos0=1y=\cos 0=1) but the denominator vanishes, so the graph has a vertical tangent and yy' does not exist there.

Answer

y=sin2x+12x+1,x>12y'=-\frac{\sin\sqrt{2x+1}}{\sqrt{2x+1}},\qquad x>-\frac12

Need to solve a different problem like this? Open the solver →