Hertz
- 180
- 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?
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?