Exercise 2.7 Examples – 12th Class Math New Book (Optimization with Derivatives)

By Ehsan Ahmed · updated
Exercise 2.7 solved examples thumbnail for 12th class math chapter 2 (Further Differentiation)

Solved examples of Exercise 2.7 (Optimization with Derivatives): the 5 textbook examples, Chapter 2: Further Differentiation, 12th class Mathematics new book (Punjab, PECTAA 2026-27), worked step by step.

Tap an example to open or close it.
Example 30A rectangular garden is to be fenced on three sides with 100 meters of fencing. The fourth side is along a wall and requires no fence. Find the dimensions that maximize the area and the maximum area.
Formula used
$$A=xy$$
$$\frac{dA}{dx}=0,\ \frac{d^2A}{dx^2}<0\Rightarrow\text{max.}$$

Solution:

The fence is on three sides (blue). The wall is on the fourth side.
The fence is on three sides (blue). The wall is on the fourth side.

Let the side opposite to the wall be $x$ meters and each side perpendicular to the wall be $y$ meters.

The total length to be fenced is

$$x+2y=100$$
$$y=\frac{100-x}2\qquad\text{(1)}$$

The area of the garden is

$$\begin{aligned}A&=xy\\[6pt]&=x\left(\frac{100-x}2\right)\quad\text{using (1)}\\[6pt]&=\frac12(100x-x^2)\qquad\text{(2)}\end{aligned}$$

Differentiate with respect to $x$.

$$\begin{aligned}\frac{dA}{dx}&=\frac12(100-2x)\\[6pt]&=50-x\qquad\text{(3)}\end{aligned}$$

Put $\frac{dA}{dx}=0$.

$$50-x=0$$
$$x=50$$

So $x=50$ is the critical point. Differentiate (3) with respect to $x$.

$$\frac{d^2A}{dx^2}=-1<0$$

So the area is maximum at $x=50$. Put $x=50$ in (1) and (2).

$$y=\frac{100-50}2=25$$
$$\begin{aligned}A&=\frac12(100\times50-50^2)\\[6pt]&=\frac12(2500)\\[6pt]&=1250\end{aligned}$$
Answer The side opposite the wall is $50$ meters and each side perpendicular to the wall is $25$ meters. The maximum area is $1250\text{ m}^2$.
Example 31Find the dimensions of a rectangle of maximum area that can be inscribed under the curve $y=4-x^2$ and above the $x$-axis.
Formula used
$$\text{Area}=\text{width}\times\text{height}$$
$$\frac{dA}{dx}=0,\ \frac{d^2A}{dx^2}<0\Rightarrow\text{max.}$$

Solution:

Rectangle under y=4-x^2 and above the x-axis.
Rectangle under $y=4-x^2$ and above the $x$-axis.

Let the vertex of the rectangle on the parabola in the first quadrant be $A(x,y)$. Then the vertex in the second quadrant is $B(-x,y)$.

$$\text{Height}=y,\qquad\text{Width}=2x$$
$$A=2xy\qquad\text{(1)}$$

The vertex $A(x,y)$ is on the curve, so $y=4-x^2$. Put it in (1).

$$\begin{aligned}A&=2x(4-x^2)\\[6pt]&=2(4x-x^3)\end{aligned}$$

Differentiate with respect to $x$.

$$\frac{dA}{dx}=2(4-3x^2)\qquad\text{(2)}$$

Put $\frac{dA}{dx}=0$.

$$2(4-3x^2)=0$$
$$3x^2=4$$
$$x^2=\frac43$$
$$x=\frac2{\sqrt3}$$

Only the positive root is taken, because $x$ is positive in the first quadrant.

Differentiate (2) with respect to $x$.

$$\begin{aligned}\frac{d^2A}{dx^2}&=2(-6x)\\[6pt]&=-12x\end{aligned}$$

At $x=\frac2{\sqrt3}$,

$$\begin{aligned}\frac{d^2A}{dx^2}&=-12\left(\frac2{\sqrt3}\right)\\[6pt]&=-\frac{24}{\sqrt3}<0\end{aligned}$$

So the area is maximum at $x=\frac2{\sqrt3}$. Put it in $y=4-x^2$.

$$\begin{aligned}y&=4-\left(\frac2{\sqrt3}\right)^2\\[6pt]&=4-\frac43\\[6pt]&=\frac83\end{aligned}$$

The width is

$$2x=\frac4{\sqrt3}$$
Answer Width $=2x=\frac4{\sqrt3}$ units, height $=\frac83$ units
Example 32A cylindrical can must hold $500\text{ cm}^3$ of liquid. Find the radius and height that minimizes the material cost.
Formula used
$$V=\pi r^2h$$
$$S=2\pi r^2+2\pi rh$$
$$\frac{dS}{dr}=0,\ \frac{d^2S}{dr^2}>0\Rightarrow\text{min.}$$

Solution:

The material cost is minimum if the surface area of the cylinder is minimum.

Let the radius of the base be $r$ cm and the height be $h$ cm.

$$V=\pi r^2h=500$$
$$h=\frac{500}{\pi r^2}\qquad\text{(1)}$$

The area of the two circular ends is $2\pi r^2$ and the curved surface area is $2\pi rh$. So the total surface area is

$$S=2\pi r^2+2\pi rh\qquad\text{(2)}$$

