Blog

Chain Rule, Implicit, Parametric or Logarithmic Differentiation?

Choose the right differentiation method using a clear decision table, worked examples, domain checks and practice questions with answers.

  • 12th
  • Study Advice
A mechanical glass flower connected by nested petals, interlocking stems, twin cords and an unfolding paper spiral

You know the derivative of a power. You remember the product rule. Then a question puts x in the base and the exponent, or gives x and y in terms of t, and suddenly the first step feels uncertain.

The way out is to look at how the quantities are connected before choosing a formula.

Use the chain rule for a function inside another function, implicit differentiation when x and y are tied together in an equation, parametric differentiation when both depend on a third variable, and logarithmic differentiation when taking logarithms simplifies a variable power or a complicated product.

These methods can work together. Learning to recognise their roles is much more useful than trying to place every question in one exclusive box.

Throughout this guide, y' means dy/dx, ln means the natural logarithm, and trigonometric arguments are in radians. We work with real-valued functions wherever the stated expressions are defined and differentiable.

A Quick Decision Table

What the question gives youBest starting pointMain check
A function inside another functionChain ruleInclude the inner derivative
An equation mixing x and yImplicit differentiationTreat y as depending on x
x = f(t) and y = g(t)Parametric differentiationDivide by dx/dt, when nonzero
A variable base and variable exponentLogarithmic differentiationUse a positive base for the usual real formula
Many multiplied or divided factorsConsider logarithmsRespect signs and excluded values

This is a starting guide, not a command to use a complicated method. For y = (x + 2)^3, the chain rule is direct. Taking logarithms would add work and temporarily exclude a point where the original polynomial is perfectly well behaved.

The school-level foundations appear in the NCERT chapter on continuity and differentiability. The workshop below uses original examples to practise choosing and combining the methods.

1. Chain Rule: Work From the Outside In

A composite function has layers. In y = (3x^2 + 2)^5, the outside operation is raising something to the fifth power. The inside expression is 3x^2 + 2.

For y = f(u) and u = g(x):

dy/dx = (dy/du) * (du/dx)

Differentiate the outside while leaving the inside in place, then multiply by the derivative of the inside. This is the rule described in OpenStax’s chain-rule lesson.

Worked Example 1: A Power Around a Polynomial

Differentiate y = (3x^2 + 2)^5.

Write the two layers separately:

u = 3x^2 + 2
 y = u^5

dy/du = 5u^4
du/dx = 6x

Multiplying gives:

dy/dx = 5(3x^2 + 2)^4 * 6x
      = 30x(3x^2 + 2)^4

The answer 5(3x^2 + 2)^4 is incomplete because it ignores how the inside changes with x. Expanding the fifth power first would be valid, but unnecessarily long.

At x = 0, the derivative is zero. That is a useful quick check: the original function has the same value at x and -x, and its graph is flat at the centre.

Worked Example 2: Three Layers

Differentiate y = sin((2x + 1)^3).

Read the layers in order: sine, cube, linear expression.

dy/dx = cos((2x + 1)^3)
        * 3(2x + 1)^2
        * 2

      = 6(2x + 1)^2 cos((2x + 1)^3)

There are three derivative factors because there are three layers to pass through. The cosine still contains the original cube; differentiating the outside does not erase its input.

When a Product Also Contains a Composite Function

For y = x^2 sin(3x), multiplication is the outermost structure, so begin with the product rule:

dy/dx = 2x sin(3x) + x^2 * 3cos(3x)

The chain rule appears inside the second term. A frequent mistake is to multiply the two derivatives and write 2x * 3cos(3x). That is neither the product rule nor the chain rule for this expression.

A helpful question is: what operation would I perform last to calculate y? Here, you would multiply x^2 by sin(3x). That tells you which rule goes first.

2. Implicit Differentiation: Keep the Relationship Intact

An equation such as x^2 + xy + y^2 = 19 connects x and y without giving one simple expression for y. You can differentiate the equation directly, working along a differentiable branch of the curve.

The essential habit is to remember that y changes with x:

