# Is it correct to say ‘functions can be linear and nonlinear’?

**URL:** <https://boards.straightdope.com/t/is-it-correct-to-say-functions-can-be-linear-and-nonlinear/454077>\
**Category:** Factual Questions\
**Created:** [June 24, 2008, 4:15pm UTC](https://boards.straightdope.com/t/is-it-correct-to-say-functions-can-be-linear-and-nonlinear/454077 "2008-06-24T16:15:59Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rhythmdvl](https://avatars.discourse-cdn.com/v4/letter/r/85f322/32.png) [@Rhythmdvl](https://boards.straightdope.com/u/Rhythmdvl)\
**Post date:** [June 24, 2008, 4:15pm UTC](https://boards.straightdope.com/t/is-it-correct-to-say-functions-can-be-linear-and-nonlinear/454077/1 "2008-06-24T16:15:59Z")

</div>

I don’t like this sentence, but don’t have the math theory background to be sure I’m not making things up as I go along.

Shouldn’t it be “all functions are either linear or nonlinear”?

I know there are various types of functions (e.g., exponential), but aren’t they all either linear or nonlinear? Isn’t describing something as exponential saying that it is a specific type of nonlinear function? Can a function be neither linear nor nonlinear? If a function describes, say, a single point, isn’t that still _non_linear, or does nonlinear describe something specific?

Furthermore, by saying that a function can be linear _and_ nonlinear, isn’t that a contradiction? Or can a function be both?

---

<div class="post-metadata">

**Author:** ![Strinka](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/strinka/32/512_2.png) [@Strinka](https://boards.straightdope.com/u/Strinka)\
**Post date:** [June 24, 2008, 4:18pm UTC](https://boards.straightdope.com/t/is-it-correct-to-say-functions-can-be-linear-and-nonlinear/454077/2 "2008-06-24T16:18:57Z")

</div>

I think it’s just badly worded. As in “Functions can be linear and functions can be non-linear”.

---

<div class="post-metadata">

**Author:** ![Amblydoper](https://avatars.discourse-cdn.com/v4/letter/a/fbc32d/32.png) [@Amblydoper](https://boards.straightdope.com/u/Amblydoper)\
**Post date:** [June 24, 2008, 4:29pm UTC](https://boards.straightdope.com/t/is-it-correct-to-say-functions-can-be-linear-and-nonlinear/454077/3 "2008-06-24T16:29:36Z")

</div>

A function could be linear over an interval [a,b] and nonlinear over the interval [b,c].

---

<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:** [June 24, 2008, 4:42pm UTC](https://boards.straightdope.com/t/is-it-correct-to-say-functions-can-be-linear-and-nonlinear/454077/4 "2008-06-24T16:42:46Z")

</div>

To my mind (and I’m pretty sure this is the standard meaning, but I don’t have a cite), “nonlinear” simply means not linear. So, functions which are not linear functions are, by definition, nonlinear functions.

---

<div class="post-metadata">

**Author:** ![Rhythmdvl](https://avatars.discourse-cdn.com/v4/letter/r/85f322/32.png) [@Rhythmdvl](https://boards.straightdope.com/u/Rhythmdvl)\
**Post date:** [June 24, 2008, 4:46pm UTC](https://boards.straightdope.com/t/is-it-correct-to-say-functions-can-be-linear-and-nonlinear/454077/5 "2008-06-24T16:46:57Z")

</div>

[QUOTE=Strinka]  
I think it’s just badly worded. As in “Functions can be linear and functions can be non-linear”.  
[/QUOTE]

Right – the original author knows what she’s talking about mathematically. The _and_ is what initially drew my attention – which is why I wanted to change it to _or_. But like I said, when it comes to second-guessing real mathematicians, I thought to check.

> [@CoG888](#):
>
> A function could be linear over an interval [a,b] and nonlinear over the interval [b,c].

The other thing that drew my attentions was _can_ – if all were either, then it should be _are_. (Isn’t the determination of intervals’ behavior determined by looking at derivatives? Sorry that end of math is very far in my learning past.) Regardless, isn’t a such a function _behaving_ linearly over an interval, but because it has a nonlinear component the function as a whole is nonlinear? Or do the words linear and nonlinear just not apply to the function as a whole. Is there a descriptive for such a function?

---

<div class="post-metadata">

**Author:** ![Snarky\_Kong](https://avatars.discourse-cdn.com/v4/letter/s/a183cd/32.png) [@Snarky\_Kong](https://boards.straightdope.com/u/Snarky_Kong)\
**Post date:** [June 24, 2008, 5:09pm UTC](https://boards.straightdope.com/t/is-it-correct-to-say-functions-can-be-linear-and-nonlinear/454077/6 "2008-06-24T17:09:01Z")

</div>

[QUOTE=Rhythmdvl]  
Regardless, isn’t a such a function _behaving_ linearly over an interval, but because it has a nonlinear component the function as a whole is nonlinear? Or do the words linear and nonlinear just not apply to the function as a whole. Is there a descriptive for such a function?  
[/QUOTE]

Piecewise.

---

<div class="post-metadata">

**Author:** ![Hypnagogic\_Jerk](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/hypnagogic_jerk/32/4252_2.png) [@Hypnagogic\_Jerk](https://boards.straightdope.com/u/Hypnagogic_Jerk)\
**Post date:** [June 24, 2008, 5:16pm UTC](https://boards.straightdope.com/t/is-it-correct-to-say-functions-can-be-linear-and-nonlinear/454077/7 "2008-06-24T17:16:32Z")

</div>

To me, “functions can be linear and nonlinear” basically means that it can be any function (or, depending on the context, any _continuous_ function). It’s just a way to draw attention to the fact that the functions used may be linear, but they don’t necessarily have to be. Personally I would have written “functions can be linear _or_ nonlinear”.

---

<div class="post-metadata">

**Author:** ![sugar\_and\_spice](https://avatars.discourse-cdn.com/v4/letter/s/e8c25b/32.png) [@sugar\_and\_spice](https://boards.straightdope.com/u/sugar_and_spice)\
**Post date:** [June 24, 2008, 5:30pm UTC](https://boards.straightdope.com/t/is-it-correct-to-say-functions-can-be-linear-and-nonlinear/454077/8 "2008-06-24T17:30:33Z")

</div>

Was this a textbook or just someone’s notes on a website? They can get sloppy with their wording sometimes when it’s just informal notes.

I agree that your wording is more clear: “all functions are either linear or nonlinear". Or “A linear function has these properties: … A function that is not linear is called a nonlinear function”.

---

<div class="post-metadata">

**Author:** ![Rhythmdvl](https://avatars.discourse-cdn.com/v4/letter/r/85f322/32.png) [@Rhythmdvl](https://boards.straightdope.com/u/Rhythmdvl)\
**Post date:** [June 24, 2008, 6:31pm UTC](https://boards.straightdope.com/t/is-it-correct-to-say-functions-can-be-linear-and-nonlinear/454077/9 "2008-06-24T18:31:32Z")

</div>

It’s for a teacher’s guide/lesson plan. Cool stuff–makes me wish I was in sixth grade again.

---

<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:** [June 25, 2008, 2:28am UTC](https://boards.straightdope.com/t/is-it-correct-to-say-functions-can-be-linear-and-nonlinear/454077/10 "2008-06-25T02:28:15Z")

</div>

It’s horribly unclear to say this sort of thing, but a function can be linear and non-linear at the same time if you’re using two different but commonly used meanings of the word linear. The meanings are as follows:  
[ol]  
[li]A function f is linear if it is of the form f(x) = ax + b.[/li][li]A function f is linear if it satisfies f(ax + by) = af(x) + bf(y).[/li][/ol]  
Every function which is linear in sense 1 is non-linear in sense 2, and every function which is linear in sense 2 is non-linear in sense 1. But if someone wrote that a function was linear and non-linear with a meaning like this, very few people would have an easy time figuring it out.
