Can h(x)=(cos x)^x be written as a composition of two functions f and

  • Context: Undergrad 
  • Thread starter Thread starter PeterPumpkin
  • Start date Start date
  • Tags Tags
    Composition Functions
Click For Summary

Discussion Overview

The discussion revolves around whether the function h(x) = (cos x)^x can be expressed as a composition of two functions, specifically f and g, where f(x) = x^n and g(x) = cos x. The context includes differentiation and the application of the chain rule in function composition.

Discussion Character

  • Exploratory, Technical explanation, Debate/contested

Main Points Raised

  • One participant proposes that h(x) could be written as a composition of functions f and g, expressing curiosity about the differentiation process.
  • Another participant cautions about notation, suggesting that the exponent in h(x) must be treated carefully, as it involves a variable rather than a constant.
  • Some participants argue that h(x) cannot be expressed as such a composition because the exponent in h(x) is variable, while in f(x) it must be constant for the power law to apply in differentiation.
  • One participant acknowledges their mistake in thinking that a suitable f(x) could be defined to meet the requirements.
  • Another participant suggests an alternative approach using the exponential function, indicating that f(x) could be expressed as e^{\ln f(x)}.

Areas of Agreement / Disagreement

Participants generally agree that h(x) cannot be expressed as a composition of the proposed functions due to the nature of the exponent. However, there is some disagreement regarding the potential for alternative formulations.

Contextual Notes

Limitations include the dependence on the definitions of the functions involved and the specific requirements for applying differentiation rules, which remain unresolved.

PeterPumpkin
Messages
34
Reaction score
0
Can h(x)=(cos x)^x be written as a composition of two functions f and g where f(x)=x^n and g(x)=cosx ? where h=fog

REASON FOR ASKING: I am wondering this in connect with a differentiation I was having trouble with (but can now solve thanks to this forum). I mistakenly thought that I could apply the chain rule for composition of functions. Seems it doesn't apply. (https://www.physicsforums.com/showthread.php?p=2796762#post2796762)
 
Physics news on Phys.org


You need to be careful with notation. In your example
[tex]h(x)=f\circ g(x)=(\cos(x))^n[/tex]
where you have a different variable in the exponent. So all rules you know are valid without exception, but you have to get the notation right.

You could also try
f(x)=a^x or f(x,n)=x^n
but you'll notice that at some point the expression won't match what you have in your rules.
 


It can't, because in h(x) the exponent is x, the variable, while in f(x) the exponent is a constant. This makes an important difference when you are differentiating because the standard "power law" only applies when the exponent is constant.
 


Gib Z said:
It can't, because in h(x) the exponent is x, the variable, while in f(x) the exponent is a constant. This makes an important difference when you are differentiating because the standard "power law" only applies when the exponent is constant.
Specifically, the derivative of xa, with a constant, is axa-1 while the derivative of ax is (ln(a))ax.
 


Thanks. I can see my mistake --- there's no way to define f(x) to satisfy the requirements.
 


There is. Remember that [tex]f(x) = e^{\ln f(x)}[/tex]
 

Similar threads

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