# How to Acquire Slant Parabolas in Excel

Four Parts:The TutorialCreate the Slant Parabola ChartVary the Curve Smoothness of the Slanted ParabolaHelpful Guidance

Now this, this is pretty exciting stuff for math people! Especially if you like parabolas and/or rotation of graphic objects about an axis! It's a little tricky because parabolas have an x^2 term so they usually are vertically symmetrical. But with some digging, a way around that has been discovered, which you'll appreciate having in your bag of math tricks. This article is also directly related to a new approach being taken to the Iris Modelling methods and articles just recently finished; their application there may well be the followup article to this one.

### Part 1 The Tutorial

- 1
- 2
**Do this by making a substitution of two new variables (X and Y) using equations like this:**- x = cos(t)*X + sin(t)*Y
- y = -sin(t)*X + cos(t)*Y
- where sin and cos are the sine and cosine functions from trigonometry, and t is the angle by which you are rotating the parabola, and where you'll let X and Y vary between -5 and 5, being sure that 0 is one of the values as well.

- 3
**Start by opening a new workbook in Excel from the desktop, from the dock, or from within your Applications folder inside the Microsoft folder.**Double click on Excel (either the green X on the dock or the app title in the folder) and select File New Workbook. - 4
**In Preferences, set R1C1 to unchecked or Off, set Ribbon to checked or On and set Show Formula Bar to checked or On.** - 5
**Click in the far upper left top corner above the 1 of row 1 and to the left of column A.**Doing so will select the entire worksheet. Format Cells Number Number to decimal places 2, show comma. Format Cells Alignment Center. - 6
**Enter the Row 1 Column Headers:**- Enter to cell A1 the label, Factor1. The cell beneath it will become the Defined Named Variable Factor1, which will be used to factor the parabola's size of the x coordinate, eg. if you want to cut all the x values in half, you would enter .5 into cell A2;
- Enter to cell B1 the label, Factor2. This will be used to factor the y coordinates.
- Enter to cell C1 the label, ParaVertex X. Used to control the vertex.
- Enter to cell D1 the label, ParaVertex Y. Also used to control the vertex.
- Select cell range A1:D2 and Insert Name Create Names in Top Row. This will assign the labels as Defined Variable Names to the cells A2 to D2.
- Enter to cell A2 the value, 1;
- Enter to cell B2 the value, 1;
- Enter to cell C2 the value, 5;
- Enter to cell D2 the formula, =5+5-1.79; (w/o the ending semi-colon)

- 7
**Enter the Row 3 Column Headers:**- Enter to cell A3 the label, Chart x;
- Enter to cell B3 the label, Chart y;
- Enter to cell C3 the label, angle t;
- Enter to cell D3 the label, cos(t);
- Enter to cell E3 the label, sin(t);
- Enter to cell F3 the label, X and Y Series and Format Column Autofit Selection;
- Enter to cell G3 the label, K. Select cell range G3:G4 and do Insert Name Create in Top Row. This will create the defined variable name K for cell G4, which can now be used in a formula. Select cell G4 and enter the value 5 into it.

- 8
**Enter the formulas and series for the short data section to be charted:**- Enter to cell A4 the formula, =ParaVertex_X+Factor1*K*((D4*F4)+(E4*F4))^2; do Format Cells Fill Yellow and copy it and paste it to cell A5;
- Enter to cell B4 the formula, =ParaVertex_Y+Factor2*((-E4*A4)+D4*F4); do Format Cells Fill Yellow and copy it and paste it to cell B5;
**the minus sign is important -- please don't miss it;** - Enter to cell C4 the value 40 and enter to cell C5 the formula, =C4;
- Enter to cell D4 the formula, =COS(C4*PI()/180);
- Enter to cell E4 the formula, =SIN(C4*PI()/180);
- Copy cell range D4:E4 and paste it to cell range D5:E5;
- Enter to cell F4 the value -5;
- Do Edit Fill Series, accept the default Step Value of 1, for cell range F4:F14 -- you should have the value 0.00 in cell F9 and the value 5.00 in cell F14;
- Copy cell range A5:E5 and Paste it to cell range A6:E14.

### Part 2 Create the Slant Parabola Chart

