# Connexions

You are here: Home » Content » Even and odd functions

### Recently Viewed

This feature requires Javascript to be enabled.

# Even and odd functions

Module by: Sunil Kumar Singh. E-mail the author

Even and odd functions are related to symmetry of functions. The symmetry of a function is visualized by the planar plot of a function, which may show symmetry with respect to either an axis (y-axis) or origin.

Since functions need not always be symmetric, they may neither be even nor be odd. The parity of a function i.e. whether it is even or odd is determined with certain algebraic algorithm. Further, symmetry of functions may change subsequent to mathematical operations.

## Even functions

The values of even function at x=x and x=-x are same.

Definition 1: Even function
A function f(x) is said to be “even” if for every “x”, there exists “-x” in the domain of the function such that :

f - x = f x f - x = f x

An even function is symmetric about y-axis. If we consider the axis as a mirror, then the plot in first quadrant has its mirror image (bilaterally inverted) in second quadrant. Similarly, the plot in fourth quadrant has its mirror image (bilaterally inverted) in third quadrant.

Some examples of even functions are x 2 , | x | and cos x x 2 , | x | and cos x . In each case, we see that :

f - x = - x 2 = x 2 = f x f - x = - x 2 = x 2 = f x

f - x = | - x | = | x | = f x f - x = | - x | = | x | = f x

f - x = cos - x = cos x = f x f - x = cos - x = cos x = f x

The right side is mirror image of left hand side and the left side is mirror image of right hand side of the curve.

It is important to see that if we rotate the curve by 180° about y-axis, then the appearance of the rotated curve is same as the original curve. We can state this alternatively as : if we rotate left hand side of the curve by 180° about y-axis, then we get the right hand curve and vice-versa.

## Examples

Problem 1: Prove that the function f(x) is “even”, if

f x = x a x 1 a x + 1 f x = x a x 1 a x + 1

Solution : For function being “even”, we need to prove that :

f - x = f x f - x = f x

Here,

f x = x a x 1 a x + 1 = x 1 a x 1 1 a x + 1 f x = x a x 1 a x + 1 = x 1 a x 1 1 a x + 1

f x = x 1 a x a x 1 + a x a x = x 1 a x 1 + a x f x = x 1 a x a x 1 + a x a x = x 1 a x 1 + a x

f x = x a x 1 a x + 1 = f x f x = x a x 1 a x + 1 = f x

Problem 2: If an even function “f” is defined on the interval (-5,5), then find the real values for which

f x = f x + 1 x + 2 f x = f x + 1 x + 2

Solution : It is given that function “f” is even. Hence, arguments of the functions on two sides are related either as

x = x + 1 x + 2 x = x + 1 x + 2

or as :

x = x + 1 x + 2 x = x + 1 x + 2

From the first relation,

x 2 + x 1 = 0 x 2 + x 1 = 0

x = - 1 ± 5 2 x = - 1 ± 5 2

From the second relation,

x 2 + 3 x + 1 = 0 x 2 + 3 x + 1 = 0

x = - 3 ± 5 2 x = - 3 ± 5 2

We see that values are within the specified domain. Hence, all the four solutions satisfy the given equation.

## Odd functions

The values of odd function at x=x and x=-x are equal in magnitude but opposite in sign.

Definition 2: Odd function
A function f(x) is said to be “odd” if for every “x”, there exists “-x” in the domain of the function such that :

f - x = - f x f - x = - f x

An odd function is symmetric about origin of the coordinate system. The plot in first quadrant has its mirror image (bilaterally inverted) in third quadrant. Similarly, the plot in second quadrant has its mirror image (bilaterally inverted) in fourth quadrant.

Some examples of odd functions are : x , x 3 and sin x x , x 3 and sin x . In each case, we see that :

f - x = - x = - f x f - x = - x = - f x

f - x = - x 3 = - x 3 = - f x f - x = - x 3 = - x 3 = - f x

f - x = sin - x = - sin x = - f x f - x = sin - x = - sin x = - f x

The upper curve of these functions is exactly same as the lower curve across x-axis.

It is important to see that if we rotate the curve by 180° about origin, then the appearance of the rotated curve is same as the original curve. In other words, if we rotate right hand side of curve by 180° about origin, then we get left side of the curve. Further, it is interesting to note that we obtain left hand part of the plot of odd function in two steps : (i) drawing reflection (mirror image) of right hand plot about y-axis and (ii) drawing reflection (mirror image) of “reflection drawn in step 1” about x-axis.

