Exercise 1.3 Solutions – 12th Class Math New Book (Logarithms, Inverses and Graph Transformations)

By Ehsan Ahmed · updated
Exercise 1.3 solutions thumbnail for 12th class math chapter 1 (Graphical Representation of Functions) showing the key formulas of the exercise

Exercise 1.3 (Logarithms, Inverses and Graph Transformations) of Chapter 1: Graphical Representation of Functions, 12th class Mathematics new book (Punjab, PECTAA 2026-27). All 10 questions are solved step by step with the final answer highlighted, with figures where they help.

Tap a question to open or close it.
Question 1Let $f(x)=\log_4(x-2)$.
Formula used
$$y=\log_ax\iff a^y=x\quad(x>0)$$
$$\begin{aligned}\operatorname{Dom}f^{-1}&=\operatorname{Range}f\\\operatorname{Range}f^{-1}&=\operatorname{Dom}f\end{aligned}$$
$$(a,b)\text{ on }f\iff(b,a)\text{ on }f^{-1}$$

(i) Show that $f(x)$ is a one-to-one function using the horizontal line test.

Sol:

The horizontal line test says that a function is one-to-one if each horizontal line intersects the graph at most once.

Given

$$f(x)=\log_4(x-2)$$
$$y=\log_4(x-2)\qquad(\because f(x)=y)$$
$$x-2>0$$
$$x>2$$

Draw the graph of the function to apply the horizontal line test.

$$y=\log_4(x-2),\quad x>2$$
$$\begin{array}{c|rrrrr}x&2.1&2.5&3&4&5\\\hline y&-1.66&-0.5&0&0.5&0.8\end{array}$$

The graph is shown below.

Blue: y=log _4(x-2). Red: the horizontal line y=0.5.
Blue: $y=\log_4(x-2)$. Red: the horizontal line $y=0.5$.
Answer A horizontal line $y=c$ meets the graph at most once, so $f$ is one-to-one.

(ii) Find the inverse function $f^{-1}(x)$ algebraically.

Sol:

$$y=\log_4(x-2)\qquad(\because f(x)=y)$$

Write it in exponential form.

$$4^y=x-2$$
$$x=4^y+2$$
$$f^{-1}(y)=4^y+2\qquad(\because x=f^{-1}(y))$$

Replace $y$ by $x$.

Answer $f^{-1}(x)=4^x+2$

(iii) State the domain and range of $f(x)$ and $f^{-1}(x)$.

Sol:

$$f(x)=\log_4(x-2)$$

For the logarithm to exist, its argument must be positive.

$$x-2>0\quad\Longrightarrow\quad x>2$$
$$\operatorname{Dom} f=(2,\infty)$$

The logarithm takes every real value.

$$\operatorname{Range} f=(-\infty,\infty)$$
$$\operatorname{Dom} f^{-1}=\operatorname{Range} f=(-\infty,\infty)$$
$$\operatorname{Range} f^{-1}=\operatorname{Dom} f=(2,\infty)$$
Answer $\operatorname{Dom} f=\operatorname{Range} f^{-1}=(2,\infty)$ and $\operatorname{Range} f=\operatorname{Dom} f^{-1}=(-\infty,\infty)$

(iv) Verify graphically that the graphs of $f(x)$ and $f^{-1}(x)$ are symmetric about the line $y=x$.

Sol:

Draw the graph of the inverse.

Interchange the $x$- and $y$-values.

$$\begin{array}{c|rrrrr}x&-1.66&-0.5&0&0.5&0.8\\\hline y&2.1&2.5&3&4&5\end{array}$$
Blue: y=log _4(x-2). Red: y=4^x+2. Green: y=x.
Blue: $y=\log_4(x-2)$. Red: $y=4^x+2$. Green: $y=x$.
Answer The graphs of $f$ and $f^{-1}$ are symmetric about $y=x$.
Question 2Let $f(x)=\sin x$ for all $x\in\left[-\frac\pi2,\frac\pi2\right]$.
Formula used
$$\begin{aligned}\operatorname{Dom}f^{-1}&=\operatorname{Range}f\\\operatorname{Range}f^{-1}&=\operatorname{Dom}f\end{aligned}$$
$$(a,b)\text{ on }f\iff(b,a)\text{ on }f^{-1}$$

(i) State the domain and range of $f(x)$ and $f^{-1}(x)$.

Sol:

The domain is given. On it, $\sin x$ takes every value from $-1$ to $1$ exactly once.

$$\operatorname{Dom} f=\left[-\frac\pi2,\frac\pi2\right]$$
$$\operatorname{Range} f=[-1,1]$$
$$\operatorname{Dom} f^{-1}=\operatorname{Range} f=[-1,1]$$
$$\operatorname{Range} f^{-1}=\operatorname{Dom} f=\left[-\frac\pi2,\frac\pi2\right]$$
Answer $\operatorname{Dom} f=\operatorname{Range} f^{-1}=\left[-\frac\pi2,\frac\pi2\right]$ and $\operatorname{Range} f=\operatorname{Dom} f^{-1}=[-1,1]$

(ii) Sketch the graph of $f(x)$ and show that it is one-to-one using the horizontal line test.

Sol:

$$f(x)=\sin x\qquad(\because y=f(x))$$
$$y=\sin x$$

Table of values.

$$\begin{array}{c|rrrrr}x&-1.57&-0.52&0&0.52&1.57\\\hline y&-1&-0.5&0&0.5&1\end{array}$$

Draw the graph of $f$.

Blue: y=sin x for xin [-π/2,π/2]. Red: the horizontal line y=0.5.
Blue: $y=\sin x$ for $x\in\left[-\frac{\pi}{2},\frac{\pi}{2}\right]$. Red: the horizontal line $y=0.5$.
Answer The horizontal line $y=c$ meets the curve at most once. Thus $f$ is one-to-one.

(iii) Draw the graph of $f^{-1}(x)$ using the reflection of $f(x)$ along the line $y=x$.

Sol:

$$f^{-1}(x)=\sin^{-1}x$$

Reflection along $y=x$ interchanges the coordinates, so interchange the $x$- and $y$-values of the table in (ii).

$$\begin{array}{c|rrrrr}x&-1&-0.5&0&0.5&1\\\hline y&-1.57&-0.52&0&0.52&1.57\end{array}$$
Blue: y=sin x. Red: y=sin ^-1x. Green: y=x.
Blue: $y=\sin x$. Red: $y=\sin^{-1}x$. Green: $y=x$.
Answer The graphs of $f$ and $f^{-1}$ are symmetric about $y=x$.
Question 3A one-to-one function is defined by $f(x)=(x-1)^3,\ x\in[0,3]$. Using the concept of reflection along the line $y=x$, sketch the graph of the inverse function $f^{-1}(x)$.
Formula used
$$(a,b)\text{ on }f\iff(b,a)\text{ on }f^{-1}$$

Sol:

$$y=(x-1)^3,\quad x\in[0,3]$$

Table of values of $f$.

$$\begin{array}{c|rrrr}x&0&1&2&3\\\hline y&-1&0&1&8\end{array}$$

Reflection along $y=x$ interchanges $x$ and $y$. Table of values of $f^{-1}$.

$$\begin{array}{c|rrrr}x&-1&0&1&8\\\hline y&0&1&2&3\end{array}$$

To find its equation, interchange $x$ and $y$ in $y=(x-1)^3$.

$$x=(y-1)^3$$
$$\sqrt[3]{x}=y-1$$
$$y=1+\sqrt[3]{x},\quad x\in[-1,8]$$
Blue: y=(x-1)^3. Red: its inverse. Green: y=x.
Blue: $y=(x-1)^3$. Red: its inverse. Green: $y=x$.
Answer $f^{-1}(x)=1+\sqrt[3]{x}$ for $x\in[-1,8]$ (graph above)
Question 4Given the function $f(x)=\sqrt{x}$. Find the equation of the function after:
Formula used
$$\text{Vertical scaling: }y=af(x)$$
$$\text{Horizontal shift: }y=f(x-h)$$

