# GRE Math Subject Test Sample Question #1 [closed]

What is the length of the parametric curve: f(t) = (x,y) = (cos(t),sin(t)), for t in [0,Pi] ?

Update: Mike got the answer lightning-/mike-fast. Here's the output of parametric_plot() below:

Update 2: Per Mitesh's suggestion, I called parametric_plot() with keyword argument "aspect_ratio=1"; the image below looks more round with a 1:1 aspect ratio:

edit retag reopen merge delete

### Closed for the following reason the question is answered, right answer was accepted by ccanonc close date 2010-11-15 14:41:51

Should we use the plot option aspect_ratio=1 here to make the semicircle appear more circular?

( 2010-10-17 11:55:20 -0500 )edit

Good point Mitesh. Is there a reason it's not the default?

( 2010-10-17 11:59:05 -0500 )edit

I think this is to avoid squashed plots, e.g., parametric_plot((100*cos(x), sin(x)), (x, 0, pi), aspect_ratio=1).

( 2010-10-17 12:19:44 -0500 )edit

Maybe some library, say GraphicsMagick (a subset of ImageMagick) could intelligently use a heuristic to pick a better default aspect ratio? .... My 5.0 wishlist ;-)

( 2010-10-17 12:25:21 -0500 )edit

I think it would be a nice feature if all plot docstrings sucked in a note about useful common kwargs like aspect_ratio.

( 2010-10-17 12:27:27 -0500 )edit

Sort by » oldest newest most voted

The curve is a semicircle with radius 1 -- it's length is $\pi$. You can use the arc-length formula to get this

$$\int_0^\pi \sqrt{cos(t)^2+sin(t)^2} dt = \int_0^\pi 1 dt = \pi$$.

Finally, in Sage:

sage: parametric_plot((cos(x), sin(x)), (x, 0, pi))
sage: integrate(sqrt(cos(x)^2+sin(x)^2),x, 0, pi)
pi

more

Nice formatting!

( 2010-10-17 10:44:45 -0500 )edit

The MathJax "bar of inclusion" on the sqrt doesn't have a terminating down stroke before the "dt". ;p Outrageous!

( 2010-10-17 21:20:14 -0500 )edit

Does LaTex do that downstroke? Mine doesn't usually.

( 2010-10-18 04:37:56 -0500 )edit

I was just joking. Mike's post is nearly flawless as usual.

( 2010-10-18 05:12:12 -0500 )edit