## Examples

Problem 3: Determine whether the function f(x) is “odd” function, where :

f x = log e { x + x 2 + 1 } f x = log e { x + x 2 + 1 }

Solution : In order to determine the nature of function with respect to even or odd, we check for f(-x). Here,

f - x = log e [ - x + { - x 2 + 1 } ] = log e { - x + x 2 + 1 } f - x = log e [ - x + { - x 2 + 1 } ] = log e { - x + x 2 + 1 }

The expression on the right hand side can not be explicitly interpreted whether it equals to f(x) or not. Therefore, we rationalize the expression of logarithmic function,

f - x = log e [ { - x + x 2 + 1 } X { x + x 2 + 1 } { x + x 2 + 1 } ] = log e [ - x 2 + x 2 + 1 { x + x 2 + 1 } ] f - x = log e [ { - x + x 2 + 1 } X { x + x 2 + 1 } { x + x 2 + 1 } ] = log e [ - x 2 + x 2 + 1 { x + x 2 + 1 } ]

f - x = log e 1 log e { x + x 2 + 1 } = log e { x + x 2 + 1 } = f x f - x = log e 1 log e { x + x 2 + 1 } = log e { x + x 2 + 1 } = f x

Hence, given function is an “odd” function.

Problem 4: Determine whether sinx + cosx is an even or odd function?

Solution : In order to check the nature of the function, we evaluate f(-x),

f x = sin - x + cos - x = - sin x + cos x f x = sin - x + cos - x = - sin x + cos x

The resulting function is neither equal to f(x) nor equal to “-f(x)”. Hence, the given function is neither an even nor an odd function.

## Mathematical operations and nature of function

It is easy to find the nature of function resulting from mathematical operations, provided we know the nature of operand functions. As already discussed, we check for following possibilities :

• If f(-x) = f(x), then f(x) is even.
• If f(-x) = -f(x), then f(x) is odd.
• If above conditions are not met, then f(x) is neither even nor odd.

Based on above algorithm, we can determine the nature of resulting function. For example, let us determine the nature of "fog" function when “f” is an even and “g” is an odd function. By definition,

f o g - x = f g - x f o g - x = f g - x

But, “g” is an odd function. Hence,

g - x = - g x g - x = - g x

Combining two equations,

f o g - x = f - g x f o g - x = f - g x

It is given that “f” is even function. Therefore, f(-x) = f(x). Hence,

f o g - x = = f - g x = f g x = f o g x f o g - x = = f - g x = f g x = f o g x

Therefore, resulting “fog” function is even function.

The nature of resulting function subsequent to various mathematical operations is tabulated here for reference :

------------------------------------------------------------------------------------
f(x)      g(x)      f(x) ± g(x)      f(x) g(x)        f(x)/g(x), g(x)≠0    fog(x)
------------------------------------------------------------------------------------
odd       odd          odd             even                 even            odd
odd       even         Neither         odd                  odd             even
even      even         even            even                 even            even
------------------------------------------------------------------------------------


We should emphasize here that we need not memorize this table. We can always carry out particular operation and determine whether a particular operation results in even, odd or neither of two function types. We shall work with a division operation here to illustrate the point. Let f(x) and g(x) be even and odd functions respectively. Let h(x) = f(x)/g(x). We now substitute “x” by “-x”,

h - x = f - x g - x h - x = f - x g - x

But f(x) is an even function. Hence, f(-x) = f(x). Further as g(x) is an odd function, g(-x) = - g(x).

h - x = f x - g x = - h x h - x = f x - g x = - h x

Thus, the division, here, results in an odd function.

There is an useful parallel here to remember the results of multiplication and division operations. If we consider even as "plus (+)" and odd as "minus (-)", then the resulting function is same as that resulting from multiplication or division of plus and minus numbers. Product of even (plus) and odd (minus) is minus(odd). Product of odd (minus) and odd (minus) is plus (even). Similarly, division of odd (minus) by even (plus) is minus (odd) and so on.

Square of an even or odd function

The square of even or odd function is always an even function.

Properties of derivatives

1: If f(x) is an even differentiable function on R, then f’(x) is an odd function. In other words, if f(x) is an even function, then its first derivative with respect to "x" is an odd function.

