math question « Next Oldest | Next Newest »

 ▼ Don Shepherd Unregistered Posts: 1,392 Threads: 142 Joined: Jun 2007 04-24-2012, 08:16 PM I am having my students write a Basic program to input the length and width of a rectangle, then calculate and display the area and perimeter of the rectangle. I noticed that, for a certain number pair, area = perimeter. I tried a few other pairs of length/width and couldn't find a repeat of that relationship. If x is length and y is width, we have: ```xy = 2x + 2y ``` How can I determine if there are other number pairs that satisfy this condition? ▼ Eric Smith Unregistered Posts: 2,309 Threads: 116 Joined: Jun 2005 04-24-2012, 08:22 PM Use algebra to transform your equation into y=2x/(x-2). Now for any x you can find the corresponding y that makes the perimeter equal to the area. There are an infinite number of solutions. If you're only interested in integer solutions, there are only two unique solutions, considering x and y to be interchangeable. Edited: 24 Apr 2012, 8:29 p.m. ▼ Gerson W. Barbosa Unregistered Posts: 2,761 Threads: 100 Joined: Jul 2005 04-24-2012, 08:40 PM Or use Dario Alpern's Solver and fill in the blanks with 0, -1, 0, 2, 2 ,0, then solve it :-) Positive integer solutions: a) x = 0, y = 0; b) x = 3, y = 6; c) x = 4, y = 4. P.S.: I assume you haven't counted the trivial one. Edited: 24 Apr 2012, 8:44 p.m. ▼ Eric Smith Unregistered Posts: 2,309 Threads: 116 Joined: Jun 2005 04-24-2012, 08:58 PM Right. I assumed that a figure with sides of length zero was not a rectangle. ▼ Gerson W. Barbosa Unregistered Posts: 2,761 Threads: 100 Joined: Jul 2005 04-24-2012, 09:14 PM I tend to see the Euclidean point as any of the infinite n-zero-lenght-side regular polygons, a square with null sides being one of them. This doesn't mean I am right, of course! Edited: 24 Apr 2012, 9:17 p.m. Dominic Richens Unregistered Posts: 228 Threads: 7 Joined: Aug 2011 04-25-2012, 11:58 AM Is a rectangle if you lim x->0 & y > 0 :D ▼ Marcus von Cube, Germany Unregistered Posts: 3,283 Threads: 104 Joined: Jul 2005 04-25-2012, 12:16 PM I have a related question which bogs me for some time now. I try to explain it with a small ASCII picture: ``` ___________ | | |___ | | | | | |___ | | | | |_______|___| ___________ |_ | | |_ | | |_ | | |_ | | |_ | |_________|_| ``` The zig-zag line from the top left corner to the bottom right corner is an approximation to the diagonal but its length is just twice the side length. You can refine it ad infinitum and it will become indistinguishable from the diagonal but the total length is constant in each iteration. Strange, isn't it? ▼ bill platt Unregistered Posts: 2,448 Threads: 90 Joined: Jul 2005 04-25-2012, 12:21 PM Fractals at their simple best. Frank Boehm (Germany) Unregistered Posts: 415 Threads: 19 Joined: Jan 2005 04-25-2012, 03:09 PM As a student I had to do some wicked (as I thought, but what do I konw ) presentation of some topics on Linear Algebra, this one reminds me of it. I think a "Koch-Kurve" might deliver some hints. ▼ Gilles Carpentier Unregistered Posts: 468 Threads: 17 Joined: May 2011 04-25-2012, 06:28 PM Edited: 25 Apr 2012, 6:48 p.m. BruceH Unregistered Posts: 275 Threads: 38 Joined: Jul 2007 04-25-2012, 08:47 PM Quote: Strange, isn't it? What makes it strange is that school maths drums into you that a piece of paper only has two dimensions, X & Y. And that any points or lines drawn on that paper can always be represented by X,Y coordinates. Yet diagonal lines, as you point out, 'break the rules' of two dimensions because they have a length that is less than the sum of the steps along the X,Y dimensions, no matter how small those steps are. I'm not sure that fractals are the whole answer. Sure, the stepped line from corner to corner has a fractal dimension. But the diagonal is straight and therefore not fractal. It's as if a 2-dimensional plane has 3 degrees of freedom - left-right only, up-down only and combined. Perhaps we should confuse the world by calling that 3 dimensional ;-) Carey Unregistered Posts: 18 Threads: 4 Joined: Mar 2010 04-25-2012, 09:26 PM Hi Marcus, Great question! Vectors may be helpful in resolving the paradox. ```1. Convert all line segments into vectors by inserting arrows. 2. For each pair of horizontal and vertical vectors (i.e., for each zig and zag along the path) draw diagonal resultant vectors, forming little triangles. 3. For each little triangle, the difference between the distance along the zig-zag (the sum of 2 sides) and the displacement (the length of the diagonal) is the triangle error. 4. The total error is the sum of all triangle errors along the path. The total error is the same whether there are few zig-zags (a few large errors) or many little zig-zags (many little errors). This can be seen by adding all the horizontal arrows and, separately, adding all the vertical arrows. The vector sums are constant no matter the size of the zig-zags (if they weren't constant, some paths would undershoot or overshoot the destination). ``` Paths of many small zig-zags look smoother and are better approximations to the diagonal in a least squares sense (distance of zig-zag path to diagonal path). However the total error in approximating the length of the diagonal is the same for paths of many large zig-zags or many small zig-zags (few big errors vs many little errors). A hallmark of a fractal (self-similar, irregular) curve (e.g., a coastline) is that its curve length is not a definite value but depends on the scale used in measuring it. In this problem: (1) the zig-zag curves are not self-similar (i.e., when you zoom in on the coarse zig-zag curve you do not find little zig-zag curves) and, (2) the length of the zig-zag curves is definite and not dependent on the scale used in measuring them. Hence, this does not appear to be a fractal problem. Edited: 26 Apr 2012, 9:08 a.m. David Hayden Unregistered Posts: 528 Threads: 40 Joined: Dec 2008 04-26-2012, 08:03 AM Quote: You can refine it ad infinitum and it will become indistinguishable from the diagonal. Not really. If it seems indistinguishable, you just need a bigger magnifying glass. I zoomed in on your indistinguishable line and it still straddles the diagonal. Problems similar to this can be used to show how one's intuitive sense of math breaks down when you do "ad infinitim" problems. It's a nice introduction to some of the theories about infinity and calculus. Dominic Richens Unregistered Posts: 228 Threads: 7 Joined: Aug 2011 04-26-2012, 11:27 AM Similarly ignoring that you can "prove" Pi = 4 www.youtube.com/watch?v=D2xYjiL8yyE Peter Murphy (Livermore) Unregistered Posts: 167 Threads: 33 Joined: Jul 2011 04-24-2012, 08:45 PM Be sure to tell your students that equating area and perimeter is, formally speaking, nonsense: they're quantities with different units. As a relationship between pure numbers, there's no such objection, of course. Eduardo Duenez Unregistered Posts: 56 Threads: 10 Joined: May 2006 04-24-2012, 08:47 PM Rewrite as ```(x-2)(y-2)=4. ``` From here you can easily find all solutions. Assuming you are after positive integer solutions, there are only two: (4,4) and (3,6) (and (6,3), I guess). These come from factoring 4=2x2=1x4. Eduardo ▼ Gilles Carpentier Unregistered Posts: 468 Threads: 17 Joined: May 2011 04-25-2012, 05:29 AM Well done Eduardo ! Very nice Don Shepherd Unregistered Posts: 1,392 Threads: 142 Joined: Jun 2007 04-25-2012, 05:55 AM Yes, I see that. Very clever! Alexander Oestert Unregistered Posts: 429 Threads: 31 Joined: Jul 2011 04-25-2012, 06:20 AM You're pulling our respective legs, aren't you? ;-) ▼ Don Shepherd Unregistered Posts: 1,392 Threads: 142 Joined: Jun 2007 04-25-2012, 07:04 AM No, this actually happened. I'm giving a test to my students to write a Basic program to calculate area and perimeter of a rectangle from inputs of length and width, so I wrote my little program first and then tested it and I happened to enter length/width 3 and 6 and I noticed that area and perimeter were the same. I wondered if any other number pair would result in that situation, but I couldn't create a system of equations with xy = 2x + 2y, so I posted here for help, and I knew someone more clever than I am would figure it out. And several did! ▼ Roman P Flesch (Berlin) Unregistered Posts: 4 Threads: 1 Joined: Mar 2012 04-25-2012, 04:33 PM ... it's interesting that for a VERY long rectangle the short side will approach the limit y=2 if xy=2(x+y). It is trivial, but I wasn't aware of that. Regards, Roman Allen Unregistered Posts: 562 Threads: 27 Joined: Oct 2006 04-25-2012, 09:35 PM Don- what an interesting observation and excercise!! Would your students be open to a discussion about units? e.g. although their magnitude may be equal sometimes, they can check their formulas by thinking of each side of the equation's geometrically. Although a pure maths person may say the answer is y=2x/(x-2) leaving y alone as a unit-less number). An engineer might look at the problem statement and, by following the units, suggest the perimeter (distance) is never equal area (distance^2) because the units don't match. :) I realize it's a small point of order, but it's a great skill for the students to have later in life! ▼ Don Shepherd Unregistered Posts: 1,392 Threads: 142 Joined: Jun 2007 04-25-2012, 11:38 PM Thanks Allen. I just happened to notice that the length/width pair 3/6 yields the same quantity for both area and perimeter, and I wondered if there was a different pair like that, and it turns out there is (4/4). I wanted to build and solve a system of equations but it was not possible in this case, and I really like what Eduardo did with factoring to solve the problem. That's the beauty of the forum. When I teach math (I'm teaching "technology" this year) and we discuss area and linear measures like perimeter, of course I do distinguish between inches and square inches (or feet). I generally bring in my tape measure and we measure the distance along the four walls (perimeter), and they always understand that well. Then for area I'll bring in some 1 foot by 1 foot floor tiles and start to lay them on the floor so they can see what area and square feet really mean. Kids always appreciate real physical stuff, and they tend to understand concepts like square units better when you show them the real thing. But until they get out in the real world and have to do things like buy carpet for their living room, they tend to forget what they've learned about square units, so we teach it again the next year. Repitition helps the learning process.

 Possibly Related Threads… Thread Author Replies Views Last Post Need help understanding math.... cyrille de BrĂ©bisson 9 3,791 12-13-2013, 02:23 AM Last Post: Didier Lachieze OT: a math competition site Pier Aiello 0 1,048 09-16-2013, 06:03 AM Last Post: Pier Aiello Simple Math Question Namir 2 1,406 08-09-2013, 06:13 PM Last Post: Eddie W. Shore Cool math clock Bruce Bergman 28 7,756 04-10-2013, 03:13 AM Last Post: Siegfried (Austria) Math Challenge I could not solve Meindert Kuipers 22 6,188 01-05-2013, 04:43 PM Last Post: Thomas Klemm Math Question Namir 0 930 11-06-2012, 07:43 AM Last Post: Namir Survey for Special Math Problem Namir 7 2,377 06-03-2012, 09:46 PM Last Post: Namir Math Help!! Namir 10 3,128 04-16-2012, 11:32 PM Last Post: Allen go41cx overlay Math module Alexander Oestert 12 3,822 02-04-2012, 05:09 AM Last Post: Alexander Oestert A Math Challenge (kind of) Namir 17 4,177 08-17-2011, 08:58 PM Last Post: Gilles Carpentier

Forum Jump: