Subtracting functions on specified domains

Click For Summary

Discussion Overview

The discussion revolves around the mathematical operation of subtracting one function from another while considering their specified domains. Participants explore how to handle functions defined on different intervals and the implications of disregarding values outside these domains.

Discussion Character

  • Exploratory
  • Technical explanation
  • Mathematical reasoning

Main Points Raised

  • One participant seeks to understand how to subtract f(x) defined on [b,c] from g(x) defined on [a,d], specifically wanting to disregard values outside these domains.
  • Another participant questions whether f(x) is defined only on [b,c] or has a broader domain.
  • It is noted that both functions have values outside their defined domains, but the focus is on their values within the specified intervals.
  • A proposed approach involves defining new functions F and G that equal f(x) and g(x) within their respective domains and are zero elsewhere.
  • One participant confirms the approach and suggests that the programming solution aligns with the mathematical solution, indicating familiarity with the concept.

Areas of Agreement / Disagreement

Participants generally agree on the approach of defining new functions to handle the specified domains, but there is no consensus on the relationship between the intervals [b,c] and [a,d], as the domains will vary according to circumstance.

Contextual Notes

The discussion highlights the need for clarity regarding the domains of the functions involved and the potential variability of these domains in different contexts.

Physics news on Phys.org
2thumbsGuy said:
What I've come to discover is that I want to understand how I can subtract f(x) on domain [b,c] from g(x) on domain [a,d].

Edit: I think I misread.
I need clarification. Do you mean f(x) is defined on more than [b,c], or f has domain [b,c]
 
both f(x) and g(x) have values outside of the defined domains, but I want to only consider the values within their respective defined domains.

I'll be using this in some software, so maybe it's best that I constrain the domains within the software instead of in the math, but I wanted to get all possible approaches before committing to a single answer.
 
2thumbsGuy said:
both f(x) and g(x) have values outside of the defined domains, but I want to only consider the values within their respective defined domains.

Okay that part is easy.
Define new functions F and G where
##F(x) = f(x)## if ##x \in [b,c]## and ##F(x) = 0## elsewhere.
Do the same with G.

Second question: do we know ##[b,c] \subset [a,d]##?
 
Thank you very much! This is familiar.

To your second question, the domains will vary according to circumstance. For this case we can use a = 1, b = 2, c = 3, d = 4. But they will change many, many times.
 
Actually, I think the programming solution would be the same as the math solution. As you say, f(x) if x∈[b,c] and F(x)=0 elsewhere, and the same for g(x). This is normal if/then scenario.

I know how I can do this! Thanks for helping me think through it.
 

Similar threads

  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 3 ·
Replies
3
Views
1K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 15 ·
Replies
15
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 9 ·
Replies
9
Views
4K