2: If f(x) is an odd differentiable function on R, then f’(x) is an even function. In other words, if f(x) is an odd function, then its first derivative with respect to "x" is an even function.

## Composition of a function

Every real function can be considered to be composed from addition of an even and an odd function. This composition is unique for every real function. We follow an algorithm to prove this as :

Let f(x) be a real function for x R. Then,

f x = f x + f - x } - f - x } f x = f x + f - x } - f - x }

Rearranging,

f x = 1 2 { f x + f - x } + 1 2 { f x f - x } = g x + h x f x = 1 2 { f x + f - x } + 1 2 { f x f - x } = g x + h x

Now, we seek to determine the nature of functions “g(x)” and “h(x). For “g(x)”, we have :

g - x = 1 2 [ f x + f { - x } ] = 1 2 { f x + f x } = g x g - x = 1 2 [ f x + f { - x } ] = 1 2 { f x + f x } = g x

Thus, “g(x)” is an even function.

Similarly,

h - x = 1 2 [ f x f { - x } ] = 1 2 { f x f x } = h x h - x = 1 2 [ f x f { - x } ] = 1 2 { f x f x } = h x

Clearly, “h(x)” is an odd function. We, therefore, conclude that all real functions can be expressed as addition of even and odd functions.

## Even and odd extensions of function

A function has three components – definition(rule), domain and range. What could be the meaning of extension of function? As a matter of fact, we can not extend these components. The concept of extending of function is actually not a general concept, but limited with respect to certain property of a function. Here, we shall consider few even and odd extensions. Idea is to complete a function defined in one half of its representation (x>=0) with other half such that resulting function is either even or odd function.

### Even function

Let f(x) is defined in [0,a]. Then, even extension is defined as :


|f(x);  0≤x≤a
g(x) = |
| f(-x); -a≤x<0


The graphical interpretation of such extension is that graph of function f(x) is extended in other half which is mirror image of f(x) in y-axis i.e. image across y-axis.

### Odd extension

Let f(x) is defined in [0,a]. Then, odd extension is defined as :


| f(x);  0≤x≤a
g(x) = |
| -f(x); -a≤x<0


The graphical interpretation of such extension is that graph of function f(x) is extended in other half which is mirror image of f(x) in x-axis i.e. image across x-axis.

## Exercises

### Exercise 1

Determine whether f(x) is odd or even, when :

f x = e x + e - x f x = e x + e - x

### Exercise 2

Determine whether f(x) is odd or even, when :

f x = x e x 1 + x 2 f x = x e x 1 + x 2

### Exercise 3

) How to check whether a pulse equation of the form

y = a { 3 x + 4 t 2 + b } y = a { 3 x + 4 t 2 + b }

is symmetric or asymmetric, here "a" and "b" are constants.

#### Note:

Posted by Dr. R.K.Singhal through e-mail

### Exercise 4

Determine whether f(x) is odd or even, when :

f x = x 2 cos x | sin x | f x = x 2 cos x | sin x |

### Exercise 5

Determine whether f(x) is odd or even, when :

f x = x e - x 2 tan 2 x f x = x e - x 2 tan 2 x

## Content actions

PDF | EPUB (?)

### What is an EPUB file?

EPUB is an electronic book format that can be read on a variety of mobile devices.

My Favorites (?)

'My Favorites' is a special kind of lens which you can use to bookmark modules and collections. 'My Favorites' can only be seen by you, and collections saved in 'My Favorites' can remember the last module you were on. You need an account to use 'My Favorites'.

| A lens I own (?)

#### Definition of a lens

##### Lenses

A lens is a custom view of the content in the repository. You can think of it as a fancy kind of list that will let you see content through the eyes of organizations and people you trust.

##### What is in a lens?

Lens makers point to materials (modules and collections), creating a guide that includes their own comments and descriptive tags about the content.

##### Who can create a lens?

Any individual member, a community, or a respected organization.

##### What are tags?

Tags are descriptors added by lens makers to help label content, attaching a vocabulary that is meaningful in the context of the lens.

| External bookmarks

### Reuse / Edit:

Reuse or edit module (?)

#### Check out and edit

If you have permission to edit this content, using the "Reuse / Edit" action will allow you to check the content out into your Personal Workspace or a shared Workgroup and then make your edits.

#### Derive a copy

If you don't have permission to edit the content, you can still use "Reuse / Edit" to adapt the content by creating a derived copy of it and then editing and publishing the copy.