Determine compositions of functions

  • Thread starter Thread starter Cyborg31
  • Start date Start date
  • Tags Tags
    Functions
Click For Summary

Homework Help Overview

The discussion revolves around the compositions of functions, specifically focusing on a function h defined on integers that outputs 0 for even inputs and 1 for odd inputs. Participants are tasked with determining the results of h^2, h^3, and h^500.

Discussion Character

  • Exploratory, Conceptual clarification

Approaches and Questions Raised

  • The original poster attempts to evaluate the function h through its compositions, providing reasoning for the outputs based on the parity of the input. Some participants question the necessity of the detailed steps provided and suggest that a more concise conclusion could be drawn from the initial evaluations.

Discussion Status

Some participants affirm the correctness of the original poster's reasoning, while others suggest that the process could be simplified. There is an acknowledgment of the correctness of the evaluations, but no explicit consensus on the need for the detailed steps.

Contextual Notes

Participants are exploring the implications of function composition and the relationships between the outputs based on input characteristics. There is also a separate inquiry regarding the relationships between constants in different function compositions, with some participants expressing uncertainty about their reasoning.

Cyborg31
Messages
36
Reaction score
0

Homework Statement



Let h: Z -> Z be defined as follows:

h(n) = 0 if n is even and 1 if n is odd

Determine h^2, h^3, and h^500

Homework Equations


The Attempt at a Solution



If n is even, h(n) = 0 then h(h(n)) = h(0) = 0
If n is odd, h(n) = 1 then h(h(n)) = h(1) = 1

If n is even h(n) = 0 then h(h(h(n))) = h(h(0)) -> h(0) = 0
If n is odd h(n) = 1 then h(h(h(n))) = h(h(1)) -> h(1) = 1

Then for h^500, if n is even then the result is 0 and n is odd then the result is 1.

Can someone tell if that's correct?

Thanks.
 
Last edited:
Physics news on Phys.org
Hi Cyborg31!

Yes, that's right! :smile:

Why, were you worried that it wasn't? :wink:

(Of course, you could also write the result: h^2 = h, h^500 = h. :smile:)
 


Seem correct, though unnecesarily long.

Already after

If n is even, h(n) = 0 then h(h(n)) = h(0) = 0
If n is odd, h(n) = 1 then h(h(n)) = h(1) = 1

you can conclude h^2 = h and therefore h^k = h for all k >= 1.

=============================================================
Forum signature: www.lingouist.blogspot.com[/URL]
 
Last edited by a moderator:
1. Let f, g: R -> R where f(x) = ax + b and g(x) = x^2 - x + 1. If (g o f)(x) = 9x^2 - 9x + 3, determine the values of a and b.

So I got g(ax + b) = (ax + b)^2 - (ax + b) + 1

(a^2*x^2 + 2(a * b)x + b^2) - (ax + b) + 1 = 9x^2 - 9x + 3
(9x^2 + 2(3 * b)x + b^2) - (3x + b) + 1
(9x^2 + 2(3 * 2)x + 4) - (3x + 2) + 1
9x^2 + 12x + 4 - 3x - 2 + 1
9x^2 + 9x + 3

I know a = 3 and b = 2 but I'm not sure if those steps are correct. I don't think I've shown a way as to how I got the 2 for b. I got the a cause of the coefficient of the square. Anyone know if those steps are correct?

2. Let f, g: R -> R where f(x) = ax + b and g(x) = cx + d for any x element of R where a, b, c, and d are real constants. What relationships must be satisfied by the four constants for the equality: (f o g)(x) = (g o f)(x) for all x element of R?

(f o g)(x) = f(g(x)) = f(cx + d) = a(cx + d) + b
(g o f)(x) = g(f(x)) = g(ax + b) = c(ax + b) + d

a(cx + d) + b = c(ax + b) + d

I got a = c and b = d so that the coefficient and the constant matches so that they're equal. But I think I'm missing some steps of work.

Thanks.
 
Actually nm, I figured it out.
 

Similar threads

  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
Replies
4
Views
1K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 4 ·
Replies
4
Views
1K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 5 ·
Replies
5
Views
1K