Class 5

Between Class Sessions - Prep for Day 5

Please spend around 2 hours working between class sessions, focusing on the tasks below. Use any extra time to complete KnewtonAlta assignments and/or work on Project tasks.

Pick something from your prep today that you can share with your group in class. It might be something new that you learned. It might be questions you have that are still unanswered, or a question along with what helped you eventually answer it. It might be something tricky that you solved. It might be a review topic that helped you remember something. It might be a conversation you had with AI that was helpful. You will have a chance to share this with your peers during class. Come ready to articulate your thinking and questions.

Preparation

(1) Review the Cohesive Analysis

Take a look at this html file. This is an example of a cohesive analysis.

  • Notice there are complete sentences (and paragraphs) introducing the calculations.
  • Notice the calculations are explained.
  • Notice the work is reproducible because the steps of the calculations are included in the explanations, the functions we are working with are stated in the narrative (the text), and the R code is included.
  • Notice the written work stands independent of our work in class, you do not need to see the Wiki or problem statement to understand what is going on in the narrative.
  • You can download the Quarto source file used to create this html here.

(2) Create your own Cohesive Analysis

  • Complete Project 1 Task 1 by creating your own Quarto document (feel free to download and modify the one above), and in that file give a short cohesive analysis with the required scatterplot. In other words, take the work you already did and convert it into a short cohesive analysis.
  • For some additional practice with Quarto and writing cohesive analysis, create your own Quarto document (feel free to download and modify the one above), and in that file give a short cohesive analysis that computes the several values of a function taken from one of the exercises we did today. In other words, take the work you’ve already done in a script file in R, and convert it into a short cohesive analysis.

Regular Reminders

Skill Practice (KA Homework)

  • Continue working on 1 – Transformations of Functions assignment
  • Continue working on 1 – Solving Linear Systems assignment

Applied Practice (Project Work)

  • Submit the html file for Project 1 Task 1 on Canvas.

During Class

Brain Gains

Many functions we use in the sciences are transformations of a basic function. For example, we can transform the power function \(f(x) = x^2\) (often called a parent function) into the more complex function \(g(x) = 3(x-4)^2+5\). A general form for such a transformation is \[T(x;a,b,c,d) = af(b(x+c))+d,\] using the parent function \(f\) with parameters \(a\), \(b\), \(c\), and \(d\). One of our goals this semester is to identify a parent function with appropriate parameters so that we can use the transformed function as a model for data.

Using the general transformation \(T(x) = af(b(x+c))+d\), identify the parameters \(a\), \(b\), \(c\), and \(d\) needed to transform \(f(u)\) into the provided function.

  1. \(g(x) = 8(x+5)^3 - 2\) where \(f(u) = u^3\)

  2. \(h(x) = 4\sqrt{2x-6} +7\) where \(f(u) = \sqrt{u}\)

Possible Solutions

For \(g(x) = 8(x+5)^3 - 2\) we can chose \(a=8, b=1, c=5, d=-2\). The function \(T(x)\) using \(f(u)=u^3\) is \[ \begin{align*} T(x;a,b,c,d) &= af(b(x+c))+d \\ &= a(b(x+c))^3+d \\ &= 8(1(x+5))^3+(-2) \\ &= 8(x+5)^3 - 2\\ &= h(x). \end{align*}\] There is more than one correct answer. Another completely valid solution is \(a=1, b=2, c=5, d=-2\), as \[T(x;1,2,5,-2) = 1(2(x+5))^3+(-2) = 8(x+5)^3 - 2\]

For \(h(x) = 4\sqrt{2x-6} +7\) we can chose \(a=4, b=2, c=-3, d=7\). The function \(T(x)\) using \(f(u)=\sqrt{u}\) is \[ \begin{align*} T(x;a,b,c,d) &= af(b(x+c))+d \\ &= a\sqrt{b(x+c)}+d \\ &= 4\sqrt{2(x-3)}+7 \\ &= 4\sqrt{2x-6}+7\\ &= h(x). \end{align*}\] It’s common to guess \(c=-6\) at first, but then we compute \(T(x;4,2,-6,7) = 4\sqrt{2(x-6)}+7 = 4\sqrt{2x-12}+7,\)$ which is incorrect. A guess, followed by an informed update, is a completely valid way to solve this problem.

Group Meeting

Project Work (Cohesive Analysis)

Compare and contrast your Project 1 Task 1 cohesive analyses. Are all plots introduced with words. Do you have sentences, outside of the code chunks, describing what is happening? If not, help each other add appropriate sentences.

Transformations of a function

Exercise 1

Given a general form for a transformation of a function \(T(x) = af(b(x+c))+d\) and the parent function \(f\), identify \(a\), \(b\), \(c\), and \(d\) for each of the transformations below.

  • \(r(x) = \frac{1}{4x} - 5\) where \(f(u) = \frac{1}{u}\)
  • \(t(x) = \frac{1}{2}|3-x|+7\) where \(f(u) = |u|\)
  • \(p(x) = -3x^5 -1\) where \(f(u) = u^5\)
  • \(q(x) = x^2 - 4x + 9\) where \(f(u) = u^2\)

