# Quadratics - concave up/down - what about cubics & quartics?

**URL:** <https://boards.straightdope.com/t/quadratics-concave-up-down-what-about-cubics-quartics/285244>\
**Category:** Factual Questions\
**Created:** [January 17, 2005, 9:41pm UTC](https://boards.straightdope.com/t/quadratics-concave-up-down-what-about-cubics-quartics/285244 "2005-01-17T21:41:38Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![wolf\_meister](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/wolf_meister/32/15202_2.png) [@wolf\_meister](https://boards.straightdope.com/u/wolf_meister)\
**Post date:** [January 17, 2005, 9:41pm UTC](https://boards.straightdope.com/t/quadratics-concave-up-down-what-about-cubics-quartics/285244/1 "2005-01-17T21:41:38Z")

</div>

**Quadratic equations** are termed concave up when U-Shaped and concave down when |¯| shaped. These shapes occur when the x² coefficient is positive and negative, respectively.  
(See the 2 graphs on this page: [http://www.1728.com/minmax.htm](http://www.1728.com/minmax.htm))

Moving on to **cubics** , (see graph [http://www.1728.com/minmax2.htm](http://www.1728.com/minmax2.htm)), the curve takes one more turn and so, when graphed, cubic equations can

1. Start from negative infinity and go to positive infinity (as shown) OR can
2. Start from positive infinity and go to negative infinity.  
In the case of cubics, what are these shapes called and what determines if they are like case 1 or case 2?

**Quartic Equations** (not shown) take one more turn and so the curves can go from positive infinity to positive infinity OR negative infinity to negative infinity in which case the curves could be _roughly_ described as  
‘w’ shaped or ‘m’ shaped, respectively.  
In the case of quartics, what are these shapes called and what determines if they are ‘w’ shaped or ‘m’ shaped?

---

<div class="post-metadata">

**Author:** ![ultrafilter](https://avatars.discourse-cdn.com/v4/letter/u/3d9bf3/32.png) [@ultrafilter](https://boards.straightdope.com/u/ultrafilter)\
**Post date:** [January 17, 2005, 10:12pm UTC](https://boards.straightdope.com/t/quadratics-concave-up-down-what-about-cubics-quartics/285244/2 "2005-01-17T22:12:43Z")

</div>

Let p[sub]n/sub denote an nth degree polynomial, and a[sub]n[/sub] the coefficient of x[sup]n[/sup] in p[sub]n/sub. As |x| [symbol]® ¥[/symbol], p[sub]n/sub/x[sup]n[/sup] [symbol]®[/symbol] a[sub]n[/sub]. So it’s the sign of the leading coefficient that determines the behavior of the polynomial for large |x|. In other words, it’s just like the quadratic case.

---

<div class="post-metadata">

**Author:** ![Mathochist](https://avatars.discourse-cdn.com/v4/letter/m/c89c15/32.png) [@Mathochist](https://boards.straightdope.com/u/Mathochist)\
**Post date:** [January 17, 2005, 10:13pm UTC](https://boards.straightdope.com/t/quadratics-concave-up-down-what-about-cubics-quartics/285244/3 "2005-01-17T22:13:50Z")

</div>

Concavity is defined locally – at each point – by taking the second derivative. Consider y = ax[sup]2[/sup] + bx + c. The second derivative is 2a, which shares the sign of a, and is the same everywhere.

Now given a general function y = f(x), the second derivative f’’(x) is either positive, negative, or zero at a given value of x. If positive (like the second derivative of a concave-up quadratic) then the curve is concave-up _at that value of x_. Similarly if it’s negative for some x-value, the curve is concave-down there.

---

<div class="post-metadata">

**Author:** ![Mathochist](https://avatars.discourse-cdn.com/v4/letter/m/c89c15/32.png) [@Mathochist](https://boards.straightdope.com/u/Mathochist)\
**Post date:** [January 17, 2005, 10:22pm UTC](https://boards.straightdope.com/t/quadratics-concave-up-down-what-about-cubics-quartics/285244/4 "2005-01-17T22:22:06Z")

</div>

Rereading, I think you were asking partly about global shapes, not just concavity. There in general are no standard terms for such global shapes, and the formulas in terms of coefficients for when a quartic curve is “w-shaped” or “m-shaped” (once you’ve determined whether it goes up or down at the ends as **ultrafilter** indicates) get a little hairy. What I _can_ tell you is that odd-degree polynomials will go different directions at either end (one up, one down), while even-degree ones will go the same direction. In between will be some number (call it k) of “humps”, the most being n-1 (since a polynomial has at most n distinct real roots) and k will differ from n-1 by an even number. These will alternate up and down, giving k/2 humps in each direction for an odd-degree and one less in the direction both ends go for even-degree.

---

<div class="post-metadata">

**Author:** ![RayMan](https://avatars.discourse-cdn.com/v4/letter/r/e495f1/32.png) [@RayMan](https://boards.straightdope.com/u/RayMan)\
**Post date:** [January 17, 2005, 10:31pm UTC](https://boards.straightdope.com/t/quadratics-concave-up-down-what-about-cubics-quartics/285244/5 "2005-01-17T22:31:53Z")

</div>

> [@Mathochist](#):
>
> Now given a general function y = f(x), the second derivative f’’(x) is either positive, negative, or zero at a given value of x.

Given a general function y = f(x), the second derivative f"(x) may not be defined.

Given a _polynomial_ function y = f(x), the second derivative does indeed exist at all points in the domain of f. More generally, all derivatives fSUP/SUP are defined at all points in the domain of f.

---

<div class="post-metadata">

**Author:** ![Mathochist](https://avatars.discourse-cdn.com/v4/letter/m/c89c15/32.png) [@Mathochist](https://boards.straightdope.com/u/Mathochist)\
**Post date:** [January 17, 2005, 10:46pm UTC](https://boards.straightdope.com/t/quadratics-concave-up-down-what-about-cubics-quartics/285244/6 "2005-01-17T22:46:23Z")

</div>

> [@RayMan](#):
>
> Given a general function y = f(x), the second derivative f"(x) may not be defined.
> 
> Given a _polynomial_ function y = f(x), the second derivative does indeed exist at all points in the domain of f. More generally, all derivatives fSUP/SUP are defined at all points in the domain of f.

And, at such a point as f’’(x) is not defined, neither is the concavity. Notice I also didn’t define concavity where the second derivative vanishes.

---

<div class="post-metadata">

**Author:** ![Chronos](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/chronos/32/134_2.png) [@Chronos](https://boards.straightdope.com/u/Chronos)\
**Post date:** [January 18, 2005, 12:49am UTC](https://boards.straightdope.com/t/quadratics-concave-up-down-what-about-cubics-quartics/285244/7 "2005-01-18T00:49:31Z")

</div>

> [@](#):
>
> And, at such a point as f’’(x) is not defined, neither is the concavity. Notice I also didn’t define concavity where the second derivative vanishes.

Is concavity defined where f’’ vanishes? I’m thinking, for instance, of the function f(x) = x[sup]4[/sup] at the origin. Can one define the concavity in terms of nearby points?

And how about those points where f’’ is not defined? It seems to me that there ought to be some definition of concavity which could accommodate the absolute value function, for instance. It certainly seems like abs(x) is concave up at the origin; is there any way to rigorously say this?

---

<div class="post-metadata">

**Author:** ![Mathochist](https://avatars.discourse-cdn.com/v4/letter/m/c89c15/32.png) [@Mathochist](https://boards.straightdope.com/u/Mathochist)\
**Post date:** [January 18, 2005, 1:43am UTC](https://boards.straightdope.com/t/quadratics-concave-up-down-what-about-cubics-quartics/285244/8 "2005-01-18T01:43:03Z")

</div>

> [@Chronos](#):
>
> Is concavity defined where f’’ vanishes? I’m thinking, for instance, of the function f(x) = x[sup]4[/sup] at the origin. Can one define the concavity in terms of nearby points?
> 
> And how about those points where f’’ is not defined? It seems to me that there ought to be some definition of concavity which could accommodate the absolute value function, for instance. It certainly seems like abs(x) is concave up at the origin; is there any way to rigorously say this?

Concavity can only be reasonably defined at all in terms of the tangent line. No tangent line, no concavity. The standard definition is in terms of curvature, as I laid out.

For what you’re getting at… I don’t think there’s a sensible way of doing it. Let y be the square root of the inverse function of x[sup]3[/sup]+x. The second derivative test says that this function is concave-down for every value of x other than zero, but at zero it looks exactly (to first order) like the absolute value function, which you’d say should be concave up. Strange indeed.

The problem is that concavity is really a property of the _germ_ of the function. On this view, yes the notion can be sensibly extended to functions like y = x[sup]4[/sup] by taking a suitable étale topology on the sheaf of germs of C[sup]1[/sup] **R** -valued functions on **R**. Then the second-derivative test gives an open set of germs with a well-defined concavity for each value of concavity, and we can extend that notion of concavity to the boundary of each region since no germ can be in the boundary of both regions.

---

<div class="post-metadata">

**Author:** ![ccwaterback](https://avatars.discourse-cdn.com/v4/letter/c/df705f/32.png) [@ccwaterback](https://boards.straightdope.com/u/ccwaterback)\
**Post date:** [January 18, 2005, 2:36am UTC](https://boards.straightdope.com/t/quadratics-concave-up-down-what-about-cubics-quartics/285244/9 "2005-01-18T02:36:00Z")

</div>

I remember things called saddle points and points of inflection, but I don’t remember their rigorous definition.

---

<div class="post-metadata">

**Author:** ![ultrafilter](https://avatars.discourse-cdn.com/v4/letter/u/3d9bf3/32.png) [@ultrafilter](https://boards.straightdope.com/u/ultrafilter)\
**Post date:** [January 18, 2005, 3:13am UTC](https://boards.straightdope.com/t/quadratics-concave-up-down-what-about-cubics-quartics/285244/10 "2005-01-18T03:13:49Z")

</div>

I kinda remember one of my professors talking about convex function theory as being able to deal with non-differentiable functions, but I never got any details.

---

<div class="post-metadata">

**Author:** ![Mathochist](https://avatars.discourse-cdn.com/v4/letter/m/c89c15/32.png) [@Mathochist](https://boards.straightdope.com/u/Mathochist)\
**Post date:** [January 18, 2005, 3:23am UTC](https://boards.straightdope.com/t/quadratics-concave-up-down-what-about-cubics-quartics/285244/11 "2005-01-18T03:23:21Z")

</div>

> [@ccwaterback](#):
>
> I remember things called saddle points and points of inflection, but I don’t remember their rigorous definition.

Saddle points only occur in multivariable functions. A point of inflection is where the second derivative changes sign, and thus the function changes concavity.

---

<div class="post-metadata">

**Author:** ![Mathochist](https://avatars.discourse-cdn.com/v4/letter/m/c89c15/32.png) [@Mathochist](https://boards.straightdope.com/u/Mathochist)\
**Post date:** [January 18, 2005, 3:27am UTC](https://boards.straightdope.com/t/quadratics-concave-up-down-what-about-cubics-quartics/285244/12 "2005-01-18T03:27:19Z")

</div>

Actually, I just thought of another definition that’s simpler to explain, but doesn’t seem as general as the other one.

A function is concave up at x if there are left and right neighborhoods of x such that for any point x[sub]1[/sub] in the left neighborhood and x[sub]2[/sub] in the right neighborhood, the function lies below the secant line between x[sub]1[/sub] and x[sub]2[/sub]. Concave down replaces “below” by “above”.

---

<div class="post-metadata">

**Author:** ![Chronos](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/chronos/32/134_2.png) [@Chronos](https://boards.straightdope.com/u/Chronos)\
**Post date:** [January 18, 2005, 11:34pm UTC](https://boards.straightdope.com/t/quadratics-concave-up-down-what-about-cubics-quartics/285244/13 "2005-01-18T23:34:25Z")

</div>

If “left neighborhood” and “right neighborhood” mean what I think they do, then that definition would, in fact, be able to accomodate discontinuities in derivative. For the absolute value function, for instance, one could choose the left and right neighborhoods as (-1,0] and [0,1) (or possibly (-1,0) and (0,1), depending on the exact definition of left and right neighborhoods), and thereby conclude that the absolute value function is concave upwards at zero. Under this definition, though, the absolute value function would still have no concavity at other points, and your example function would still be concave downward at all other points, since one could choose points in each neighborhood which are on the near side of zero.

---

<div class="post-metadata">

**Author:** ![Mathochist](https://avatars.discourse-cdn.com/v4/letter/m/c89c15/32.png) [@Mathochist](https://boards.straightdope.com/u/Mathochist)\
**Post date:** [January 18, 2005, 11:54pm UTC](https://boards.straightdope.com/t/quadratics-concave-up-down-what-about-cubics-quartics/285244/14 "2005-01-18T23:54:26Z")

</div>

> [@Chronos](#):
>
> Under this definition, though, the absolute value function would still have no concavity at other points, and your example function would still be concave downward at all other points, since one could choose points in each neighborhood which are on the near side of zero.

This is true, and gives the “expected” answers for all points. Really it’s inspired by the notion of a subharmonic function in complex analysis. I haven’t verified that it matches the sheaf of germs definition, though.

---

<div class="post-metadata">

**Author:** ![wolf\_meister](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/wolf_meister/32/15202_2.png) [@wolf\_meister](https://boards.straightdope.com/u/wolf_meister)\
**Post date:** [January 19, 2005, 12:52am UTC](https://boards.straightdope.com/t/quadratics-concave-up-down-what-about-cubics-quartics/285244/15 "2005-01-19T00:52:13Z")

</div>

**Mathochist** Posting #4  
Given that all odd-degree polynomials will have values that go from negative infinity to positive infinity (or vice versa), couldn’t such polynomials be classified as ‘/’ or ‘’ ? For example, the graph at this site:  
[http://www.1728.com/minmax2.htm](http://www.1728.com/minmax2.htm)  
could be classified as a ‘/’ type of curve.  
Yes that is a vague symbol to use but is there a specific term for it?

Moving to even-degree polynomials, those also have two cases

1. NEVER goes to negative infinity (roughly concave UP) and
2. NEVER goes to positive infinity (roughly concave DOWN).

Any specific mathematical terms for these 2 cases?

(Just trying to get this topic back down to a level where I can understand it.)  
😃

---

<div class="post-metadata">

**Author:** ![Thudlow\_Boink](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/thudlow_boink/32/320_2.png) [@Thudlow\_Boink](https://boards.straightdope.com/u/Thudlow_Boink)\
**Post date:** [January 19, 2005, 12:52am UTC](https://boards.straightdope.com/t/quadratics-concave-up-down-what-about-cubics-quartics/285244/16 "2005-01-19T00:52:57Z")

</div>

> [@wolf\_meister](#):
>
> what are these shapes called

I think all the OP’s other questions have been addressed (to the OP’s satisfaction?—let us know if you’re still confused), so I’ll just chime in and say that, to the best of my knowledge, there is no special name for the shape of the graph of a third or higher degree polynomial the way the graph of a quadratic is called a parabola.

---

<div class="post-metadata">

**Author:** ![wolf\_meister](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/wolf_meister/32/15202_2.png) [@wolf\_meister](https://boards.straightdope.com/u/wolf_meister)\
**Post date:** [January 19, 2005, 12:59am UTC](https://boards.straightdope.com/t/quadratics-concave-up-down-what-about-cubics-quartics/285244/17 "2005-01-19T00:59:13Z")

</div>

Wow **Thudlow** a simulpost down to the minute !!  
To clarify things, you are answering post #1 and NOT number 15.

---

<div class="post-metadata">

**Author:** ![Mathochist](https://avatars.discourse-cdn.com/v4/letter/m/c89c15/32.png) [@Mathochist](https://boards.straightdope.com/u/Mathochist)\
**Post date:** [January 19, 2005, 2:03am UTC](https://boards.straightdope.com/t/quadratics-concave-up-down-what-about-cubics-quartics/285244/18 "2005-01-19T02:03:59Z")

</div>

> [@wolf\_meister](#):
>
> **Mathochist** Posting #4  
> Given that all odd-degree polynomials will have values that go from negative infinity to positive infinity (or vice versa), couldn’t such polynomials be classified as ‘/’ or ‘’ ? For example, the graph at this site:  
> [http://www.1728.com/minmax2.htm](http://www.1728.com/minmax2.htm)  
> could be classified as a ‘/’ type of curve.  
> Yes that is a vague symbol to use but is there a specific term for it?
> 
> Moving to even-degree polynomials, those also have two cases
> 
> 1. NEVER goes to negative infinity (roughly concave UP) and
> 2. NEVER goes to positive infinity (roughly concave DOWN).
> 
> Any specific mathematical terms for these 2 cases?
> 
> (Just trying to get this topic back down to a level where I can understand it.)  
> 😃

Not really. The even cases are summed up by saying that the function is bounded below or bounded above. In general, though, you just say what direction the function goes at high positive or negative values of x. It’s really a very small amount of information, but that’s really all the information there is in parabolæ anyhow.
