D/dx |x+2|^x (solution known, need explanation)

  • Thread starter Thread starter Dafydd
  • Start date Start date
  • Tags Tags
    Explanation
Click For Summary
SUMMARY

The derivative of the function |x+2|^x is calculated using the chain rule and properties of logarithms. The solution involves rewriting the expression as e^(x log|x+2|) and applying the derivative rules for exponential functions and logarithms. The final result is |x+2|^x (ln|x+2| + x/(x+2)). This approach highlights the importance of recognizing composite functions and the need to consider cases based on the absolute value definition.

PREREQUISITES
  • Understanding of derivatives, specifically the chain rule.
  • Familiarity with logarithmic differentiation.
  • Knowledge of absolute value functions and their properties.
  • Basic proficiency in calculus, particularly with exponential functions.
NEXT STEPS
  • Study the chain rule in depth, focusing on its application to composite functions.
  • Learn about logarithmic differentiation techniques for complex expressions.
  • Explore the behavior of absolute value functions in calculus.
  • Practice solving derivatives of functions involving both exponentials and logarithms.
USEFUL FOR

Students studying calculus, particularly those tackling derivatives of complex functions, and educators looking for clear explanations of derivative rules involving absolute values and logarithms.

Dafydd
Messages
11
Reaction score
0
Solved! d/dx |x+2|^x

Homework Statement



I need someone to explain this:
http://www.dafydd.se/stuff/solvethis.png

Homework Equations



I guess the following are of relevance...

\frac{d}{dx} |x| = \frac{x}{|x|}
\frac{d}{dx} a^x = a^x ln a

The Attempt at a Solution



The solution is up there. I just need help understanding why this is the solution.

Normally, iirc a derivative of an expression is the outer derivative times the inner derivative, but here it seems to be the original expression times the inner plus the outer derivative, or something in between... eh.
 
Last edited by a moderator:
Physics news on Phys.org
Your formula for the derivative of the exponent does not apply here. Note that the a in your formula is a constant, where as the 'a' in this problem is x dependent.

Realise that:
<br /> |x+2|^x=e^{\log|x+2|^x}=e^{x \log|x+2|}<br />

Can you take it from here?
 
Hm.

<br /> \frac{d}{dx} e^x = e^x \frac{d}{dx} x<br />

and

<br /> \frac{d}{dx} ln|x| = \frac{1}{x}<br />

so

<br /> \frac{d}{dx} e^{x \log|x+2|} = e^{x \log|x+2|} \frac{d}{dx}(x \log|x+2|) = e^{x \log|x+2|} (ln|x+2| + \frac{x}{x+2}) = |x+2|^x (ln|x+2| + \frac{x}{x+2})<br />

Thanks for the tip, I would never have thought of that. There's too many "tricks" to remember.
 
Last edited:
What you wrote in the last line of your post is correct, I have just a small comment on the notation in the first formula: actually
<br /> \frac{d}{dx} e^x = e^x.<br />

What you meant was
<br /> \frac{d}{dx} e^{f(x)} = e^{f(x)} \frac{d}{dx} f(x)<br />
which is a consequence of the chain rule. It is this you are using (for f(x) = x log|x + 2|).

You applied it correctly though.
 
Ok, yes, you're right. Thanks!

Not that it matters that much to me right now, but how is it a consequence of the chain rule?
 
If we have a composite function f(g(x)) then the chain rule says that:

<br /> \frac{df(g(x))}{dx}=\frac{df}{dg}\frac{dg}{dx}=f&#039;(g(x))g&#039;(x)<br />

The same happens with the exponent where f(x)=e^x, g(x)=x \log|x+2| and f(g(x))=\exp(x \log|x+2|). This is the chain rule.
 
Instead of trying to do derivative formulas with absolute values in them, it may be better to take two cases, x+2 > 0 and x+2 < 0 ... also note that the answer is undefined when x+2 = 0 anyway.
 
Cyosis - got it, thanks!

g_edgar - I agree, but the example was taken from an old exam and what I wrote in the first post was the only answer or explanation given in the solutions. I don't know if a solution taking two cases would have given full credit.
 

Similar threads

Replies
7
Views
2K
  • · Replies 4 ·
Replies
4
Views
1K
  • · Replies 25 ·
Replies
25
Views
2K
  • · Replies 12 ·
Replies
12
Views
3K
  • · Replies 54 ·
2
Replies
54
Views
14K
  • · Replies 3 ·
Replies
3
Views
2K
Replies
2
Views
1K
  • · Replies 4 ·
Replies
4
Views
1K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K