# Video: Differentiating a Composition of Root and Rational Functions Using Logarithmic Differentiation

Using logarithmic differentiation, determine the derivative of 𝑦 = √((𝑥 + 1)/(2𝑥⁴ − 2)).

04:44

### Video Transcript

Using logarithmic differentiation, determine the derivative of 𝑦 is equal to the square root of 𝑥 plus one over two 𝑥 to the power four minus two.

We’re given what looks to be a fairly complicated function 𝑦, which is the square root of a quotient function. And we can write this as 𝑥 plus one over two 𝑥 to the of power four minus two all raised to the power of a half since an exponent of a half is the same thing as a square root. Now we could treat this as a function of a function and use the chain rule and the quotient rule to differentiate. However, we’re specifically asked to use logarithmic differentiation.

But how does this work? Well, let’s see. Suppose we have a function 𝑦 is equal to 𝑓 of 𝑥. Then the first thing we do is apply the natural logarithm to both sides. We then have the natural logarithm of 𝑦 is equal to the natural logarithm of 𝑓 of 𝑥, recalling that the natural logarithm means the log to the base 𝑒, where 𝑒 is Euler’s number, which is approximately 2.71828 and so on. And for this to be valid, we need to specify that 𝑦 is greater than zero, since the log of zero is undefined and the log doesn’t exist for negative values.

If we did want to include negative values, we use the absolute values of 𝑦 and 𝑓 of 𝑥 and then specify that 𝑦 is not equal to zero. Our second step in logarithmic differentiation is to use the laws of logarithms to expand the natural log of 𝑓 of 𝑥. This should give us something that we can easily differentiate. And so we differentiate on both sides with respect to 𝑥. And once we’ve done this, we can solve for 𝑦 prime. That’s d𝑦 by d𝑥. So let’s begin working through our steps with our function 𝑦 by taking the natural logarithms on both sides.

And in our case, we can specify that 𝑦 is the positive square root. Next, we use the laws of logarithms to expand our right-hand side. And the first law we can use since we have an exponent of a half on our right-hand side is the power rule for logarithms. This says that log to the base 𝑎 of 𝑏 raised to the power 𝑐 is 𝑐 times log to the base 𝑎 of 𝑏. That is, we bring our exponent to the front and multiply by it. In our case then, this means we bring our half down to the front.

Now the argument of our natural logarithm on the right-hand side is a quotient. And we can simplify this by using the quotient rule for logarithms that says log to the base 𝑎 of 𝑏 over 𝑐 is the log to the base 𝑎 of 𝑏 minus log to the base 𝑎 of 𝑐. In our case, 𝑥 plus one corresponds to 𝑏 and two 𝑥 to the power of four minus two corresponds to 𝑐. And so we have one over two times the natural logarithm of 𝑥 plus one minus the natural logarithm of two 𝑥 to the power of four minus two. So now we have something manageable on our right-hand side that we know how to differentiate quite easily.

Now we want the derivative with respect to 𝑥. And on our left-hand side, we’re differentiating a function of a function because, of course, 𝑦 is a function of 𝑥. And on our right-hand side, the derivative of a sum is the sum of the derivatives. So we can split this into two derivatives and take the constant a half out front. And on both sides, we’re going to use the known result that d by d𝑥 of the natural logarithm of 𝑢, where 𝑢 is a differentiable function of 𝑥, is one over 𝑢 times d𝑢 by d𝑥. And that’s for 𝑢 greater than zero.

On our left-hand side, this gives us one over 𝑦 d𝑦 by d𝑥. And on our right-hand side, in our first term, if we have 𝑢 is equal to 𝑥 plus one and d𝑢 by d𝑥 is equal to one, then d by d𝑥 of the natural logarithm of 𝑥 plus one is one times one over 𝑥 plus one. Similarly, in our second term, if we let 𝑢 equal to two 𝑥 to the power of four minus two, then d𝑢 by d𝑥 is eight times 𝑥 to the power three. And so the derivative with respect to 𝑥 of the natural logarithm of two 𝑥 raised to power of four minus two is eight 𝑥 cubed times one over two 𝑥 to the power of four minus two.

And writing this out a little more neatly, we have one over 𝑦 d𝑦 by d𝑥 on our left-hand side is equal to one over two times one over 𝑥 plus one minus eight 𝑥 cubed over two 𝑥 to the power of four minus two. In the second term, on our right-hand side, in the denominator, we have a common factor of two, which we can cancel with the factor two in the numerator. And we can also bring our half inside our parentheses. And we can note again that in the second term in our right-hand side, we have a common factor of two in the numerator and denominator. And so we have one over 𝑦 d𝑦 by d𝑥 is one over two 𝑥 plus two minus two 𝑥 to the power of three over 𝑥 to the power of four minus one.

Now making some room, we can note that we have a factor of one over 𝑦 on the left-hand side, so we’re not quite finished. To eliminate this, we can multiply both sides by 𝑦. And the 𝑦’s on the left-hand side will then cancel. And if we then substitute back in our function 𝑦, we have d𝑦 by d𝑥 is as shown. And if we rewrite this as a square root as it’s given in the question, we have d𝑦 by d𝑥, so that’s the derivative of 𝑦 with respect to 𝑥, is the square root of 𝑥 plus one over two 𝑥 to the power of four minus two times one over two 𝑥 plus two minus two 𝑥 cubed over 𝑥 to the power of four minus one.