So I need to solve this differential equation

dy/dx = 1/(x+2)

so i solved it like this

dy = 1/(x+2)dx

then i took the integral of both sides

y= ⌠1/(x+2)dx

then performed a u sub

u = x+2

du = 1dx

y = ⌠du/u

y = ln abs(u)+c

y = ln abs(x+2)+c

but the sanswer is supposed to be

y = ln abs ((x+2)/2) + c

Where did I mess up? and where did the 2 in the denominatior of the (x+2) come from?

3 answers

Not sure where the 2 came from, but since

ln(u/2) = ln(u) - ln(2)

just fold the ln(2) into the C.
okay thank you!
i don't know answer.i am tring to find answer
Similar Questions
  1. I have a differential equation statingsolve: y'=(y-1)(y+1) when y(0)=3 I separated the dy/dx so I got dy/(y-1)(y+1) = dx took
    1. answers icon 1 answer
  2. Solve the differential equation.t(dy/dt) + 2y= t^3 t>0, y(1)=0 I think I solved it properly, I'm just trying to check my final
    1. answers icon 1 answer
    1. answers icon 2 answers
    1. answers icon 4 answers
more similar questions