Help wid differn when to take logs of both sides

  • Thread starter ankur29
  • Start date
In summary, the conversation discusses using the Newton-Raphson iterative method to solve for the solution x= 1/(1+x^x) to 4 decimal places, starting at x=1. The formula for this method is x1= x0 – f(x0)/f’(x0). The attempt at solving involves rearranging the expression and using logarithmic differentiation. However, there is confusion about how to differentiate the x^(x+1) term and whether there needs to be something equaled before applying the logarithmic method.
  • #1
ankur29
10
0

Homework Statement



solve via newt raphson iterative method to 4dp

Find the solution x= 1/(1+x^x) to 4dp beginning at x=1


Homework Equations




Now the formula for this is

x1= x0 – f(x0)/f’(x0)

Now what I did was rearrange so f(x)= x( 1+x^x)-1=0

I need to differentiatie this expression

So say I called it y= x( 1+x^x)-1

Could I proceed by taking logs of both sides


i.e (an example where I saw people take logs of boths ides was when y=x^x and therefore lny=x^x) is that only for when there is one term equal to another




The Attempt at a Solution



how I attempted it was as follows

y= x + x^(x+1) -1

lny = lnx +(x+1)lnx - ln1

lny= lnx +xlnx +lnx –ln1

1/y dy/dx= 1/x + lnx +1

dy/dx = (x + x^(x+1) -1) (1/x + lnx +1)

now this feels wrong to me 
 
Physics news on Phys.org
  • #2
y=x(1+x^x)-1=f(x)=0 => ln(y)=ln(0) ?

why not differentiate f(x)=x(1+x^x)-1 and use the log method to differentiate just x^x part?
 
  • #3
reckon said:
y=x(1+x^x)-1=f(x)=0 => ln(y)=ln(0) ?

why not differentiate f(x)=x(1+x^x)-1 and use the log method to differentiate just x^x part?


the f(x) simpliefies to x + x^(x+1) -1

do you mean differentiate the x^(x+1) seperately

i don't think it can work like that?

do i not need something to equal something before i can apply teh log thing
 
  • #4
yes, to differentiate the x^(x+1)
f(x)=x+x^(x+1)-1

let y=x^(x+1)
apply the log trick to y to get y' and you will get f'(x) as
f'(x)=1+y'
 

FAQ: Help wid differn when to take logs of both sides

What is the purpose of taking logs of both sides?

Taking logs of both sides is used to simplify and solve equations that involve exponential functions. It allows us to isolate the variable and solve for its value.

When should I take logs of both sides?

You should take logs of both sides when you have an equation with an exponential function and you want to solve for the variable. It is also useful when you need to graph the equation or compare it to other equations.

How do I take logs of both sides?

To take logs of both sides, use the logarithm property that states logx(ab) = logx(a) + logx(b). This means that you can take the log of each term on both sides of the equation.

Is there a specific base I should use when taking logs of both sides?

The base of the logarithm you use does not affect the final answer, as long as you use the same base on both sides. However, some bases may make the calculations easier or more accurate, so it is important to choose a base that is appropriate for the given equation.

Are there any mistakes I should watch out for when taking logs of both sides?

Yes, there are a few common mistakes to watch out for when taking logs of both sides. These include forgetting to distribute the logarithm to each term on the right side, mixing up the order of the terms, and forgetting to include the constant term on the right side. It is important to double check your work and make sure all terms are accounted for.

Back
Top