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

AI Thread Summary
A function f defined on all real numbers can be expressed as the sum of an even function g and an odd function h. The even function g is defined as g(x) = (f(x) + f(-x))/2, while the odd function h is defined as h(x) = (f(x) - f(-x))/2. When combined, g and h yield f(x) as g + h simplifies to f(x). The discussion highlights a common confusion regarding the algebraic manipulation of these definitions, specifically a typo that led to an incorrect count of terms. Overall, the problem illustrates a straightforward method for decomposing functions into even and odd components.
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 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}. but how do you write f = g + h?
 
Physics news on Phys.org
<br /> f(x) = \frac{f(x)+f(-x)}{2} + \frac{f(x)-f(-x)}{2}<br />

Now what can you say about \frac{f(x)+f(-x)}{2} and <br /> \frac{f(x)-f(-x)}{2} ?
 
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 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?

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.

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}
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 +f(-x) 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 +f(-x) shouldn't be there.
Yes, my eyes went squoggly for a moment. Thanks, n!kofeyn.
 
Thanks all of you for your replies.
 

Similar threads

Back
Top