You are here:

Advanced Math/Problem using MS Excel

Advertisement


Question
Hi,
Let x and y be positive integers such that x^2 + 3x +y^2 = 404. What is the value of x + y^3? Find all possible solutions.

How can I solve this using Excel (I have never used Excel for maths before, so I need some background information).

Thankyou very much,

Tim

Answer
First, lets give the columns titles.
In cell A1, put 404.  In Cell B1, put X.
In cell C1, put X^2+3X.  In cell D1, put Y.

Next, input the first row of values.
In cell A2, put 404.  In cell B2, put 1.  In cell C2, put =B1*(B1+3).
In cell D2, put =Sqrt(A3-C3).
The second row should now have, 404, 1, 4, and 20 in each of the columns.

Now the third row.
In cell A3, well, we’re not there yet.  Goto cell A2.  Do a control-C.
Now you can go to cell A3.  Do control-V.  That copied cell C2 to C3.
In cell B3, put =B2+1.  That makes B3 into a 2.

Here’s where it starts to get easy.
Goto C2.  Press F8 and hit the right arrow once.  
Cells C2 and D2 are highlighted.

Do a control-C again.  Goto cell C3.  Do a control-V.  

Those cells should now have
10   19.849433

In fact, the whole sheet should have
404   X   X^2+3X   Y
404   1   4   20
404   2   10   19.849433

Now goto cell A3.  Press F8 and the right arrow three times.
This should highlight cells A3 through D3, which to Excel is what’s known as A3:D3.
Goto A4.  Do a control-V.

Hit the down arrow and Goto A5.  Do a control-V
Now to get it all done at once, while the four cells A5:D5 are highlighted, hit F8.

Using the down arrow, make the highlight go down to row 15.  
You now have highlighted A5:D20.
Now use the mouse the click on Edit, Fill, Down.

And now you’ve got it.  That’s is all of the X values from 1 to 14.  
Row 2 has 1, 4, 20, so that is one of the even solutions.  
Row 13 has 14, 208, 14, and that is the another integer solution.  
Row 17 has 17, 340, and 8.  That is the 3rd integer solution.  
Row 18 has 17, 340, and 8.  That is the last integer solution.

The reason I know this one is that last is that in cell D20, there is a #NUM!  
This means that the spreadsheet is attempting to do what can’t be done,
which is taking the square-root of C20-A20.

Note that C20 is 418 and A20 is only 404.
That means it is trying to find =sqrt(-14).  That can’t be done.

Note that the cells with a many decimal Y indicate that there is a solution,
but that it can’t be found.  The data there is only a six decimal approximation to the answer.

The entire sheet should look like
404   X   X^2+3X   Y
404   1   4   20
404   2   10   19.849433
404   3   18   19.646883
404   4   28   19.390719
404   5   40   19.078784
404   6   54   18.708287
404   7   70   18.275667
404   8   88   17.776389
404   9   108   17.204651
404   10   130   16.552945
404   11   154   15.811388
404   12   180   14.96663
404   13   208   14
404   14   238   12.884099
404   15   270   11.575837
404   16   304   10
404   17   340   8
404   18   378   5.0990195
404   19   418   #NUM!

Now you may just read this, but actually it needs to be done in Excel so that you learn how to use it.  Excel is really a powerful piece of software.  It becomes even better the more you know about it.

Advanced Math

All Answers


Answers by Expert:


Ask Experts

Volunteer


Scott A Wilson

Expertise

I can answer any question in general math, arithetic, discret math, algebra, box problems, geometry, filling a tank with water, trigonometry, pre-calculus, linear algebra, complex mathematics, probability, statistics, and most of anything else that relates to math. I can even tell you it takes me over 2,000 steps to go a mile, but is that relevant?

Experience

Experience in the area; I have tutored people in the above areas of mathematics for almost two years in AllExperts.com. I have tutored people here and there in mathematics since before I received a BS degree almost 25 years ago. In just two more years, I received an MS degree as well, but more on that later. I tutored at OSU in the math center for all six years I was there. Most students offering assistance were juniors, seniors, or graduate students. I was allowed to tutor as a freshman. I tutored at Mathnasium for well over a year. I worked at The Boeing Company for over 5 years. I received an MS degreee in Mathematics from Oregon State Univeristy. The classes I took were over 100 hours of upper division credits in mathematical courses such as calculus, statistics, probabilty, linear algrebra, powers, linear regression, matrices, and more. I graduated with honors in both my BS and MS degrees. Past/Present Clients: College Students at Oregon State University, various math people since college, over 7,500 people on the PC from the US and rest the world.

Publications
My master's paper was published in the OSU journal. The subject of it was Numerical Analysis used in shock waves and rarefaction fans. It dealt with discontinuities that arose over time. They were solved using the Leap Frog method. That method was used and improvements of it were shown. The improvements were by Enquist-Osher, Godunov, and Lax-Wendroff.

Education/Credentials
Master of Science at OSU with high honors in mathematics. Bachelor of Science at OSU with high honors in mathematical sciences. This degree involved mathematics, statistics, and computer science. I also took sophmore level physics and chemistry while I was attending college. On the side I took raquetball, but that's still not relevant.

Awards and Honors
I earned high honors in both my BS degree and MS degree from Oregon State. I was in near the top in most of my classes. In several classes in mathematics, I was first. In a class of over 100 students, I was always one of the first ones to complete the test. I graduated with well over 50 credits in upper division mathematics.

Past/Present Clients
My clients have been students at OSU, people nearby, friends with math questions, and several people every day on the PC, and you're probably make one more.

©2012 About.com, a part of The New York Times Company. All rights reserved.