The sum of these functions equals a constant

  • Context: Undergrad 
  • Thread starter Thread starter kent davidge
  • Start date Start date
  • Tags Tags
    Constant Functions Sum
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
4 replies · 3K views
kent davidge
Messages
931
Reaction score
56
If I have a sum ##f(x) + g(x) = c##, with ##c## a constant, does this imply that both ##f(x)## and ##g(x)## are also constants?
If I just solve this equation for ##x##, I will find some values of ##x## which satisfy the equation. However, if I require that the equation be true for all ##x##, there is no way other than the functions being equal to constants. Am I right?
 
  • Like
Likes   Reactions: Delta2
Physics news on Phys.org
kent davidge said:
If I have a sum ##f(x) + g(x) = c##, with ##c## a constant, does this imply that both ##f(x)## and ##g(x)## are also constants?
No, not at all. Consider ##f(x) = \cos x## and ##g(x) = -\cos x + 1##. Neither function is constant, but their sum is always equal to 1.
kent davidge said:
If I just solve this equation for ##x##, I will find some values of ##x## which satisfy the equation. However, if I require that the equation be true for all ##x##, there is no way other than the functions being equal to constants. Am I right?
No. With my example functions, you can't solve the equation ##f(x) + g(x) = 1## for x. My equation is true for all real x.

Also, it depends on whether the equation you're working with is true only for a certain number of values of x, or is an identity, one that is true for all values in the domains of the two functions.

Can you be more specific about what you're trying to do?
 
Mark44 said:
Can you be more specific about what you're trying to do?
I just have two seemgly arbritary functions of ##x## whose sum is zero, and wanted to know if that implies that the functions themselves are equal to zero, but now with your answer I see that it doesn't.
 
kent davidge said:
If I just solve this equation for x, I will find some values of x which satisfy the equation.
All x should satisfy the equation if that equation is a general relation ("c is a constant" implies that).
 
kent davidge said:
I just have two seemgly arbritary functions of ##x## whose sum is zero, and wanted to know if that implies that the functions themselves are equal to zero, but now with your answer I see that it doesn't.
If ##f(x) + g(x) = 0## then ##g(x) = -f(x)##.
 
  • Like
Likes   Reactions: kent davidge