| New Reply |
How to take this derivative? |
Share Thread |
| Jul1-12, 03:15 PM | #1 |
|
|
How to take this derivative?
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: [itex]y = x^x - C[/itex] [itex]ln(y) = ln(x^x - C)[/itex] [itex]ln(y) = \frac{x ln(x)}{ln(C)}[/itex] Now take the derivative: [itex]\frac{\frac{dy}{dx}}{y}=\frac{1}{ln(C)}(x ln(x))'[/itex] Using the Product Rule, it can be seen that [itex](x ln(x))' = ln(x) + 1[/itex]. Therefore: [itex]\frac{dy}{dx}=\frac{y}{ln(C)}(ln(x) + 1)[/itex] [itex]\frac{dy}{dx}=\frac{x^x}{ln(C)}(ln(x) + 1)[/itex] Method 2: [itex]y = x^x - C[/itex] [itex]y' = (x^x)' - C'[/itex] [itex]y' = (x^x)'[/itex] [itex](x^x)'[/itex] can be evaluated using method 1 for the equation [itex]y = x^x[/itex] [itex]\frac{dy}{dx} = x^x(ln(x) + 1)[/itex] 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? |
| Jul1-12, 03:36 PM | #2 |
|
|
rewrite x as e^ln(x) to e^(xln(x)) and then use the rule d/dx (e^u) = e^u * u'
|
| Jul1-12, 03:42 PM | #3 |
|
|
[itex]\ln(a-b)\neq\ln a/\ln b[/itex]. If I were you I'd just try to rewrite the [itex]x^x[/itex] as [itex]e^{f(x)}[/itex].
|
| Jul1-12, 04:49 PM | #4 |
|
|
How to take this derivative?Are you saying to do this?: [itex]y = x^x - C[/itex] [itex]e^y = e^{x^x - C} = e^{x^x}/e^C[/itex] And then differentiate? So would method 2 be the one that is correct then? y = x^x can be differentiated pretty easily with implicit differentiation. |
| Jul1-12, 05:02 PM | #5 |
|
Recognitions:
|
[itex]x = e^{\ln x}[/itex] so [itex]x^x = \left(e^{\ln x}\right)^x = e^{x\ln x}[/itex] So what you need to take the derivative of is this: [itex]y = e^{x\ln x} - C[/itex] and you won't need to worry about implicit differentiation. |
| Jul1-12, 05:16 PM | #6 |
|
|
[itex]y = e^{x\ln x} - C[/itex] [itex]\frac{dy}{dx} = (e^{x\ln x})'[/itex] [itex]\frac{dy}{dx} = e^{x\ln x}(ln(x) + 1)[/itex] [itex]\frac{dy}{dx} = x^x(ln(x) + 1)[/itex] Thanks for the help guys. I think the only problem I was having was mixing up my logarithm properties :) |
| Jul1-12, 05:47 PM | #7 |
|
|
The derivative of an added or subtracted constant is 0 so the derivative of
[itex]y= x^x- C[/itex] is exactly the same as the derivative of [itex]y= x^x[/itex]. Now, y= x ln(x) so dy/dx= ln(x)- (x/x)= ln(x)- 1. |
| Jul1-12, 06:16 PM | #8 |
|
Recognitions:
|
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)). |
| New Reply |
Similar discussions for: How to take this derivative?
|
||||
| Thread | Forum | Replies | ||
| Derivative with respect to partial derivative of contravariant metric tensor density | Advanced Physics Homework | 0 | ||
| Find the derivative and the domain of the derivative (trig funtions) | Calculus & Beyond Homework | 7 | ||
| find derivative of floor function using limit definition of derivative? | Calculus & Beyond Homework | 10 | ||
| replacing total derivative with partial derivative in Griffiths' book | Advanced Physics Homework | 3 | ||
| Intuitively what's the difference between Lie Derivative and Covariant Derivative? | Differential Geometry | 3 | ||