Integral of 1/(1-x) is -ln(abs(1-x)). why negative?

  • Thread starter Thread starter sparkle123
  • Start date Start date
  • Tags Tags
    Integral Negative
sparkle123
Messages
172
Reaction score
0
Why is int(1/(1-x))=-ln(abs(1-x))?
If you substitute u=1-x
then
int(u)=ln(abs(u))=ln(abs(1-x))

Also, in this question you're trying to find the particular solution y=f(x) to the given differential euqation with initial conditions
f(-1)=2
dy/dx=6x^2-x^2y
d^2y/dx^2=-12.

So i get to:
ln(abs( 6 − y)) = − 1/3 x^3 − (1/3 − ln 4)
Why does the solution say I can remove absolute values to get:
y=6-4e^(-1/3(x^3+1)) ?

Thanks!
 
Physics news on Phys.org
If you let u = (1-x), then du = - dx .
 
Thanks SammyS!
Could someone please help me with the second part?
 
sparkle123 said:
Also, in this question you're trying to find the particular solution y=f(x) to the given differential euqation with initial conditions
f(-1)=2
dy/dx=6x^2-x^2y
d^2y/dx^2=-12.
I don't understand the 2nd and 3rd equations above. The first is your initial condition. Is the 2nd your differential equation? The 3rd doesn't follow from the 2nd.

Also, does x^2y mean (x2)y or x2y?
sparkle123 said:
So i get to:
ln(abs( 6 − y)) = − 1/3 x^3 − (1/3 − ln 4)
Why does the solution say I can remove absolute values to get:
y=6-4e^(-1/3(x^3+1)) ?
 
f(-1)=2
dy/dx=6x^2-x^2y
d^2y/dx^2=-12
are given conditions

I meant dy/dx=6x^2-(x^2)y

Essentially my question is why can you remove the absolute value signs.

Thanks! :D
 
sparkle123 said:
f(-1)=2
dy/dx=6x^2-x^2y
d^2y/dx^2=-12
are given conditions

I meant dy/dx=6x^2-(x^2)y

Essentially my question is why can you remove the absolute value signs.

Thanks! :D
What you have written about the 2nd derivative is very confusing, in part because it is incorrect.
The differential equation is dy/dx = 6x2 - x2y
The initial conditions are y(-1) = 2 and y''(-1) = -12.

The second derivative is NOT -12, but the value of the second derivative at x = -1 is -12.

By separating variables, I was able to rewrite the diff. eqn. as dy/(6 - y) = x2dx. Integrating each side, I got -ln|6 - y| = (1/3)x3 + C, which is equivalent to
ln|6 - y| = (-1/3)x3 + C2

From the first initial condition I found that C2 = -1/3 + ln4, so
ln|6 - y| = (-1/3)x3 -1/3 + ln4 = (-1/3)(x3 + 1) + ln4

Exponentiation results in
|6 - y| = e^{-1/3(x^3 + 1) + ln4} = e^{ln4}e^{-1/3(x^3 + 1)}

Removing the absolute value signs, we have either
6 - y = e^{ln4}e^{-1/3(x^3 + 1)}

or
-(6 - y) = e^{ln4}e^{-1/3(x^3 + 1)}

Solving for y in each of these equations is relatively straightforward, and I leave that to you. One of these functions is such that y''(-1) = -12. The one for which this is true is your solution.
 
Oh! Thanks Mark44!
 
Back
Top