(i) vertical stretch by factor 2

Sol:

$$\text{Given }f(x)=\sqrt{x}$$
$$y=\sqrt{x}\qquad(\because f(x)=y)$$

Multiply the function by 2.

$$y=2f(x)$$
Answer $y=2\sqrt{x}$

(ii) horizontal shift 3 units to the right

Sol:

Replace $x$ by $x-3$.

$$y=f(x-3)$$
Answer $y=\sqrt{x-3}$

(iii) applying both transformations (i) and (ii).

Sol:

First stretch vertically, then shift.

$$y=2f(x-3)$$
Answer $y=2\sqrt{x-3}$
Question 5Given the function $f(x)=\frac1x,\ x\ne0$. Find the equation of the transformed function after applying the following transformations in order. Horizontal shift 2 units to the left, horizontal compression by factor 2, vertical stretching by factor 3, and vertical shift 1 unit upward.
Formula used
$$\text{Horizontal shift: }y=f(x-h)$$
$$\text{Vertical shift: }y=f(x)+k$$
$$\text{Horizontal scaling: }y=f(bx)$$
$$\text{Vertical scaling: }y=af(x)$$

Sol:

$$f(x)=\frac1x$$

Horizontal shift 2 units to the left.

Replace $x$ by $x+2$.

$$y=f(x+2)$$
$$y=\frac1{x+2}$$

Horizontal compression by a factor of 2.

Replace $x$ by $2x$.

$$y=\frac1{2x+2}$$

Vertical stretch by a factor of 3.

Multiply the function by 3.

$$y=\frac3{2x+2}$$

Vertical shift 1 unit upward.

Add 1.

$$y=\frac3{2x+2}+1$$
$$y=\frac{3+2x+2}{2x+2}$$
Answer $y=\frac{2x+5}{2x+2}$
Question 6Given the function $f(x)=\ln x$, find the equation of the transformed function obtained after shifting the graph 1 unit to the right, vertically compressing it by a factor of 2, and then shifting it 3 units upward.
Formula used
$$\text{Horizontal shift: }y=f(x-h)$$
$$\text{Vertical scaling: }y=af(x)$$
$$\text{Vertical shift: }y=f(x)+k$$

Sol:

$$f(x)=\ln x$$

Horizontal shift 1 unit to the right.

Replace $x$ by $x-1$.

$$y=f(x-1)$$
$$y=\ln(x-1)$$

Vertical compression by a factor of 2.

Divide the function by 2.

$$y=\frac12\ln(x-1)$$

Vertical shift 3 units upward.

Add 3.

$$\begin{aligned}y&=\tfrac12\ln(x-1)+3\\[6pt]&=\ln[(x-1)^{1/2}]+3\end{aligned}$$
Answer $y=\ln\sqrt{x-1}+3$
Question 7Given the function $f(x)=\sqrt{\frac{2x-1}{x+3}}$. Find the equation of the transformed function after applying in order, the horizontal shift 2 units to the left, horizontal compression by factor 3, vertical compression by factor 2, and vertical shift 1 unit downward.
Formula used
$$\text{Horizontal shift: }y=f(x-h)$$
$$\text{Vertical shift: }y=f(x)+k$$
$$\text{Horizontal scaling: }y=f(bx)$$
$$\text{Vertical scaling: }y=af(x)$$

Sol:

$$f(x)=\sqrt{\frac{2x-1}{x+3}}$$

Horizontal shift 2 units to the left.

Replace $x$ by $x+2$.

$$\begin{aligned}y&=f(x+2)\\[6pt]&=\sqrt{\frac{2(x+2)-1}{x+2+3}}\\[6pt]&=\sqrt{\frac{2x+4-1}{x+5}}\\[6pt]&=\sqrt{\frac{2x+3}{x+5}}\end{aligned}$$

Horizontal compression by a factor of 3.

Replace $x$ by $3x$.

$$\begin{aligned}y&=\sqrt{\frac{2(3x)+3}{3x+5}}\\[6pt]&=\sqrt{\frac{6x+3}{3x+5}}\end{aligned}$$