- 1
**Select cell range A4:B14 and do either Insert Chart or from the Ribbon, select Chart, or do Chart Wizard.**Do Charts, All, Scatter, Smooth Lined Scatter. A chart will appear atop your worksheet. Drag it off to the right just past the data, out of the way, then hover over the bottom right corner until the cursor turns into a double-headed arrow, then pull the chart down and to the right to expand it.- Your chart should show a very thin parabola, like the fiber of an iris muscle of the eye somewhat, extending from about {5,5} down to {253.10, -158.31} on the left branch and to {253.10, -158.65} on the right branch. It's good that it's so thin, but it's much too long in the x direction to use within our eye & iris chart; we need to factor the x coordinate by 253.1*n = 6 or so, so n = 6/253.1 -- perform that computation by entering it below the data as =6/253.1, and then copy it and paste it to cell A2;
- Now the parabola is still slanted, which is what you want, and which is dependent on both the size and plus or minus status of angle t and value K ... but it is now too wide open, and the vertex has shifted from where it's being reported at {5, 5} slightly;
- By taking the total difference of the max and min of the y values in column B, i.e. 5.93- -2.61, you arrive at a total height of the curve of 8.55; you want it to be more like .55, so you create another little formula algebraically to adjust Factor2, which is .55 = n*8.55, so you enter =.55/8.55 into cell B2;
- The curve still displays as wide, but that's because Excel shortened the y scale range of the chart dramatically. Click on the vertical axis and set the maximum to 10 and the minimum to 0.0 -- there now, that's better. And the iris fiber extends out to the right about 5 units. But its vertex has moved up to {5, 8} and you want it more like {5, 5} (we can be more exacting later), so you need to subtract 3 from ParaVertex_Y in cell D2 -- do so now.
- OK! Success! That's beginning to look like where you want to begin your iris fibers!
- Try doubling the angle t to 80 -- see how thin it gets? You would think that, since 80 degrees is twice the angle that 40 degrees is, the opposite effect would have occurred, but now try half of 40, 20 for angle t in cell C4. It widens the parabola instead of thinning it. The reason for that is all the constraints we've put on the curve in this author's opinion. Nor is the curve any longer at much of a slant, but falls pretty much along the x axis. Clearly, this is going to take some tinkering with to be useful but there it is, in the rough, the slant parabola.
- Change K to .09 and watch the X scale become a great deal shorter in fact. This means you are now capable of creating "cascading parabolas", though not yet in a fractal, multiple way. That will come with the next article, hopefully! Enjoy!

### Part 3 Vary the Curve Smoothness of the Slanted Parabola

- 1
**Try the following changes to angle t, by manually inputting them:**- Here's an image of the data chit of the worksheet just completed (and including the Tips below):
- Here's an image of the chart where we just ended up, after adjusting Curve Smoothness:
- Here's a data chit with another series added, for making two parabolas on the chart (it uses the Angle t to vary the curve):
- Here's a chart of the two parabolas, one more curvy, the other more slanted (the red is the lower data, the blue is the upper data):

### Part 4 Helpful Guidance

- 1
**Make use of helper articles when proceeding through this tutorial:**- See the article How to Create a Spirallic Spin Particle Path or Necklace Form or Spherical Border for a list of articles related to Excel, Geometric and/or Trigonometric Art, Charting/Diagramming and Algebraic Formulation.
- For more art charts and graphs, you might also want to click on Category:Microsoft Excel Imagery, Category:Mathematics, Category:Spreadsheets or Category:Graphics to view many Excel worksheets and charts where Trigonometry, Geometry and Calculus have been turned into Art, or simply click on the category as appears in the upper right white portion of this page, or at the bottom left of the page.

## Tips

- In cell C17, enter the label, Max, and into cell C18, enter the label, Min;
- In cell A17, enter the formula, =Max(A4:A14);
- In cell A18, enter the formula, =Min(A4:A14);
- In cell A19, enter the formula, =A17-A18;
- Copy cell range A17:A19 to cell range B17:B19;
- Enter to cell C19 the label, Total Difference, and Format column width to autofit.
- To rotate a parabola through the Four Quadrants, if the quadrants are counted clockwise from Quadrant 1 in the upper right (Factor1 and Factor2 both = 1 and ParaVertex_Xa and Ya both = 0): 1) Quadrant 1: Angle t = 330; K = 30; 2) Quadrant 2 (lower right): Angle t = 30; K = 3; 3) Quadrant 3 (lower left): Angle t = -120; K = -2; Quadrant 4 (upper left): Angle t = 120; K = -12. Therefore, Angle t is responding as connected to Y and K is responding as connected to X. But bear in mind that an Angle t of 120 and K = 12 is a Quadrant 2 graphic, not Quadrant 1! So, whether the angle is greater or less than 90 degrees or 0 degrees matters as well. As another example, Angle t of -30 (which = 330, backwards from normal, as degrees are usually counted counterclockwise) and K of 12 is a Quadrant 1 graphic, per the formulas as transmitted to you. For myself, changes are being considered ... we'll see.

## Sources and Citations

## Article Info

Categories: Microsoft Excel Imagery | Graphics