Can a Function Be Expressed as the Sum of an Even and an Odd Function?

Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
8 replies · 3K views
John O' Meara
Messages
325
Reaction score
0

Homework Statement


Suppose that the function f has domain all real numbers. Show that f can be written as the sum of an even function and an odd function.


Homework Equations


f(-x) = f(x) is even and f(-x)=-f(x) is odd


The Attempt at a Solution


If g(x) is an even function it can be written as [tex]g(x) = \frac{f(x)+f(-x)}{2} where f(x) is even and if h(x) is odd it can be written as h(x)=\frac{f(x)-f(-x)}{2}[/tex]. but how do you write f = g + h?
 
Physics news on Phys.org
[tex] f(x) = \frac{f(x)+f(-x)}{2} + \frac{f(x)-f(-x)}{2}[/tex]

Now what can you say about [tex]\frac{f(x)+f(-x)}{2}[/tex] and [tex] \frac{f(x)-f(-x)}{2}[/tex] ?
 
John O' Meara said:

Homework Statement


Suppose that the function f has domain all real numbers. Show that f can be written as the sum of an even function and an odd function.


Homework Equations


f(-x) = f(x) is even and f(-x)=-f(x) is odd


The Attempt at a Solution


If g(x) is an even function it can be written as [tex]g(x) = \frac{f(x)+f(-x)}{2}[/tex] where f(x) is even and if h(x) is odd it can be written as h(x)=\frac{f(x)-f(-x)}{2} [/tex]. but how do you write f = g + h?

Your wording is awkward. It is not "if g is an even function then..." and "if h is odd...". You want to define g(x) to be (f(x)+ f(-x))/2 and show that it is even. Define h(x) to be (f(x)- f(-x))/2 and show that it is odd.

[tex]g+h= \frac{f(x)+ f(-x)}{2}+ \frac{f(x)- f(-x)}{2}= \frac{f(x)+ f(-x)+ f(-x)+ f(x)- f(-x)}{2}[/tex]
What is that equal to?
 
How did Hallsofivy get five terms in the last equation divided by 2. I would only have got four divided by 2.
 
John O' Meara said:
How did Hallsofivy get five terms in the last equation divided by 2. I would only have got four divided by 2.

It looks like a typo. The second [itex]+f(-x)[/itex] shouldn't be there.
 
And the answer that those four terms divided by 2 is f(x). Now I am embarrassed asking the question, it is so simple.
 
Haha. No worries. That was what VeeEight was getting at as well. It is a neat problem that is just a little trick of dividing by 2. No need to feel embarrassed.
 
John O' Meara said:
How did Hallsofivy get five terms in the last equation divided by 2. I would only have got four divided by 2.

n!kofeyn said:
It looks like a typo. The second [itex]+f(-x)[/itex] shouldn't be there.
Yes, my eyes went squoggly for a moment. Thanks, n!kofeyn.
 
Thanks all of you for your replies.