Calc question

This is a discussion on Calc question within the A Brief History of Cprogramming.com forums, part of the Community Boards category; Was studying for my calculus exam, and came across something in a solution I don't quite understand. How does the ...

  1. #1
    The Right Honourable psychopath's Avatar
    Join Date
    Mar 2004
    Location
    Where circles begin.
    Posts
    1,070

    Calc question

    Was studying for my calculus exam, and came across something in a solution I don't quite understand.

    How does the integral of 2x^2/1+x^2 turn into 2*the integral of 1-(1/1+x^2) (integral bounds are 0 to 1).

    I understand how the 2 moves out of the integral, but I don't know how it turns into 1-(1/...). Is it some sort of rule I missed?
    Memorial University of Newfoundland
    Computer Science

    Mac and OpenGL evangelist.

  2. #2
    Captain Crash brewbuck's Avatar
    Join Date
    Mar 2007
    Location
    Portland, OR
    Posts
    7,237
    It is just algebra.

    You can write 1 as (1+x^2)/(1+x^2). So:

    1 - 1/(1+x^2) = (1+x^2)/(1+x^2) - 1/(1+x^2) = (1+x^2-1)/(1+x^2) = x^2/(1+x^2)
    Code:
    //try
    //{
    	if (a) do { f( b); } while(1);
    	else   do { f(!b); } while(1);
    //}

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Alice....
    By Lurker in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 06-20-2005, 02:51 PM
  2. Debugging question
    By o_0 in forum C Programming
    Replies: 9
    Last Post: 10-10-2004, 05:51 PM
  3. Question about pointers #2
    By maxhavoc in forum C++ Programming
    Replies: 28
    Last Post: 06-21-2004, 12:52 PM
  4. Question...
    By TechWins in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 07-28-2003, 09:47 PM
  5. Question, question!
    By oskilian in forum A Brief History of Cprogramming.com
    Replies: 5
    Last Post: 12-24-2001, 12:47 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21