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

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.
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.
Solution:
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
The area of the garden is
Differentiate with respect to $x$.
Put $\frac{dA}{dx}=0$.
So $x=50$ is the critical point. Differentiate (3) with respect to $x$.
So the area is maximum at $x=50$. Put $x=50$ in (1) and (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.
Solution:
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)$.
The vertex $A(x,y)$ is on the curve, so $y=4-x^2$. Put it in (1).
Differentiate with respect to $x$.
Put $\frac{dA}{dx}=0$.
Only the positive root is taken, because $x$ is positive in the first quadrant.
Differentiate (2) with respect to $x$.
At $x=\frac2{\sqrt3}$,
So the area is maximum at $x=\frac2{\sqrt3}$. Put it in $y=4-x^2$.
The width is
Example 32A cylindrical can must hold $500\text{ cm}^3$ of liquid. Find the radius and height that minimizes the material cost.
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.
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
Put (1) in (2).
Differentiate with respect to $r$.
Put $\frac{dS}{dr}=0$.
Differentiate (3) with respect to $r$.
Put the value of $r$ from (4).
So $S$ is minimum at $r=\left(\frac{250}\pi\right)^{1/3}$. Put this value in (1).
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.
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
Since $y=4-x^2$,
Put (2) in (1).
$D$ is minimum when $D^2$ is minimum. Let $D^2=f(y)$.
Differentiate with respect to $y$.
Put $\frac{df}{dy}=0$.
Differentiate (3) with respect to $y$.
So $f$ is minimum at $y=\frac12$. Put $y=\frac12$ in (2).
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.
Solution:
Differentiate (1) with respect to $n$.
For critical points, put $\frac{dT}{dn}=0$.
Differentiate (2) with respect to $n$.
Put $n=2$ in (3).
So $T(n)$ has a local maximum at $n=2$.
Put $n=6$ in (3).
So $T(n)$ has a local minimum at $n=6$.