Exercise 2

Let \(f(x;a,b) = ax^b\), a generic power function. Consider the transformation \(T(x;a,b,A,B,C,D) = Af(B(x-C);a,b)+D\).

For each parameter set below, do the following:

  • Identify the parent function \(f(x;a,b)\). For example, if \(a=2\) and \(b=5\), then the parent function is \(f(x;2,5) = f(x) = 2x^5\).
  • Write down the specific function \(T(x;A,B,C,D)\) produced from the given values for the parameters \(A,B,C,D\)
  • Adapt this Desmos calculator to plot and compare the two functions.
Set 1

\(a=1,\ b=2,\ A=1,\ B=1,\ C=0,\ D=0\)

Check

Parent function with \(a=1,\ b=2\): \[f(x) = 1x^2 = x^2\]

Transformation with \(A=1,\ B=1,\ C=0,\ D=0\): \[\begin{aligned} T(x) &= 1\cdot f(1(x-0)) + 0 \\ &= 1\cdot[1(1(x-0))^2] + 0 \\ &= x^2 \end{aligned}\]

Notice \(T(x)\), the “transformed function”, is the same as \(f(x)\), the “parent function” — there is no transformation (or only a trivial transformation) in this case.

Set 2

\(a=1,\ b=2,\ A=1,\ B=1,\ C=3,\ D=4\)

Check

Parent function with \(a=1,\ b=2\): \[f(x) = x^2\]

Transformation with \(A=1,\ B=1,\ C=3,\ D=4\): \[\begin{aligned} T(x) &= 1\cdot f(1(x-3)) + 4 \\ &= (x-3)^2 + 4 \end{aligned}\]

Set 3

\(a=1,\ b=2,\ A=3,\ B=4,\ C=0,\ D=0\)

Check

Parent function with \(a=1,\ b=2\): \[f(x) = x^2\]

Transformation with \(A=3,\ B=4,\ C=0,\ D=0\): \[\begin{aligned} T(x) &= 3\cdot f(4(x-0)) + 0 \\ &= 3\cdot(4x)^2 \\ &= 3\cdot 16x^2 \\ &= 48x^2 \end{aligned}\]

Set 4

\(a=3,\ b=4,\ A=1,\ B=1,\ C=0,\ D=0\)

Check

Parent function with \(a=3,\ b=4\): \[f(x) = 3x^4\]

Transformation with \(A=1,\ B=1,\ C=0,\ D=0\): \[\begin{aligned} T(x) &= 1\cdot f(1(x-0)) + 0 \\ &= f(x) = 3x^4 \end{aligned}\]

Notice \(T(x)\), the “transformed function”, is the same as \(f(x)\), the “parent function” — there is no transformation (or only a trivial transformation) in this case.

Set 5

\(a=-1,\ b=3,\ A=2,\ B=-4,\ C=5,\ D=-6\)

Check

Parent function with \(a=-1,\ b=3\): \[f(x) = -x^3\]

Transformation with \(A=2,\ B=-4,\ C=5,\ D=-6\): \[\begin{aligned} T(x) &= 2\cdot f(-4(x-5)) + (-6) \\ &= 2\cdot[-1\cdot(-4(x-5))^3] - 6 \\ &= -2\cdot(-64(x-5)^3) - 6 \\ &= 128(x-5)^3 - 6 \end{aligned}\]

Exercise 3

Each parameter (\(A\), \(B\), \(C\), and \(D\)) above controls some aspect of the graph of the function. Explore changing these parameters and write a description of what each parameter controls.

Exercise 4

Replace \(f(x;a,b) = ax^b\) above with \(f(x;a,b) = a(b^x)\) and then repeat Exercise 2. Do your conclusions from Exercise 3 still hold?

Discussion

Project 1 Task 1 discussion

  • What questions do you have about the assignment?
  • Are there any things you realized you needed to add after you shared your work with your peers?
  • How much can we use AI?

Example Project (Cohesive Analysis)

We will complete Example Project Task 1 together and then put together a cohesive analysis to complete task 1 of the example project. We’ll be building a histogram as we complete the example project. You built a scatter plot when you complete Project 1 Task 1.

  • We’ll open the Example Project Instructions
  • Use our work on this Example Project and the feedback you receive from your peer feedback to guide in your revisions on Project 1 Task 1. Remember, you can revise and resubmit your Project 1 Task 1 today if you have found something you need to change in order to meet the specs (or if there is something you would like to update).
  • Are there any questions about the expectations for the project tasks?

Functions, Transformations, Parameters

  1. How do we find the domain (implied domain) of a function?

  2. What is the difference between a power function and an exponential function? Give an example of each.

  3. Give an example of a transformed power function.

  4. Give an example of a transformed exponential function.

  5. Let’s use this Desmos calculator and create some examples, exploring how parameters transform a function.


Source: Class.5 on byuimath.com