Solved Exercises on Advanced Derivatives of Exponential and Logarithmic Functions

Master advanced derivatives of exponential and logarithmic functions: composite functions, implicit differentiation, and complex applications through these 5 detailed exercises with comprehensive explanations.

Solution: Exercises 1 to 3
1 Composite exponential function
Exercise 1
Find the derivative of:
\(y = e^{x^2 + 3x}\)
Definition:

Composite exponential function: A function of the form \(e^{u(x)}\) where \(u(x)\) is itself a function of \(x\). The derivative follows the chain rule: \(\frac{d}{dx}[e^{u(x)}] = e^{u(x)} \cdot u'(x)\).

Chain rule: When differentiating composite functions, we multiply the derivative of the outer function by the derivative of the inner function.

Differentiation method:
  1. Identify the outer function: \(e^u\) where \(u = x^2 + 3x\)
  2. Identify the inner function: \(u = x^2 + 3x\)
  3. Differentiate the outer function: \(\frac{d}{du}[e^u] = e^u\)
  4. Differentiate the inner function: \(\frac{d}{dx}[x^2 + 3x] = 2x + 3\)
  5. Apply the chain rule: multiply the derivatives
Original
\(y = e^{x^2 + 3x}\)
Outer derivative
\(e^{x^2 + 3x}\)
Inner derivative
\(2x + 3\)
Step 1: Identify the composite structure

This is a composite function where the outer function is \(e^u\) and the inner function is \(u = x^2 + 3x\).

Step 2: Apply the chain rule

\(\frac{dy}{dx} = \frac{d}{du}[e^u] \cdot \frac{du}{dx}\)

Step 3: Differentiate the outer function

\(\frac{d}{du}[e^u] = e^u\)

Step 4: Differentiate the inner function

\(\frac{du}{dx} = \frac{d}{dx}[x^2 + 3x] = 2x + 3\)

Step 5: Combine using the chain rule

\(\frac{dy}{dx} = e^u \cdot (2x + 3)\)

\(\frac{dy}{dx} = e^{x^2 + 3x} \cdot (2x + 3)\)

Step 6: Verify the result

The derivative has the same exponential form as the original function, multiplied by the derivative of the exponent.

\(\frac{d}{dx}[e^{x^2 + 3x}] = (2x + 3)e^{x^2 + 3x}\)
Final answer:

\(\frac{d}{dx}[e^{x^2 + 3x}] = (2x + 3)e^{x^2 + 3x}\)

Applied rules:

• Chain rule: \(\frac{d}{dx}[f(g(x))] = f'(g(x)) \cdot g'(x)\)

• Exponential derivative: \(\frac{d}{dx}[e^x] = e^x\)

• Power rule: \(\frac{d}{dx}[x^n] = nx^{n-1}\)

• Sum rule: \(\frac{d}{dx}[f(x) + g(x)] = f'(x) + g'(x)\)

2 Composite logarithmic function
Exercise 2
Find the derivative of:
\(y = \ln(x^3 + 2x + 1)\)
Definition:

Composite logarithmic function: A function of the form \(\ln[u(x)]\) where \(u(x)\) is a function of \(x\). The derivative follows: \(\frac{d}{dx}[\ln(u(x))] = \frac{u'(x)}{u(x)}\).

Original
\(y = \ln(x^3 + 2x + 1)\)
Inner function
\(u = x^3 + 2x + 1\)
Inner derivative
\(u' = 3x^2 + 2\)
Step 1: Identify the composite structure

This is a composite function where the outer function is \(\ln(u)\) and the inner function is \(u = x^3 + 2x + 1\).

Step 2: Apply the chain rule for logarithmic functions

\(\frac{dy}{dx} = \frac{1}{u} \cdot \frac{du}{dx}\)

Step 3: Differentiate the inner function

\(\frac{du}{dx} = \frac{d}{dx}[x^3 + 2x + 1] = 3x^2 + 2\)

Step 4: Apply the logarithmic differentiation rule

\(\frac{dy}{dx} = \frac{1}{x^3 + 2x + 1} \cdot (3x^2 + 2)\)

Step 5: Simplify the expression

\(\frac{dy}{dx} = \frac{3x^2 + 2}{x^3 + 2x + 1}\)

Step 6: Verify domain

The derivative exists wherever the original function is defined, i.e., where \(x^3 + 2x + 1 > 0\).

\(\frac{d}{dx}[\ln(x^3 + 2x + 1)] = \frac{3x^2 + 2}{x^3 + 2x + 1}\)
Final answer:

\(\frac{d}{dx}[\ln(x^3 + 2x + 1)] = \frac{3x^2 + 2}{x^3 + 2x + 1}\)

Applied rules:

• Chain rule: \(\frac{d}{dx}[\ln(u(x))] = \frac{u'(x)}{u(x)}\)

• Logarithmic derivative: \(\frac{d}{dx}[\ln(x)] = \frac{1}{x}\)

• Power rule: \(\frac{d}{dx}[x^n] = nx^{n-1}\)

• Sum rule: \(\frac{d}{dx}[f(x) + g(x)] = f'(x) + g'(x)\)

3 Implicit differentiation with exponential
Exercise 3
Given: \(e^{xy} + x^2 - y^2 = 5\), find \(\frac{dy}{dx}\)
Definition:

Implicit differentiation: A technique for finding derivatives when a function is defined implicitly by an equation involving both \(x\) and \(y\). We differentiate both sides of the equation with respect to \(x\), treating \(y\) as a function of \(x\).

Original
\(e^{xy} + x^2 - y^2 = 5\)
Differentiate
\(\frac{d}{dx}[e^{xy}] + 2x - 2y\frac{dy}{dx} = 0\)
Result
\(\frac{dy}{dx} = \frac{2x + ye^{xy}}{2y - xe^{xy}}\)
Step 1: Differentiate each term with respect to x

\(\frac{d}{dx}[e^{xy}] + \frac{d}{dx}[x^2] - \frac{d}{dx}[y^2] = \frac{d}{dx}[5]\)

Step 2: Differentiate the exponential term using chain rule

\(\frac{d}{dx}[e^{xy}] = e^{xy} \cdot \frac{d}{dx}[xy]\)

Using the product rule: \(\frac{d}{dx}[xy] = x\frac{dy}{dx} + y\)

So: \(\frac{d}{dx}[e^{xy}] = e^{xy}(x\frac{dy}{dx} + y)\)

Step 3: Differentiate the remaining terms

\(\frac{d}{dx}[x^2] = 2x\)

\(\frac{d}{dx}[y^2] = 2y\frac{dy}{dx}\) (using chain rule since \(y\) is a function of \(x\))

\(\frac{d}{dx}[5] = 0\)

Step 4: Combine all terms

\(e^{xy}(x\frac{dy}{dx} + y) + 2x - 2y\frac{dy}{dx} = 0\)

Step 5: Expand and collect terms with dy/dx

\(xe^{xy}\frac{dy}{dx} + ye^{xy} + 2x - 2y\frac{dy}{dx} = 0\)

\((xe^{xy} - 2y)\frac{dy}{dx} + ye^{xy} + 2x = 0\)

Step 6: Solve for dy/dx

\((xe^{xy} - 2y)\frac{dy}{dx} = -(ye^{xy} + 2x)\)

\(\frac{dy}{dx} = \frac{-(ye^{xy} + 2x)}{xe^{xy} - 2y}\)

\(\frac{dy}{dx} = \frac{2x + ye^{xy}}{2y - xe^{xy}}\)

\(\frac{dy}{dx} = \frac{2x + ye^{xy}}{2y - xe^{xy}}\)
Final answer:

\(\frac{dy}{dx} = \frac{2x + ye^{xy}}{2y - xe^{xy}}\)

Applied rules:

• Implicit differentiation: Differentiate both sides treating \(y\) as a function of \(x\)

• Chain rule: For \(e^{xy}\) and \(y^2\)

• Product rule: For the \(xy\) term in the exponent

• Algebraic manipulation: Collect terms and solve for \(\frac{dy}{dx}\)

Advanced Exponential and Logarithmic Derivative Rules
\(\frac{d}{dx}[e^{u(x)}] = e^{u(x)} \cdot u'(x)\)
Chain Rule for Exponential Functions
Basic Exponential
\(\frac{d}{dx}[e^x] = e^x\)
Self-derivative property
General Exponential
\(\frac{d}{dx}[a^x] = a^x \ln(a)\)
Base-a exponential
Composite Exponential
\(\frac{d}{dx}[e^{u(x)}] = e^{u(x)} \cdot u'(x)\)
Chain rule application
Basic Logarithm
\(\frac{d}{dx}[\ln(x)] = \frac{1}{x}\)
Natural logarithm
General Logarithm
\(\frac{d}{dx}[\log_a(x)] = \frac{1}{x\ln(a)}\)
Base-a logarithm
Composite Logarithm
\(\frac{d}{dx}[\ln(u(x))] = \frac{u'(x)}{u(x)}\)
Chain rule application
Key concepts:

Exponential growth/decay: Functions of the form \(ae^{bx}\) model exponential growth (when \(b > 0\)) or decay (when \(b < 0\)).

Logarithmic scaling: Logarithmic functions are used to compress large ranges of values into smaller, more manageable ranges.

Implicit relationships: Many real-world phenomena are described by implicit equations involving exponential and logarithmic functions.

Domain considerations: For \(\ln(f(x))\), ensure \(f(x) > 0\). For \(e^{f(x)}\), \(f(x)\) can be any real number.
Chain rule importance: Most advanced problems involve composite functions requiring the chain rule.
Solution: Exercises 4 to 5
4 Product of exponential and logarithmic functions
Exercise 4
Find the derivative of:
\(y = e^x \cdot \ln(x^2 + 1)\)
Definition:

Product of exponential and logarithmic functions: When differentiating products of exponential and logarithmic functions, apply the product rule: \(\frac{d}{dx}[u \cdot v] = u' \cdot v + u \cdot v'\).

Original
\(y = e^x \cdot \ln(x^2 + 1)\)
Product rule
\(y' = (e^x)' \cdot \ln(x^2 + 1) + e^x \cdot (\ln(x^2 + 1))'\)
Result
\(y' = e^x \cdot \ln(x^2 + 1) + e^x \cdot \frac{2x}{x^2 + 1}\)
Step 1: Identify the two functions in the product

Let \(u = e^x\) and \(v = \ln(x^2 + 1)\)

Step 2: Apply the product rule

\(\frac{dy}{dx} = u' \cdot v + u \cdot v'\)

Step 3: Find the derivative of the first function

\(u' = \frac{d}{dx}[e^x] = e^x\)

Step 4: Find the derivative of the second function using chain rule

\(v' = \frac{d}{dx}[\ln(x^2 + 1)] = \frac{1}{x^2 + 1} \cdot \frac{d}{dx}[x^2 + 1] = \frac{1}{x^2 + 1} \cdot 2x = \frac{2x}{x^2 + 1}\)

Step 5: Substitute into the product rule

\(\frac{dy}{dx} = e^x \cdot \ln(x^2 + 1) + e^x \cdot \frac{2x}{x^2 + 1}\)

Step 6: Factor out common terms

\(\frac{dy}{dx} = e^x\left[\ln(x^2 + 1) + \frac{2x}{x^2 + 1}\right]\)

\(\frac{d}{dx}[e^x \cdot \ln(x^2 + 1)] = e^x\left[\ln(x^2 + 1) + \frac{2x}{x^2 + 1}\right]\)
Final answer:

\(\frac{d}{dx}[e^x \cdot \ln(x^2 + 1)] = e^x\left[\ln(x^2 + 1) + \frac{2x}{x^2 + 1}\right]\)

Applied rules:

• Product rule: \(\frac{d}{dx}[uv] = u'v + uv'\)

• Exponential derivative: \(\frac{d}{dx}[e^x] = e^x\)

• Chain rule: For the logarithmic part

• Logarithmic derivative: \(\frac{d}{dx}[\ln(u)] = \frac{u'}{u}\)

5 Complex exponential with variable base
Exercise 5
Find the derivative of:
\(y = (x^2 + 1)^{\sin(x)}\)
Definition:

Functions of the form [f(x)]^g(x): These require logarithmic differentiation. Take the natural logarithm of both sides, then differentiate implicitly.

Original
\(y = (x^2 + 1)^{\sin(x)}\)
Logarithm
\(\ln(y) = \sin(x) \cdot \ln(x^2 + 1)\)
Derivative
\(y' = (x^2 + 1)^{\sin(x)}[\cos(x)\ln(x^2 + 1) + \frac{2x\sin(x)}{x^2 + 1}]\)
Step 1: Take the natural logarithm of both sides

\(\ln(y) = \ln[(x^2 + 1)^{\sin(x)}]\)

Step 2: Apply logarithm property

\(\ln(y) = \sin(x) \cdot \ln(x^2 + 1)\)

Step 3: Differentiate both sides implicitly

\(\frac{1}{y} \cdot \frac{dy}{dx} = \frac{d}{dx}[\sin(x) \cdot \ln(x^2 + 1)]\)

Step 4: Apply product rule to the right side

\(\frac{d}{dx}[\sin(x) \cdot \ln(x^2 + 1)] = \cos(x) \cdot \ln(x^2 + 1) + \sin(x) \cdot \frac{d}{dx}[\ln(x^2 + 1)]\)

\(\frac{d}{dx}[\sin(x) \cdot \ln(x^2 + 1)] = \cos(x) \cdot \ln(x^2 + 1) + \sin(x) \cdot \frac{2x}{x^2 + 1}\)

Step 5: Solve for dy/dx

\(\frac{dy}{dx} = y \cdot \left[\cos(x) \cdot \ln(x^2 + 1) + \frac{2x\sin(x)}{x^2 + 1}\right]\)

Step 6: Substitute the original expression for y

\(\frac{dy}{dx} = (x^2 + 1)^{\sin(x)} \cdot \left[\cos(x) \cdot \ln(x^2 + 1) + \frac{2x\sin(x)}{x^2 + 1}\right]\)

\(\frac{d}{dx}[(x^2 + 1)^{\sin(x)}] = (x^2 + 1)^{\sin(x)}\left[\cos(x)\ln(x^2 + 1) + \frac{2x\sin(x)}{x^2 + 1}\right]\)
Final answer:

\(\frac{d}{dx}[(x^2 + 1)^{\sin(x)}] = (x^2 + 1)^{\sin(x)}\left[\cos(x)\ln(x^2 + 1) + \frac{2x\sin(x)}{x^2 + 1}\right]\)

Applied rules:

• Logarithmic differentiation: Take ln of both sides

• Implicit differentiation: \(\frac{d}{dx}[\ln(y)] = \frac{1}{y} \cdot \frac{dy}{dx}\)

• Product rule: For \(\sin(x) \cdot \ln(x^2 + 1)\)

• Chain rule: For \(\ln(x^2 + 1)\)

Comprehensive Summary: Advanced Exponential and Logarithmic Functions
\(\frac{d}{dx}[f(x)^{g(x)}] = f(x)^{g(x)}\left[g'(x)\ln(f(x)) + g(x) \cdot \frac{f'(x)}{f(x)}\right]\)
General Formula for Variable Base and Exponent
Key definitions:

Exponential functions: Functions of the form \(a^x\) where \(a > 0\) and \(a \neq 1\). The most important is \(e^x\) where \(e \approx 2.71828\) is Euler's number.

Logarithmic functions: The inverse of exponential functions. The natural logarithm \(\ln(x)\) is the inverse of \(e^x\).

Composite functions: Functions where one function is "inside" another, requiring the chain rule for differentiation.

Complete methodology:
  1. Identify the function type: Determine if it's exponential, logarithmic, or a combination
  2. Recognize the structure: Is it simple, composite, a product, or defined implicitly?
  3. Apply appropriate rules: Chain rule, product rule, quotient rule, or implicit differentiation as needed
  4. Calculate derivatives: Apply the specific formulas for exponential and logarithmic functions
  5. Simplify expressions: Factor, combine terms, or rewrite in a more useful form
  6. Check domain: Ensure the derivative exists where the original function is defined
Tip 1: The derivative of e^x is itself: \(\frac{d}{dx}[e^x] = e^x\). This unique property makes e^x fundamental in calculus.
Tip 2: For functions like [f(x)]^g(x), use logarithmic differentiation: take ln of both sides, then differentiate implicitly.
Tip 3: Remember that \(\frac{d}{dx}[\ln|f(x)|] = \frac{f'(x)}{f(x)}\), which works even when f(x) might be negative.
Tip 4: In implicit differentiation, treat y as a function of x and apply the chain rule whenever you differentiate a y-term.
Common errors: Forgetting the chain rule for composite functions, misapplying the product rule, incorrect logarithm properties, not checking domain restrictions.
Applications: Population growth, radioactive decay, compound interest, cooling/heating processes, signal processing, and many other real-world phenomena.
Essential formulas and patterns:

• Exponential: \(\frac{d}{dx}[e^x] = e^x\), \(\frac{d}{dx}[a^x] = a^x\ln(a)\), \(\frac{d}{dx}[e^{u(x)}] = e^{u(x)} \cdot u'(x)\)

• Logarithmic: \(\frac{d}{dx}[\ln(x)] = \frac{1}{x}\), \(\frac{d}{dx}[\log_a(x)] = \frac{1}{x\ln(a)}\), \(\frac{d}{dx}[\ln(u(x))] = \frac{u'(x)}{u(x)}\)

• General power: \(\frac{d}{dx}[u^v] = u^v[v'\ln(u) + v \cdot \frac{u'}{u}]\)

• Implicit: \(\frac{d}{dx}[f(x,y)] = \frac{\partial f}{\partial x} + \frac{\partial f}{\partial y} \cdot \frac{dy}{dx}\)

\(\text{Chain Rule: } \frac{d}{dx}[f(g(x))] = f'(g(x)) \cdot g'(x)\)
Foundation for Advanced Differentiation
Advanced examples combining multiple techniques:

Example 1: \(\frac{d}{dx}[e^{x\ln(x)}] = e^{x\ln(x)} \cdot [\ln(x) + 1]\) (chain rule + product rule)

Example 2: \(\frac{d}{dx}[\ln(e^x + x^2)] = \frac{e^x + 2x}{e^x + x^2}\) (chain rule + sum rule)

Example 3: For \(y = x^{e^x}\), use logarithmic differentiation: \(\frac{dy}{dx} = x^{e^x}[e^x\ln(x) + \frac{e^x}{x}]\)

Visualization: Exponential and Logarithmic Functions
Exercise 6: Function Behavior
Compare the functions \(f(x) = e^x\), \(g(x) = \ln(x)\), and their derivatives for \(x > 0\):

Analysis: The chart shows how exponential and logarithmic functions and their derivatives behave differently across their domains.

  • \(e^x\) grows exponentially and its derivative is identical to the original function
  • \(\ln(x)\) grows slowly and its derivative is \(1/x\), which decreases as x increases
  • The exponential function dominates polynomial growth for large x values

Questions & Answers

Question: Why is the number e so special in calculus? Why does it appear everywhere in exponential and logarithmic derivatives?

Answer: The number \(e \approx 2.71828\) is special because it's the unique base where the exponential function is its own derivative:

\(\frac{d}{dx}[e^x] = e^x\)

This property makes \(e^x\) the solution to the differential equation \(\frac{dy}{dx} = y\), which models many natural phenomena where the rate of change is proportional to the current amount.

The number \(e\) emerges naturally in many contexts:

  • Compound interest: As the limit of \((1 + \frac{1}{n})^n\) as \(n \to \infty\)
  • Area under hyperbola: The area under \(y = \frac{1}{x}\) from 1 to \(e\) equals 1
  • Probability: Appears in Poisson distributions and normal distributions
  • Physics: Models radioactive decay, population growth, and cooling processes

Because \(e^x\) is its own derivative, it serves as the foundation for all exponential functions. Any exponential function can be expressed as \(a^x = e^{x\ln(a)}\), connecting all exponential functions back to the natural exponential function.

Question: When I have a function like \(\ln|f(x)|\), how does the absolute value affect the derivative? Does it change anything?

Answer: The absolute value in \(\ln|f(x)|\) is important for ensuring the function is defined, but it doesn't change the derivative formula. The derivative is still:

\(\frac{d}{dx}[\ln|f(x)|] = \frac{f'(x)}{f(x)}\)

Here's why this works:

  • When \(f(x) > 0\): \(\ln|f(x)| = \ln(f(x))\), so \(\frac{d}{dx}[\ln(f(x))] = \frac{f'(x)}{f(x)}\)
  • When \(f(x) < 0\): \(\ln|f(x)| = \ln(-f(x))\), so \(\frac{d}{dx}[\ln(-f(x))] = \frac{1}{-f(x)} \cdot (-f'(x)) = \frac{f'(x)}{f(x)}\)

The absolute value allows the logarithm to be defined for negative values of \(f(x)\), which is useful when you don't know or don't care about the sign of \(f(x)\). This is particularly important in integration, where we often write \(\int \frac{1}{x} dx = \ln|x| + C\) to account for both positive and negative values of \(x\).

However, note that \(f(x) \neq 0\) in both cases, since \(\ln(0)\) is undefined.

Question: How do I decide between using logarithmic differentiation versus regular differentiation techniques? What's the advantage?

Answer: Use logarithmic differentiation when you encounter these situations:

  • Variable base and exponent: Functions like \(x^x\), \((\sin x)^{\cos x}\), or \(f(x)^{g(x)}\)
  • Complex products: Functions like \(y = (x+1)^3(x-2)^2(x+3)^4\) where direct product rule would be extremely tedious
  • Complex quotients: Functions with multiple factors in numerator and denominator
  • Functions with many multiplicative terms: Converting products to sums makes differentiation much simpler

Advantages of logarithmic differentiation:

  • Converts products to sums: \(\ln(ab) = \ln(a) + \ln(b)\)
  • Converts quotients to differences: \(\ln(a/b) = \ln(a) - \ln(b)\)
  • Converts powers to multiplications: \(\ln(a^n) = n\ln(a)\)
  • Often results in simpler expressions to differentiate

Regular differentiation is preferred when:

  • The function is simple (like \(e^{3x}\) or \(\ln(2x+1)\))
  • Standard rules apply directly
  • There are fewer terms to handle

The key is efficiency: if logarithmic differentiation will significantly simplify the process, use it. Otherwise, stick with standard techniques.

Question: Can exponential and logarithmic functions be differentiated with respect to parameters or constants, not just variables?

Answer: Yes, you can differentiate exponential and logarithmic functions with respect to parameters, though the approach differs:

Differentiating with respect to the base:

For \(f(a) = a^x\) where \(a\) is the variable and \(x\) is constant:

\(\frac{d}{da}[a^x] = xa^{x-1}\)

For \(g(a) = \log_a(x)\) where \(a\) is the variable and \(x\) is constant:

\(\frac{d}{da}[\log_a(x)] = \frac{d}{da}\left[\frac{\ln(x)}{\ln(a)}\right] = -\frac{\ln(x)}{a[\ln(a)]^2}\)

Partial differentiation:

For functions of multiple variables like \(f(x,a) = a^x\):

  • \(\frac{\partial f}{\partial x} = a^x \ln(a)\) (differentiate w.r.t. exponent)
  • \(\frac{\partial f}{\partial a} = xa^{x-1}\) (differentiate w.r.t. base)

These parameter derivatives are important in optimization problems, sensitivity analysis, and when working with families of functions where parameters are adjusted to fit data.

Question: How do exponential and logarithmic derivatives relate to real-world applications? Where would I actually use these?

Answer: Exponential and logarithmic functions and their derivatives appear everywhere in science and engineering:

Physics and Engineering:

  • Radioactive decay: \(N(t) = N_0e^{-kt}\), derivative gives decay rate
  • Population growth: \(P(t) = P_0e^{rt}\), derivative gives growth rate
  • Newton's law of cooling: Temperature difference follows exponential decay
  • Electrical circuits: RC and RL circuit responses

Economics and Finance:

  • Compound interest: Continuous compounding uses \(e^{rt}\)
  • Growth rates: GDP, inflation, and economic indicators
  • Utility functions: Often logarithmic to represent diminishing returns

Biology and Medicine:

  • Drug concentration: Exponential decay in bloodstream
  • Population dynamics: Predator-prey models
  • Pandemic modeling: Early growth often exponential

The derivatives tell us the instantaneous rates of change in these processes, which is crucial for prediction, optimization, and control in real applications.