Which method is correct for finding the derivative of y = x^x - C and why?

  • Context: Undergrad 
  • Thread starter Thread starter Hertz
  • Start date Start date
  • Tags Tags
    Derivative
Click For Summary

Discussion Overview

The discussion revolves around finding the derivative of the function y = x^x - C, where C is an arbitrary constant. Participants explore different methods for differentiation, examining the validity and implications of each approach.

Discussion Character

  • Technical explanation
  • Debate/contested
  • Mathematical reasoning

Main Points Raised

  • Some participants propose two methods for finding the derivative, with Method 1 involving logarithmic differentiation and Method 2 using direct differentiation of x^x.
  • Method 1 is critiqued for potentially misapplying logarithmic properties, specifically that ln(a-b) does not equal ln(a)/ln(b).
  • Another participant suggests rewriting x as e^ln(x) to facilitate differentiation, leading to the expression y = e^{x ln(x)} - C.
  • Some participants express confidence in Method 2, arguing that the derivative should not depend on the constant C.
  • There is a discussion about the implications of differentiating a constant and how it affects the overall derivative.
  • One participant corrects an earlier claim about logarithmic differentiation, clarifying that ln(y) should equal x ln(x) rather than implying a subtraction.

Areas of Agreement / Disagreement

Participants do not reach a consensus on which method is definitively correct, as there are competing views on the validity of the approaches and the application of logarithmic properties.

Contextual Notes

There are unresolved issues regarding the application of logarithmic differentiation and the handling of constants in differentiation. Participants express uncertainty about the correct application of logarithmic identities.

Hertz
Messages
180
Reaction score
8
I promise guys, no homework here, just curiosity.

I am trying to find dy/dx for the equation y = x^x - C, where C is any arbitrary constant. I've found two ways that SHOULD be ok to take this derivative, but they produce different answers, I was wondering which method is correct and which method is incorrect. Also, why? It seems to me that both of these methods should be ok. Anyways, here they are:

Method 1:
y = x^x - C
ln(y) = ln(x^x - C)
ln(y) = \frac{x ln(x)}{ln(C)}
Now take the derivative:
\frac{\frac{dy}{dx}}{y}=\frac{1}{ln(C)}(x ln(x))'
Using the Product Rule, it can be seen that (x ln(x))' = ln(x) + 1. Therefore:
\frac{dy}{dx}=\frac{y}{ln(C)}(ln(x) + 1)
\frac{dy}{dx}=\frac{x^x}{ln(C)}(ln(x) + 1)

Method 2:
y = x^x - C
y' = (x^x)' - C'
y' = (x^x)'
(x^x)' can be evaluated using method 1 for the equation y = x^x
\frac{dy}{dx} = x^x(ln(x) + 1)

Method one seems a bit less hand wavy, so I'm more confident in it; however, the derivative shouldn't depend on C, so that makes me lean more toward Method 2.

Anybody have any input they'd be willing to share?
 
Physics news on Phys.org
rewrite x as e^ln(x) to e^(xln(x)) and then use the rule d/dx (e^u) = e^u * u'
 
\ln(a-b)\neq\ln a/\ln b. If I were you I'd just try to rewrite the x^x as e^{f(x)}.
 
Last edited:
jedishrfu said:
rewrite x as e^ln(x) to e^(xln(x)) and then use the rule d/dx (e^u) = e^u * u'

Rewrite which x? Both? In the original or in the derivative?

Are you saying to do this?:

y = x^x - C
e^y = e^{x^x - C} = e^{x^x}/e^C

And then differentiate?

Ibix said:
\ln(a-b)\neq\ln a/\ln b. If I were you I'd just try to rewrite the x^x as e^{f(x)}.

Oh right! I was getting the rule backwards it seems.

So would method 2 be the one that is correct then?

y = x^x can be differentiated pretty easily with implicit differentiation.
 
jedishrfu said:
rewrite x as e^ln(x) to e^(xln(x)) and then use the rule d/dx (e^u) = e^u * u'

Hertz said:
Rewrite which x? Both? In the original or in the derivative?

Are you saying to do this?:

y = x^x - C
e^y = e^{x^x - C} = e^{x^x}/e^C

And then differentiate?

jedishrfu is saying that
x = e^{\ln x}
so
x^x = \left(e^{\ln x}\right)^x = e^{x\ln x}

So what you need to take the derivative of is this:
y = e^{x\ln x} - C
and you won't need to worry about implicit differentiation.
 
eumyang said:
jedishrfu is saying that
x = e^{\ln x}
so
x^x = \left(e^{\ln x}\right)^x = e^{x\ln x}

So what you need to take the derivative of is this:
y = e^{x\ln x} - C
and you won't need to worry about implicit differentiation.

Oh I see, well let's try:

y = e^{x\ln x} - C
\frac{dy}{dx} = (e^{x\ln x})'
\frac{dy}{dx} = e^{x\ln x}(ln(x) + 1)
\frac{dy}{dx} = x^x(ln(x) + 1)

Thanks for the help guys. I think the only problem I was having was mixing up my logarithm properties :)
 
The derivative of an added or subtracted constant is 0 so the derivative of
y= x^x- C is exactly the same as the derivative of y= x^x. Now, y= x ln(x) so dy/dx= ln(x)- (x/x)= ln(x)- 1.
 
HallsofIvy said:
The derivative of an added or subtracted constant is 0 so the derivative of
y= x^x- C is exactly the same as the derivative of y= x^x. Now, y= x ln(x) so dy/dx= ln(x)- (x/x)= ln(x)- 1.
I think you meant: ln(y)= x ln(x) so (dy/dx)/y = ln(x) + (x/x)= ln(x)+ 1 (Note: +, not -).
This leads to the same answer as in the OP by Method 2.
Method 1 went wrong after the second line. ln(A-B) is not ln(A)/ln(B). Must be thinking of ln(A/B) = ln(A) - ln(B) (or, equivalently, exp(A-B) = exp(A)/exp(B)).
 

Similar threads

  • · Replies 15 ·
Replies
15
Views
4K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 8 ·
Replies
8
Views
1K
  • · Replies 6 ·
Replies
6
Views
4K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 19 ·
Replies
19
Views
5K