Put (1) in (2).

$$\begin{aligned}S&=2\pi r^2+2\pi r\cdot\frac{500}{\pi r^2}\\[6pt]&=2\pi r^2+\frac{1000}r\end{aligned}$$

Differentiate with respect to $r$.

$$\frac{dS}{dr}=4\pi r-\frac{1000}{r^2}\qquad\text{(3)}$$

Put $\frac{dS}{dr}=0$.

$$4\pi r=\frac{1000}{r^2}$$
$$r^3=\frac{1000}{4\pi}$$
$$r=\left(\frac{250}\pi\right)^{1/3}\qquad\text{(4)}$$

Differentiate (3) with respect to $r$.

$$\frac{d^2S}{dr^2}=4\pi+\frac{2000}{r^3}$$

Put the value of $r$ from (4).

$$\begin{aligned}\frac{d^2S}{dr^2}&=4\pi+\frac{2000}{250/\pi}\\[6pt]&=4\pi+8\pi\\[6pt]&=12\pi>0\end{aligned}$$

So $S$ is minimum at $r=\left(\frac{250}\pi\right)^{1/3}$. Put this value in (1).

$$\begin{aligned}h&=\frac{500}{\pi\left(\frac{250}\pi\right)^{2/3}}\\[6pt]&=\frac{500}{\pi^{1/3}(250)^{2/3}}\end{aligned}$$
Answer Radius $=\left(\frac{250}\pi\right)^{1/3}$ cm, height $=\frac{500}{\pi^{1/3}(250)^{2/3}}$ cm
Note: In decimals, the radius is about $4.30$ cm and the height about $8.60$ cm. The height is twice the radius.
Example 33A car moves along the parabolic road $y=4-x^2$. A mobile tower is at the origin. Find the position of the car where the signal strength is strongest.
Formula used
$$D=\sqrt{x^2+y^2}$$
$$\frac{df}{dy}=0,\ \frac{d^2f}{dy^2}>0\Rightarrow\text{min.}$$

Solution:

The signal is strongest when the distance between the car and the tower is minimum.

Let the position of the car be $P(x,y)$ on the parabola $y=4-x^2$. Its distance from the tower at $(0,0)$ is

$$D=\sqrt{x^2+y^2}\qquad\text{(1)}$$

Since $y=4-x^2$,

$$x^2=4-y\qquad\text{(2)}$$

Put (2) in (1).

$$D=\sqrt{4-y+y^2}$$

$D$ is minimum when $D^2$ is minimum. Let $D^2=f(y)$.

$$f(y)=y^2-y+4$$

Differentiate with respect to $y$.

$$\frac{df}{dy}=2y-1\qquad\text{(3)}$$

Put $\frac{df}{dy}=0$.

$$2y-1=0$$
$$y=\frac12$$

Differentiate (3) with respect to $y$.

$$\frac{d^2f}{dy^2}=2>0$$

So $f$ is minimum at $y=\frac12$. Put $y=\frac12$ in (2).

$$\begin{aligned}x^2&=4-\frac12\\[6pt]&=\frac72\end{aligned}$$
$$x=\pm\sqrt{\frac72}$$
Answer The signal is strongest at $\left(\sqrt{\frac72},\ \frac12\right)$ and $\left(-\sqrt{\frac72},\ \frac12\right)$.
Example 34A software company is designing a data processing algorithm for analyzing batches of customer transactions. The runtime $T(n)$ in milliseconds depends on the size of the batch $n$ (the number of transactions processed together) and is modeled by the equation: $T(n)=n^3-12n^2+36n$. The term $n^3$ reflects the time complexity of a sorting step in the algorithm. The term $-12n^2$ accounts for optimizations that reduce processing time for moderate batch sizes. The term $36n$ represents overhead that scales linearly with batch size. The company wants to find the optimal batch size $n$ that minimizes the algorithm’s total runtime.
Formula used
$$\frac{dT}{dn}=0,\ \frac{d^2T}{dn^2}>0\Rightarrow\text{min.}$$
$$\frac{dT}{dn}=0,\ \frac{d^2T}{dn^2}<0\Rightarrow\text{max.}$$

Solution:

$$T(n)=n^3-12n^2+36n\ \ \text{(1)}$$

Differentiate (1) with respect to $n$.

$$\frac{dT}{dn}=3n^2-24n+36\qquad\text{(2)}$$

For critical points, put $\frac{dT}{dn}=0$.

$$3n^2-24n+36=0$$
$$n^2-8n+12=0$$
$$(n-2)(n-6)=0,\qquad n\ge1$$
$$n=2\quad\text{and}\quad n=6$$

Differentiate (2) with respect to $n$.

$$\frac{d^2T}{dn^2}=6n-24\qquad\text{(3)}$$

Put $n=2$ in (3).

$$\frac{d^2T}{dn^2}=6(2)-24=-12<0$$

So $T(n)$ has a local maximum at $n=2$.

Put $n=6$ in (3).

$$\frac{d^2T}{dn^2}=6(6)-24=12>0$$

So $T(n)$ has a local minimum at $n=6$.

Answer The runtime is minimized when the batch size is $n=6$.
Note: The end value $T(1)=25$ is larger than $T(6)=0$, and $T(n)=n(n-6)^2$ is never negative. So $n=6$ gives the least runtime of all.

See Exercise 2.7 solutions

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