Vertical compression by a factor of 2.

Divide by 2.

$$y=\frac12\sqrt{\frac{6x+3}{3x+5}}$$

Vertical shift 1 unit downward.

Subtract 1.

Answer $y=\frac12\sqrt{\frac{6x+3}{3x+5}}-1$
Question 8Given the function $f(x)=3^x$ and its transformed function $g(x)=3^{x-2}+1$, draw the graphs of both functions on the same coordinate plane and compare their shapes.
Formula used
$$\text{Horizontal shift: }y=f(x-h)$$
$$\text{Vertical shift: }y=f(x)+k$$

Sol:

For the original function,

$$f(x)=3^x$$
$$y=3^x\qquad(\because y=f(x))$$

Table of values.

$$\begin{array}{c|rrrr}x&-2&-1&0&1\\\hline y&0.11&0.33&1&3\end{array}$$

For the transformed function,

$$g(x)=3^{x-2}+1$$
$$y=3^{x-2}+1\qquad(\because y=g(x))$$

Table of values.

$$\begin{array}{c|rrrrr}x&-2&-1&0&1&2\\\hline y&1.01&1.04&1.11&1.33&2\end{array}$$

Plot these points on the same plane.

Blue: f(x)=3^x. Red: g(x)=3^x-2+1.
Blue: $f(x)=3^x$. Red: $g(x)=3^{x-2}+1$.
Answer The graph of $g$ is the graph of $f$ shifted 2 units to the right and 1 unit upward. Both graphs have the same shape but different positions.
Question 9Given the function $f(x)=\ln x$. Find the equation of the transformed function after applying in order, the vertical stretch by factor 4, shift 6 units to right, horizontal compress by factor 3, and shift 1 unit upward. Draw the graphs of both the original and transformed functions on the same coordinate plane.
Formula used
$$\text{Horizontal shift: }y=f(x-h)$$
$$\text{Vertical shift: }y=f(x)+k$$
$$\text{Horizontal scaling: }y=f(bx)$$
$$\text{Vertical scaling: }y=af(x)$$

Sol:

$$f(x)=\ln x$$

Vertical stretch by a factor of 4.

Multiply by 4.

$$y=4\ln x$$
$$g(x)=4\ln x$$

Horizontal shift 6 units to the right.

Replace $x$ by $x-6$.

$$g(x)=4\ln(x-6)$$

Horizontal compression by a factor of 3.

Replace $x$ by $3x$.

$$g(x)=4\ln(3x-6)$$

Vertical shift 1 unit upward.

Add 1.

$$g(x)=4\ln(3x-6)+1$$

For the original function,

$$f(x)=\ln x$$
$$y=\ln x\qquad(\because f(x)=y)$$

Table of values.

$$\begin{array}{c|rrrrrrr}x&1&5&10&15&20&25&30\\\hline y&0&1.6&2.3&2.7&3.0&3.2&3.4\end{array}$$

For the transformed function,

$$g(x)=4\ln(3x-6)+1$$
$$y=4\ln(3x-6)+1\qquad(\because g(x)=y)$$

Here $3x-6>0$, so $x>2$. The vertical asymptote is $x=2$.

Table of values.

$$\begin{array}{c|rrrrrrr}x&3&5&10&15&20&25&30\\\hline y&5.4&9.8&13.7&15.7&17.0&17.9&18.7\end{array}$$
Blue: f(x)=ln x. Red: g(x)=4ln (3x-6)+1.
Blue: $f(x)=\ln x$. Red: $g(x)=4\ln(3x-6)+1$.
Answer $g(x)=4\ln(3x-6)+1$ (graphs above)
Question 10Draw the graph of $f(x)=|x|$ after applying in order, shift of 7 units to right, horizontal compress by factor 2, vertical shift 6 units downward, and vertical compress by factor 2.
Formula used
$$\text{Horizontal shift: }y=f(x-h)$$
$$\text{Vertical shift: }y=f(x)+k$$
$$\text{Horizontal scaling: }y=f(bx)$$
$$\text{Vertical scaling: }y=af(x)$$

