# Linear Functions and Models

Source: https://cca.twango.dev/Precalculus-Honors/homework/linear-functions

# Linear Functions and Models

The notes below preserve the legible work from both pages of the linear-functions
homework. The problem statements are not included in the handwritten sheets, so
the original numbering is retained without inventing missing prompts.

Original work: [first page](../assets/4.1-1.jpg) and
[continuation](../assets/4.1-2.jpg).
Related: [[../assignments|Homework archive]].

## Slopes and inverse functions

### 6. Perpendicular line

For $6x-3y=2$, rewriting in slope-intercept form gives

$$
y=2x-\frac23.
$$

The slope is $2$, so a perpendicular line has slope $-1/2$.
Through $(2,1)$, the recorded line is

$$
y-1=-\frac12(x-2),\qquad \boxed{y=-\frac12x+2}.
$$

### 7. Inverse of a linear function

Starting with $y=2x+4$, interchange $x$ and $y$ and solve:

$$
x=2y+4,\qquad \boxed{y=\frac12x-2}.
$$

### 8. Another inverse

Starting with $y=x/5-1$:

$$
x=\frac y5-1,\qquad \boxed{y=5x+5}.
$$

### 40. Composing inverse functions

For $f(x)=Ax+B$ and $g(x)=Cx+D$, with $A,C\ne0$,

$$
f^{-1}(x)=\frac{x-B}{A},\qquad g^{-1}(x)=\frac{x-D}{C}.
$$

The two compositions in the work are

$$
\boxed{(f^{-1}\circ g^{-1})(x)=\frac{x-D-BC}{AC}},
$$

$$
\boxed{(g^{-1}\circ f^{-1})(x)=\frac{x-B-DA}{CA}}.
$$

## Linear models

### 12. Recorded model and substitution

The final model on the sheet is

$$
y=-11600x+120000.
$$

Substitution at $x=8$ gives

$$
-11600(8)+120000=\boxed{27200}.
$$

Earlier crossed-out attempts remain in the original photo.

### 16. A cost model

![[assets/precalc-5-linear-functions-cost-model.svg|linear functions cost model]]

Cost line plotted from the recorded formula, with its intercept 500 and the source-scale point $(1000,1000)$.

The recorded function is $C(x)=0.5x+500$:

$$
C(150)=0.5(150)+500=\boxed{575},
\qquad C(150)+0.5=\boxed{575.5}.
$$

The missing problem statement does not establish what the extra $0.5$ represents.

### 20. Constant rate

The recorded rate is $v=4\ \mathrm{cm/s}$, with the calculations
$4(2)+10=18$ and $4(3)+10=22$.
The sheet also records $b+4=22$; its surrounding prompt is unavailable.

### 24. Line through a point

Using the recorded slope $m=-1.76$ and point $(1993,40.2)$:

$$
y-40.2=-1.76(x-1993),\qquad \boxed{y=-1.76x+3547.88}.
$$

Part (c) records $48.7\%$, but the handwritten ratio is unclear and cannot be
verified from the photo alone.

### 28. Line fitted to a scatter plot

![[assets/precalc-5-linear-functions-scatter-plot.svg|linear functions scatter plot]]

Qualitative redraw of the five visible dots and sketched trend line. Dot heights and line placement are schematic, not a recovered dataset or a computed fit; the recorded estimates remain $m\approx0.5$, $b\approx1$.

The sheet estimates a $y$-intercept near $1$ and a slope near $0.5$, and describes
the comparison in part (c) as “very similar.” These are recorded estimates,
not measurements reconstructed from the image.

## Midpoints and least squares

### 44. Midpoint identity

For $f(x)=mx+b$,

$$
f\left(\frac{x_1+x_2}{2}\right)
=m\frac{x_1+x_2}{2}+b
=\frac{f(x_1)+f(x_2)}2.
$$

The sheet compares this with $f(x)=x^2$, for which

$$
\left(\frac{x_1+x_2}{2}\right)^2
\ne\frac{x_1^2+x_2^2}{2}
$$

in general. Equality holds when $x_1=x_2$.

### 45. Solving the recorded normal equations

The work totals $\sum x=10$, $\sum y=16$, $\sum x^2=30$, and $\sum xy=52$.
With four data points, the equations for $y=mx+b$ are

$$
4b+10m=16,\qquad 10b+30m=52.
$$

Multiply the first equation by $3$ and subtract the second:

$$
12b+30m=48,\qquad 2b=-4,\qquad b=-2.
$$

Substitute back: $4(-2)+10m=16$, giving $m=2.4$.
Thus the recorded fit is

$$
\boxed{y=2.4x-2}.
$$

### 47. Continuation: a second fit

The continuation records $\sum x=15$, $\sum y=34$, $\sum x^2=55$,
and $\sum xy=126$. For five data points,

$$
5b+15m=34,\qquad 15b+55m=126.
$$

Multiply the first equation by $3$ and subtract it from the second:

$$
10m=24,\qquad m=2.4.
$$

Then $5b+15(2.4)=34$, so $b=-2/5$ and

$$
\boxed{y=2.4x-\frac25}.
$$