d(y^2)/dx = 2y y'
d(sin y)/dx = cos(y) y'
d(xy)/dx = y + x y'

The last line uses the product rule. Implicit differentiation repeatedly uses the chain rule on expressions involving y, as explained in OpenStax’s implicit-differentiation lesson.

Worked Example 3: Find the Slope at a Point

For x^2 + xy + y^2 = 19, find dy/dx at (2, 3).

First check the point:

2^2 + 2*3 + 3^2 = 4 + 6 + 9 = 19

Now differentiate both sides with respect to x:

2x + (y + x y') + 2y y' = 0

Collect the derivative terms before dividing:

(x + 2y)y' = -(2x + y)

y' = -(2x + y)/(x + 2y)

At (2, 3):

y' = -(4 + 3)/(2 + 6) = -7/8

If the tangent equation is required, use the same point and slope:

y - 3 = (-7/8)(x - 2)

Do not substitute the point into the original equation before differentiating. That leaves only 19 = 19 and loses the changing relationship you need.

What If the Denominator Is Zero?

The quotient above applies where x + 2y is nonzero. If that denominator vanishes, return to the curve rather than forcing a numerical answer.

For the simpler circle x^2 + y^2 = 16:

2x + 2y y' = 0
 y' = -x/y, when y != 0

At (4, 0), there is a vertical tangent, x = 4, and no finite dy/dx. A vertical tangent is not a horizontal tangent with slope zero.

When both the numerator and denominator vanish, the situation needs further analysis. An expression of the form 0/0 does not tell you the tangent by itself.

3. Parametric Differentiation: Compare Two Rates

Suppose x and y are both described using t:

x = f(t)
y = g(t)

Differentiate each with respect to t, then calculate:

dy/dx = (dy/dt)/(dx/dt), provided dx/dt != 0

The ratio compares the change in y with the change in x as the parameter moves. You do not usually need to eliminate t first. OpenStax’s treatment of parametric curves develops this slope formula and its tangent conditions.

Worked Example 4: A Slope Without Eliminating t

Given:

x = t^2 + 1
y = t^3 - 2t

Find the tangent at t = 2.

Differentiate:

dx/dt = 2t
dy/dt = 3t^2 - 2

dy/dx = (3t^2 - 2)/(2t), t != 0

At t = 2, the slope is (12 - 2)/4 = 5/2.

The point is:

x = 2^2 + 1 = 5
y = 2^3 - 2*2 = 4

Therefore the tangent is:

y - 4 = (5/2)(x - 5)

Notice that dy/dt = 10 is not the requested slope. It measures change relative to t, while the tangent slope compares y with x.

At t = 0, dx/dt = 0 but dy/dt = -2. The curve has a vertical tangent at (1, 0). If both parameter derivatives were zero, we would need to examine the curve or a suitable limit before drawing a conclusion.

A Small Extension: The Second Derivative

If a question asks for d^2y/dx^2, differentiate the first slope with respect to t, then divide by dx/dt again:

d^2y/dx^2 = [d/dt(dy/dx)] / (dx/dt)

For this example:

dy/dx = (3/2)t - 1/t

d/dt(dy/dx) = 3/2 + 1/t^2

d^2y/dx^2 = (3/2 + 1/t^2)/(2t)

At t = 2, the second derivative is 7/16. It is not (d^2y/dt^2)/(d^2x/dt^2). The second derivative measures how the slope changes with x, so the conversion from t to x still matters.

4. Logarithmic Differentiation: Bring the Exponent Down

First separate three different structures:

ExpressionWhat stays constant?Derivative
x^5Exponent5x^4
5^xBase5^x ln 5
x^x, for x > 0Neitherx^x(ln x + 1)

The ordinary power rule treats the exponent as a constant. It cannot simply be applied to x^x by pretending the exponent does not change.

For a positive differentiable base u and a differentiable exponent v, taking logarithms of y = u^v gives ln y = v ln u. Differentiating then uses the product and chain rules. Logarithms can also turn products into sums and quotients into differences. See OpenStax’s lesson on logarithmic differentiation.

Worked Example 5: Both Base and Exponent Vary

Differentiate:

y = (x + 2)^(x - 1), x > -2

The domain condition makes the base positive, so the usual real logarithm method applies.

Take natural logarithms:

ln y = (x - 1) ln(x + 2)

Differentiate both sides:

y'/y = ln(x + 2) + (x - 1)/(x + 2)

Multiply by the original y:

y' = (x + 2)^(x - 1)
     * [ln(x + 2) + (x - 1)/(x + 2)]

At x = 1, the original function is 1 and the derivative is ln 3. Even though the exponent happens to be zero at that point, it is still changing nearby. Substituting x = 1 before differentiating would conceal that change.

Worked Example 6: A Product and Quotient

Differentiate:

y = (x + 1)^3 * sqrt(x + 4) / (x + 2)^2

Work first on x > -4, excluding x = -2 and x = -1. The original function is nonzero on these intervals, so use absolute values when taking logarithms:

ln|y| = 3ln|x + 1| + (1/2)ln(x + 4)
        - 2ln|x + 2|

Differentiate:

y'/y = 3/(x + 1) + 1/[2(x + 4)] - 2/(x + 2)

Hence:

y' = [(x + 1)^3 * sqrt(x + 4)/(x + 2)^2]
     * [3/(x + 1) + 1/[2(x + 4)] - 2/(x + 2)]

This factored answer is useful because each original factor has contributed one term inside the bracket. You do not need to combine those fractions unless the question requires a particular form.

But there is an important loose end: what about x = -1? The original function is defined there and equals zero, although the logarithmic working excluded it.

Write y = (x + 1)^3 h(x), where h(x) = sqrt(x + 4)/(x + 2)^2 is differentiable near -1. The product rule shows that both terms of y’ vanish at -1, so y'(-1) = 0.

At x = -2, the original function is undefined. That value cannot be restored. At the endpoint x = -4, the square-root factor requires separate endpoint analysis; the formula above was derived only for x > -4.

The distinction matters: a method can temporarily exclude a valid point, while the original expression can permanently exclude another.

When Two Methods Belong in the Same Solution

Suppose a question gives:

x^y = y^x, with x > 0 and y > 0

It contains variable powers, suggesting logarithms, and an equation relating x to y, suggesting implicit differentiation. Use both.

y ln x = x ln y

y' ln x + y/x = ln y + x y'/y

y'[ln x - x/y] = ln y - y/x

Where the coefficient of y’ is nonzero:

y' = [ln y - y/x]/[ln x - x/y]

As a check, consider the branch y = x. At points on this branch where ln x - 1 != 0, the quotient becomes 1, matching the derivative of y = x.

At (e, e), it becomes 0/0. The diagonal branch still has slope 1 there, but this rearranged formula cannot determine it at that point. This is a good reminder to check what you divided by.

Common Mistakes and the Repair

Missing an inner derivative. For ln(4x + 1), the derivative is 4/(4x + 1), not 1/(4x + 1). Label the inside expression before starting.

Treating y as a constant in an implicit equation. If y depends on x, differentiating y^3 gives 3y^2 y'. Write the y' at the same time as the rest of the term.

Forgetting the product rule for xy. Its derivative is y + xy', not xy' and not 1. Think of x and y as two changing factors.

Reversing the parametric ratio. Put dy/dt in the numerator for dy/dx. Read the requested derivative aloud before writing the fraction.

Stopping at y’/y. After logarithmic differentiation, multiply by y and substitute the original expression for y if an answer in x is required.

Splitting the logarithm of a sum. ln(a + b) does not equal ln a + ln b. Logarithm laws help with products, quotients and powers, not arbitrary addition.

Ignoring a stated method. Two routes can be mathematically correct, but a question asking for a particular method expects that method to be shown.

Try These Before Reading the Answers

For each question, name the first method before calculating.

  1. Differentiate y = (5x^2 - 3)^4.
  2. Differentiate y = x cos(2x).
  3. Find the slope of x^2 + 2xy + 3y^2 = 6 at (1, 1).
  4. If x = t^2 + t and y = t^3 + 1, find dy/dx at t = 1.
  5. Differentiate y = (2x + 3)^x on x > -3/2.
  6. Differentiate y = (x - 1)^2(x + 3)^4 using logarithms where permitted, then check x = 1 separately.

Answers With the Key Step

1. Chain rule. The derivative is 40x(5x^2 - 3)^3. The inner derivative is 10x.

2. Product rule followed by chain rule. The derivative is cos(2x) - 2x sin(2x). The negative sign comes from differentiating cosine.

3. Implicit differentiation. Differentiating gives 2x + 2y + 2xy' + 6yy' = 0. Therefore y' = -(x + y)/(x + 3y), and the slope at (1, 1) is -1/2. The point satisfies the original equation.

4. Parametric differentiation. The ratio is 3t^2/(2t + 1), so the requested slope is 1. The denominator at t = 1 is nonzero.

5. Logarithmic differentiation. From ln y = x ln(2x + 3), obtain y' = (2x + 3)^x[ln(2x + 3) + 2x/(2x + 3)].

6. Logarithmic differentiation with excluded zeros checked. Away from 1 and -3, y'/y = 2/(x - 1) + 4/(x + 3). Multiplication and simplification give y' = 2(x - 1)(x + 3)^3(3x + 1). Direct polynomial differentiation confirms this simplified expression for all real x, including y'(1) = 0 and y'(-3) = 0.

A Final Check Before You Move On

Read your answer against the original question. Have you found a derivative in the requested variable? If a point was given, did you verify it lies on the curve? Does a denominator or logarithm restrict the calculation? If you introduced an exclusion, does the original function need that exclusion too?

For revision, spend a few minutes on method selection alone. Cover the solutions, name the structure of each question, and write only the first valid line. This trains the decision that comes before all the algebra.

Frequently Asked Questions

How do I choose a differentiation method quickly?

Check how the function is presented. A nested expression suggests the chain rule; an equation involving x and y suggests implicit differentiation; two equations in a shared parameter suggest the parametric ratio; a variable power suggests logarithms. Then check whether product or quotient rules are also needed.

Is implicit differentiation different from the chain rule?

Implicit differentiation is a way to differentiate an equation relating variables. It uses the chain rule whenever you differentiate an expression involving y with respect to x, because y is changing with x.

Can I use the chain rule and product rule together?

Yes. For x^2 sin(3x), start with the product rule, then use the chain rule to differentiate sin(3x). The rules describe different parts of the same expression.

Must I eliminate the parameter before finding dy/dx?

No. Usually you can calculate dy/dt and dx/dt directly and divide, provided dx/dt is nonzero. Eliminating the parameter is an optional check when it is simple.

What happens when dx/dt is zero?

If dy/dt is nonzero, the usual regular-curve situation gives a vertical tangent rather than a finite slope. If both derivatives vanish, investigate further using the curve or limits; the ratio alone is inconclusive.

Why does differentiating ln y give y’/y?

The derivative of the outside logarithm is 1/y, and the derivative of its inside y with respect to x is y’. The chain rule multiplies these to give y'/y.

When should I use ln absolute value of y?

Use ln|y| on an interval where y is nonzero and might be negative. Its derivative is still y'/y. You must still check individual factors and any zeros excluded by taking logarithms.

Is logarithmic differentiation compulsory for x to the power x?

It is a convenient standard method on x > 0. You can also write x^x = e^(x ln x) and apply the chain rule. Both approaches account for the changing base and exponent.

Can logarithmic differentiation be used for a sum?

You can take a logarithm where the expression permits it, but you cannot split a logarithm across addition. For a simple sum, differentiating term by term is usually easier.

Should I substitute a given point before differentiating?

Usually differentiate first, then substitute the point or parameter value. Substituting too early can turn a changing relationship into a numerical identity and remove the information needed to find the slope.

Looking for commerce tuitions?

Prachi is a gold-medalist commerce teacher with experience at Deloitte and KPMG. She focuses on fundamentals to build a strong foundation.

Start classes