Sol:

$$\text{Given }f(x)=|x|\qquad\text{(i)}$$

For the right shift,

$$y=f(x-h)$$
$$h=7$$
$$y=f(x-7)$$
$$y=|x-7|$$
$$\text{Let }g(x)=|x-7|\qquad\text{(ii)}$$

For the horizontal compression,

$$y=g(ax)$$
$$a=2$$
$$y=g(2x)$$
$$y=|2x-7|$$
$$\text{Let }s(x)=|2x-7|\qquad\text{(iii)}$$

For the downward shift,

$$y=s(x)-k$$
$$k=6$$
$$y=s(x)-6$$
$$y=|2x-7|-6$$
$$\text{Let }t(x)=|2x-7|-6\qquad\text{(iv)}$$

For the vertical compression,

$$y=a\,t(x)\qquad\left(\because0<a<1,\ a=\frac1b\right)$$
$$y=\frac1b\,t(x)$$
$$b=2$$
$$y=\frac12t(x)=\frac12[|2x-7|-6]$$
$$y=\frac12|2x-7|-\frac12\times6$$
$$y=\frac12|2x-7|-3\qquad\text{(v)}$$

For the vertex, take $2x-7=0$.

$$x=\frac72=3.5$$

Substitute $x=3.5$ in equation (v).

$$y=\frac12|0|-3=-3$$

The vertex is $(3.5,-3)$.

For the $x$-intercepts, put $y=0$ in equation (v).

$$\tfrac12|2x-7|-3=0$$
$$\tfrac12|2x-7|=3$$
$${|2x-7|}=6$$
$$2x-7=\pm6$$
$$\begin{array}{rr}2x-7=6&2x-7=-6\\2x=6+7&2x=-6+7\\2x=13&2x=1\\x=\frac{13}2&x=\frac12\\x=6.5&x=0.5\end{array}$$

The $x$-intercepts are $(0.5,0)$ and $(6.5,0)$.

For the $y$-intercept, put $x=0$ in equation (v).

$$\begin{aligned}y&=\frac12|0-7|-3\\[6pt]&=\frac12|-7|-3\\[6pt]&=\frac72-3\\[6pt]&=\frac{7-6}{2}=\frac12\\[6pt]&=0.5\end{aligned}$$

The $y$-intercept is $(0,0.5)$.

Graph of g(x)=1/2|2x-7|-3.
Graph of $g(x)=\frac{1}{2}|2x-7|-3$.
Answer $g(x)=\frac12|2x-7|-3$ (graph above)

See Exercise 1.3 worked examples

Quick check: MCQs on Exercise 1.3

  1. The inverse of $f(x)=3^x+1$ has which domain?
    (a) $(1,\infty)$ · (b) $(0,\infty)$ · (c) $[1,\infty)$ · (d) All real numbers
    Show answer
    Answer: (a) $(1,\infty)$. The range of the original exponential shifts up by 1.
  2. How does $g(x)=f(x-3)$ move the graph of $f$?
    (a) Three units up · (b) Three units right · (c) Three units left · (d) Three units down
    Show answer
    Answer: (b) Three units right. $f(x-h)$ with $h=3>0$ shifts the graph 3 units to the right.
  3. Which line reflects a one-to-one function into its inverse?
    (a) $x=0$ · (b) $y=0$ · (c) $y=-x$ · (d) $y=x$
    Show answer
    Answer: (d) $y=x$. Reflection swaps the coordinates of every point.
  4. What is the range of the modulus function?
    (a) $(-\infty,0]$ · (b) All real numbers · (c) $[0,\infty)$ · (d) $(0,\infty)$
    Show answer
    Answer: (c) $[0,\infty)$. The modulus gives zero or a positive number.

Take the Exercise 1.3 quiz (5 MCQs)

Popular posts from this blog

Chapter 6 Conic Section Notes – 12th Class Math New Book

Exercise 3.3 Solutions – 12th Class Math New Book (Integration by Parts)

Chapter 11 MCQs and Short Questions – 12th Class Math New Book