Differentiation of a Function with Respect to Another Function

Differentiating one function w.r.t another helps in physics and economics. Learn this useful technique with practical examples.

Neetesh Kumar

Neetesh Kumar | February 08, 2025                                      \space \space \space \space \space \space \space \space \space \space \space \space \space \space \space \space \space \space \space \space \space \space \space \space \space \space \space \space \space \space \space \space \space \space \space \space \space Share this Page on: Reddit icon Discord icon Email icon WhatsApp icon Telegram icon


Table of Content:


Definition of Derivative with Respect to Another Function:

The derivative of a function with respect to another function is a concept where we differentiate one function in terms of another. This is typically used when both functions are interdependent on a third variable.

Mathematically, if we have two functions y=f(x)y = f(x) and g(x)g(x), the derivative of f(x)f(x) with respect to g(x)g(x), denoted as dydg\dfrac{dy}{dg}, is given by:

dydg=dydxdgdx\boxed{\frac{dy}{dg} = \frac{\frac{dy}{dx}}{\frac{dg}{dx}}}

Here:

  • dydx\dfrac{dy}{dx} is the derivative of yy with respect to xx.
  • dgdx\dfrac{dg}{dx} is the derivative of gg with respect to xx.

This is based on the chain rule, and it is commonly used in physics and other fields where variables are functions of other variables.


Formula Used:

  • The formula for this concept is derived from the chain rule:

dydg=dydxdgdx\boxed{\frac{dy}{dg} = \frac{\frac{dy}{dx}}{\frac{dg}{dx}}}

Where:

  • y=f(x)y = f(x) is the first function.
  • g(x)g(x) is the second function.
  • dydx\dfrac{dy}{dx} and dgdx\dfrac{dg}{dx} are their respective derivatives.

Derivative Examples with Solutions:

Example 1: Derivative of a Polynomial with Respect to a Trigonometric Function

Find dd(sin(x))(x3+2x)\dfrac{d}{d(\sin(x))} \left( x^3 + 2x \right).

Solution:

We need to differentiate x3+2xx^3 + 2x with respect to sin(x)\sin(x).

Step 1: Find the derivative of y=x3+2xy = x^3 + 2x with respect to xx:

dydx=3x2+2\dfrac{dy}{dx} = 3x^2 + 2

Step 2: Find the derivative of g(x)=sin(x)g(x) = \sin(x) with respect to xx:

dgdx=cos(x)\dfrac{dg}{dx} = \cos(x)

Step 3: Apply the formula:

dydg=3x2+2cos(x)\dfrac{dy}{dg} = \dfrac{3x^2 + 2}{\cos(x)}

Thus, the final answer is: 3x2+2cos(x)\boxed{\frac{3x^2 + 2}{\cos(x)}}.


Example 2: Derivative of an Exponential Function with Respect to a Logarithmic Function

Find dd(ln(x))(ex2)\dfrac{d}{d(\ln(x))} \left( e^{x^2} \right).

Solution:

We need to differentiate ex2e^{x^2} with respect to ln(x)\ln(x).

Step 1: Find the derivative of y=ex2y = e^{x^2} with respect to xx:

dydx=2xex2\dfrac{dy}{dx} = 2x e^{x^2}

Step 2: Find the derivative of g(x)=ln(x)g(x) = \ln(x) with respect to xx:

dgdx=1x\dfrac{dg}{dx} = \dfrac{1}{x}

Step 3: Apply the formula:

dydg=2xex21x=2x2ex2\dfrac{dy}{dg} = \dfrac{2x e^{x^2}}{\frac{1}{x}} = 2x^2 e^{x^2}

Thus, the final answer is: 2x2ex2\boxed{2x^2 e^{x^2}}.


Example 3: Derivative of a Trigonometric Function with Respect to an Exponential Function

Find dd(ex)(sin(x))\dfrac{d}{d(e^{x})} \left( \sin(x) \right).

Solution:

We need to differentiate sin(x)\sin(x) with respect to exe^{x}.

Step 1: Find the derivative of y=sin(x)y = \sin(x) with respect to xx:

dydx=cos(x)\dfrac{dy}{dx} = \cos(x)

Step 2: Find the derivative of g(x)=exg(x) = e^{x} with respect to xx:

dgdx=ex\dfrac{dg}{dx} = e^{x}

Step 3: Apply the formula:

dydg=cos(x)ex\dfrac{dy}{dg} = \dfrac{\cos(x)}{e^{x}}

Thus, the final answer is: cos(x)ex\boxed{\frac{\cos(x)}{e^{x}}}.


Example 4: Derivative of a Rational Function with Respect to a Polynomial Function

Find dd(x2+3)(2x3x2+3)\dfrac{d}{d(x^2 + 3)} \left( \dfrac{2x^3}{x^2 + 3} \right).

Solution:

We need to differentiate 2x3x2+3\dfrac{2x^3}{x^2 + 3} with respect to x2+3x^2 + 3.

Step 1: Find the derivative of y=2x3x2+3y = \dfrac{2x^3}{x^2 + 3} with respect to xx:

dydx=(6x2)(x2+3)2x3(2x)(x2+3)2\dfrac{dy}{dx} = \dfrac{(6x^2)(x^2 + 3) - 2x^3(2x)}{(x^2 + 3)^2}

Simplifying:

dydx=6x4+18x24x4(x2+3)2\dfrac{dy}{dx} = \dfrac{6x^4 + 18x^2 - 4x^4}{(x^2 + 3)^2}

dydx=2x4+18x2(x2+3)2\dfrac{dy}{dx} = \dfrac{2x^4 + 18x^2}{(x^2 + 3)^2}

Step 2: Find the derivative of g(x)=x2+3g(x) = x^2 + 3 with respect to xx:

dgdx=2x\dfrac{dg}{dx} = 2x

Step 3: Apply the formula:

dydg=2x4+18x2(x2+3)212x\dfrac{dy}{dg} = \dfrac{2x^4 + 18x^2}{(x^2 + 3)^2} \cdot \dfrac{1}{2x}

Simplifying:

dydg=x3+9x(x2+3)2\dfrac{dy}{dg} = \dfrac{x^3 + 9x}{(x^2 + 3)^2}

Thus, the final answer is: x3+9x(x2+3)2\boxed{\frac{x^3 + 9x}{(x^2 + 3)^2}}.


Conclusion:

  • The derivative of a function with respect to another function is useful for differentiating composite relationships between different variables.
  • It is widely used in various fields like physics (motion equations), engineering (heat transfer), and economics (cost and revenue models).
  • By applying the chain rule in such cases, we can determine the rate of change with respect to an interdependent variable efficiently.