Thread: Math Quiz 9
View Single Post
  #31   Spotlight this post!  
Unread 17-07-2016, 10:10
GeeTwo's Avatar
GeeTwo GeeTwo is offline
Technical Director
AKA: Gus Michel II
FRC #3946 (Tiger Robotics)
Team Role: Mentor
 
Join Date: Jan 2014
Rookie Year: 2013
Location: Slidell, LA
Posts: 3,574
GeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond repute
Re: Math Quiz 9

Quote:
Originally Posted by Aren Siekmeier View Post
Precisely ln(1+sqrt(2))/3 + sqrt(2)/15 + 2/15

Or approximately 0.52140543316
Rounded to 8 digits: 0.52140543
Rounded to 5 digits: 0.52141

A fun exercise in every integration tool I've ever learned, plus a cool rationalization trick I wasn't familiar with.

The computation took a bit to hash through some arithmetic errors and one silly differential error (chain rule!). In practice you probably wouldn't bother to do this (or use a symbolic manipulation tool like Mathematica - this is how I checked my work), and sometimes there is no closed form for the integral. To get 8 digits simply run a larger Monte Carlo simulation (a couple lines of code instead of several pages of derivation). In the end we are always limited to some finite number of digits, so numerical methods win out.
Wonderful! I've been stuck on the ln(1+√(1+y2)) terms. Didn't think to keep the ln(y) terms with them. (I did the x integrals first, so was using y where you have x-bar).

Edit - Now that I've had a chance to spend more than a few minutes on it, I see that wasn't the trick at all. I just need to go back and re-learn integration by parts.

Edit2: Gathering up my paper notes, this is what I had so far (haven't double-checked everything yet):

Quote:
Originally Posted by GeeTwo View Post
4ʃʃ(1-x)(1-y)√(x2+y2)dxdy, both integrals being over 0..1
Checking the CRC Handbook integrals table (2000 edition):
Quote:
Originally Posted by CRC 2000 Handbook integral #156, ‘+’ case, letting a=y
ʃ√(x2+y2)dx = (x√(x2+y2) + y2 ln(x+√(x2+y2)))/2| = (√(1+y2) + y2 ln(1+√(1+y2)) - y2 lny)/2
Where the | is an implied evaluation over 0..1.

Quote:
Originally Posted by CRC 2000 Handbook integral #163, ‘+’ case, letting a=y
ʃx√(x2+y2)dx = (x2+y2)3/2/3| = ((1+y2)3/2 - y3)/3
  • ʃ(1-y)( (√(1+y2)/2+y2ln(1+√(1+y2))/2-y2lny/2+(1+y2)3/2/3-y3/3)dy
evaluated over y=0..1. This expands to ten terms:
  1. ʃ√(1+y2)dy/2
  2. -ʃy√(1+y2)dy/2
  3. +ʃy2ln(1+√(1+y2))dy/2
  4. -ʃy3ln(1+√(1+y2))dy/2
  5. -ʃy2lnydy/2
  6. +ʃy3lnydy/2
  7. +ʃ(1+y2)3/2dy/3
  8. -ʃy(1+y2)3/2dy/3
  9. -ʃy3dy/3
  10. +ʃy4dy/3

I know or quickly found all but the forms with ln(1+√(1+y2)) in an online table of integrals or the CRC table: http://2000clicks.com/mathhelp/Calcu...rals.aspx#CatL
Quote:
Originally Posted by Term1
ʃ√(y2+1)dy = (√(y2+1) + ln(y+√(y2+1)))/2| = √2 – 1 + ln(1+√2)
Quote:
Originally Posted by Term2
-ʃ√y(y2+1)dy = -(y2+1)3/2/3| = 1/3 - 2√2/3
Quote:
Originally Posted by Term5
+ʃy2lnydy/2 = +y3(lny/3 – 1/9)| = -1/9
Quote:
Originally Posted by Term6
-ʃy3lnydy/2 = +y4(lny/4 – 1/16)| = 1/16
Quote:
Originally Posted by Term7, CRC 164
+ʃ(1+y2)3/2dy/3 = (y(1+y2) 3/2 + 3y(√(y2+1))/2 + 3ln(y+√(y2+1)/2)/12| = √2/6 + √2/8 + ln(1+√2)/8
Quote:
Originally Posted by Term8
-ʃy(1+y2)3/2dy/3 = -(y2+1)5/2/15| = 1/15 - 4√2/15
Quote:
Originally Posted by Term9
-ʃy3dy/3 = -y4/12| = -1/12
Quote:
Originally Posted by Term10
+ʃy4dy/3 = y5/15| = 1/15
I have also worked through term 3, using your same u for integration by parts, and term 4 looks trivially different. Now I'm going to look for a solution that exploits the symmetry between x and y.
__________________

If you can't find time to do it right, how are you going to find time to do it over?
If you don't pass it on, it never happened.
Robots are great, but inspiration is the reason we're here.
Friends don't let friends use master links.

Last edited by GeeTwo : 17-07-2016 at 15:23.
Reply With Quote