Two different methods give two different answer

Maths and statistics discussion, revision, exam and homework help.

Announcements Posted on
Enter our travel-writing competition for the chance to win a Nikon 1 J3 camera 21-05-2013
IMPORTANT: You must wait until midnight (morning exams)/4.30AM (afternoon exams) to discuss Edexcel exams and until 1pm/6pm the following day for STEP and IB exams. Please read before posting, including for rules for practical and oral exams. 28-04-2013
Sign in to Reply
  1. Darkening Light's Avatar
    • New Member
    • Location: Dagenham
    • Posts: 5
    Two different methods give two different answer
    I was solving a differential equation and got to the step where I had to integrate. I did it two different methods to get two different answers. I was wondering if anyone knows why one method must not work.

    Method 1

     \int \frac{1}{4y} dy

    let  u = 4y

    therefore:

     \frac{du}{dy} = 4

     \frac{dy}{du} = \frac{1}{4}

     dy = \frac{1}{4} du

    so:

     \int \frac{1}{u} \frac{1}{4} du = \frac{1}{4} \int \frac{1}{u} du

     \frac{1}{4} \ln u = \frac{1} {4} \ln (4y)

    Method 2

     \int \frac{1}{4y} dy

     \frac{1}{4} \int \frac{1}{y}

     \frac{1}{4} \ln y

    As you see both gives different answer but I'm sure both methods are correct.

    Thanks,
    Kieron
  2. little_wizard123's Avatar
    • TSR Demigod
    • Location: Brizzle
    • Posts: 5,170
    Re: Two different methods give two different answer
    You missed off the '+c'. Your first answer is equivalent to 1/4*ln(4) + 1/4*ln(y).
  3. nuodai's Avatar
    • PS Helper
    • TSR Legend
    Re: Two different methods give two different answer
    The key is the "+C", which you forgot to add.

    Notice that if g(x) = f(x) + C then \dfrac{dg}{dx} = \dfrac{df}{dx}, so when you integrate two things then you can end up with two different answers, but they will always only differ by a constant.

    Here, \ln 4y = \ln 4 + ln y, so you get \dfrac{1}{4} \ln 4 + \dfrac{1}{4} \ln y. The \dfrac{1}{4}\ln 4 is a constant, and so (if you add your constants of integration) the two answers are actually the same -- this \dfrac{1}{4}\ln 4 can then be absorbed into the constant of integration in your first method to give \dfrac{1}{4}\ln y + C.
  4. Hopple's Avatar
    • TSR Idol
    • Location: London
    Re: Two different methods give two different answer
    You've forgotten your constant of integration.
  5. Darkening Light's Avatar
    • New Member
    • Location: Dagenham
    • Posts: 5
    Re: Two different methods give two different answer
    (Original post by nuodai)
    The key is the "+C", which you forgot to add.

    Notice that if g(x) = f(x) + C then \dfrac{dg}{dx} = \dfrac{df}{dx}, so when you integrate two things then you can end up with two different answers, but they will always only differ by a constant.

    Here, \ln 4y = \ln 4 + ln y, so you get \dfrac{1}{4} \ln 4 + \dfrac{1}{4} \ln y. The \dfrac{1}{4}\ln 4 is a constant, and so (if you add your constants of integration) the two answers are actually the same -- this \dfrac{1}{4}\ln 4 can then be absorbed into the constant of integration in your first method to give \dfrac{1}{4}\ln y + C.
    I can't believe something so simple drove me crazy. Most of the times the constant doesn't change the answer so I tend to forget to put it.

    Thanks
  6. Jodin's Avatar
    • Exalted Member
    • Posts: 304
    Re: Two different methods give two different answer
    (Original post by Darkening Light)
    I can't believe something so simple drove me crazy. Most of the times the constant doesn't change the answer so I tend to forget to put it.

    Thanks
    Indeed! In regards to forgetting about the constant, try integrating 1/x dx by parts some time, with u = 1/x, v' = 1.
  7. pi+e=pie's Avatar
    • Junior Member
    • Posts: 29
    Re: Two different methods give two different answer
    the +c my friend!
    i forgot it when integrating arcsin and i got two different answers by two methods aswell.
    not to worry, just an easy mistake
Sign in to Reply
Share this discussion:  
Article updates
Moderators

We have a brilliant team of more than 60 volunteers looking after discussions on The Student Room, helping to make it a fun, safe and useful place to hang out.

Reputation gems:
The Reputation gems seen here indicate how well reputed the user is, red gem indicate negative reputation and green indicates a good rep.
Post rating score:
These scores show if a post has been positively or negatively rated by our members.