Q.Find two positive numbers whose sum is 15 and the sum of whose squares is minimum.
🔒You're viewing a preview — the full solution, concept, methods & PYQ mapping are locked.
🔒 Start your 14-day free trial to unlock the full solution →Concept understanding — Minimizing Sum of Squares
Minimizing the Sum of Squares
A classic optimisation problem in this chapter asks: split a fixed quantity into parts so that the sum of their squares is as small as possible. For instance, "Find two positive numbers whose sum is S and the sum of whose squares is a minimum." The derivative handles it neatly.
Setting it up
Suppose two numbers add up to a fixed total S. Call them x and S−x. The quantity we want to minimise is the sum of their squares:
f(x)=x2+(S−x)2.
By writing the second number in terms of the first, we have turned a two-variable question into a single-variable function — exactly what makes it a maxima–minima problem.
Applying the derivative
Differentiate and set to zero:
f′(x)=2x−2(S−x)=4x−2S.
f′(x)=0 ⇒ x=2S.
The second derivative is f′′(x)=4>0, which is positive everywhere, so this critical point is a genuine minimum. Hence the two numbers are equal, each 2S, and the least possible sum of squares is
(2S)2+(2S)2=2S2.
The result matches intuition: squaring punishes large numbers heavily, so making the parts as balanced as possible — all equal — keeps the total of the squares down. Pushing the split to extremes (one number near S, the other near 0) makes the sum of squares largest, not smallest.
The general recipe
Whenever a problem says "minimise the sum of squares subject to a fixed sum":
- Use the constraint to express everything in one variable. …
Idea: Use the constraint to write everything in one variable, then minimise with a single derivative (constraint-substitution, no Lagrange).
Let the two positive numbers be x and 15−x, with 0<x<15. Minimise the sum of squares
S(x)=x2+(15−x)2=2x2−30x+225.
Differentiate and set to zero:
S′(x)=4x−30=0 ⇒ x=215=7.5. …
Writing the sum of squares as S(x)=x2+(15−x)2 and minimising gives x=7.5, so both numbers are 7.5 and the least sum of squares is 112.5.
Set up in one variable
Let the two positive numbers be x and 15−x (their sum is 15), where 0<x<15. The quantity to minimise is the sum of their squares:
S(x)=x2+(15−x)2.
Expanding,
S(x)=x2+225−30x+x2=2x2−30x+225.
Because we used the constraint x+(15−x)=15 to eliminate the second number, this is now a single-variable function — ordinary calculus finishes the job.
Minimise
Differentiate:
S′(x)=4x−30.
Set S′(x)=0:
4x−30=0 ⇒ x=430=7.5.
Check the nature of this point:
S′′(x)=4>0,
so S is minimised (the graph is an upward parabola). The value x=7.5 is positive and less than 15, so it is valid.
Answer the question …
Method: Reducing a Constrained Optimization Problem to One Variable
Any problem of the form "given a fixed total, split it to optimise some combined quantity" follows this same recipe.
Steps
Step 1: Name the unknowns and write the constraint
If two (or more) quantities are linked by a fixed sum, product, or other relation, write that relation down explicitly first — it is what lets you eliminate a variable.
Step 2: Use the constraint to express everything in one variable
Solve the constraint for one unknown in terms of the other, and substitute it into the quantity you're optimising, so the objective becomes a function of a single variable.
Step 3: Differentiate and solve for critical points
Q′(x)=0
Also note the valid range for the variable coming from the problem's own conditions (for example, "positive numbers" restricts the domain). …
- TG EAPCET 2026Set eng-2026-05-10-AN1 markMCQQ.The variance for the following discrete frequency distribution is
[!FORMULA] xifi13355331
(A) 3 (B) 2 (C) 1 (D) 5›Reveal solutionSolution
The key idea is to compute the variance of a grouped frequency distribution using the formula σ2=∑fi∑fixi2−(∑fi∑fixi)2. After careful calculation, the variance is 2, so the correct option is (B).
We are given a discrete frequency distribution with values xi and frequencies fi. The table is:
xi 1 3 5 3 fi 3 5 3 1 Notice that xi=3 appears twice in the table (with frequencies 5 and 1), so we should combine them: total frequency for x=3 is 5+1=6. The corrected distribution is:
xi 1 3 5 fi 3 6 3 Now we compute the variance step by step.
-
Find total frequency N
N=∑fi=3+6+3=12.
-
Compute ∑fixi (the sum of all values)
∑fixi=(3×1)+(6×3)+(3×5)=3+18+15=36.
-
Compute the mean xˉ
xˉ=N∑fixi=1236=3.
-
Compute ∑fixi2 (the sum of squares)
∑fixi2=(3×12)+(6×32)+(3×52)=(3×1)+(6×9)+(3×25)=3+54+75=132. …
-
- TG EAPCET 2026Set eng-2026-05-10-AN1 markMCQQ.If the nearest point on the parabola y2=4x to the given point P(−1,4) is Q(h,k) and PQ=d, then h2+k2+d2= (A) 13 (B) 14 (C) 17 (D) 9
›Reveal solutionSolution
The problem asks for the sum of the squares of the coordinates of the nearest point on the parabola to a given point, plus the square of the distance between them. The key is to minimize the squared distance using calculus or geometry, then compute the required sum. The answer is 17.
We are given the parabola y2=4x and the point P(−1,4). We need the point Q(h,k) on the parabola that is closest to P, then compute h2+k2+d2, where d=PQ.
Concept and Intuition
The distance between two points is minimized when the squared distance is minimized (since square root is monotonic). For a point on the parabola, we can write its coordinates in terms of a parameter. The squared distance becomes a function of that parameter; we find its minimum by differentiation. Then we compute the required sum directly — no need to find d separately, because d2 is already part of the expression we minimize.
Step-by-step solution
-
Parameterize the parabola
The parabola y2=4x can be written as x=t2, y=2t (standard parametric form).
So any point on it is Q(t)=(t2,2t).
-
Write the squared distance from P(−1,4)
D(t)=(t2+1)2+(2t−4)2
because xQ−xP=t2−(−1)=t2+1 and yQ−yP=2t−4.
- Expand and simplify
D(t)=(t4+2t2+1)+(4t2−16t+16)=t4+6t2−16t+17
- Minimize by differentiation
D′(t)=4t3+12t−16
Set D′(t)=0:
4t3+12t−16=0⇒t3+3t−4=0
-
Solve the cubic
Try t=1: 1+3−4=0. So t=1 is a root.
Factor: (t−1)(t2+t+4)=0.
The quadratic t2+t+4=0 has discriminant 1−16=−15<0, so no real roots.
Hence the only real critical point is t=1.
-
Verify it’s a minimum …
-
- TG EAPCET 2026Set eng-2026-05-11-FN1 markMCQQ.If 1+3+5+…+l1=1521 and 2+4+6+…+l2=1722 then l1+l2= (A) 160 (B) 159 (C) 80 (D) 79
›Reveal solutionSolution
The sum of the first n odd numbers is n2, and the sum of the first m even numbers is m(m+1). Using these, we find l1=77 and l2=82, so l1+l2=159.
The key insight here is that the two series are not arbitrary arithmetic progressions — they are the natural sequences of odd and even numbers. The sum of the first n odd numbers has a famously neat closed form: it’s simply n2. Similarly, the sum of the first m even numbers is m(m+1). Once you recognise these patterns, the problem reduces to solving two simple equations.
Let’s work through it step by step.
-
The odd-number series
The sequence 1,3,5,…,l1 is just the first n odd numbers, where l1 is the n-th odd number. The n-th odd number is 2n−1, so l1=2n−1.
The sum of the first n odd numbers is n2. We are told this sum is 1521.
So n2=1521. Taking the positive square root (since n is a positive integer), n=1521=39.
Therefore l1=2(39)−1=78−1=77.
-
The even-number series
The sequence 2,4,6,…,l2 is the first m even numbers, where l2 is the m-th even number. The m-th even number is 2m, so l2=2m.
The sum of the first m even numbers is 2+4+6+⋯+2m=2(1+2+3+⋯+m)=2⋅2m(m+1)=m(m+1).
We are told this sum is 1722. So m(m+1)=1722.
-
Solving for m …
-
- TG EAPCET 2024Set eng-2024-05-09-AN1 markMCQQ.α,β,γ,2,ϵ are the roots of the equation x5+4x4−13x3−52x2+36x+144=0. If α<β<γ<2<ϵ, then α+2β+3γ+5ϵ= (A) −1 (B) 25 (C) −36 (D) 48
›Reveal solutionSolution
The quintic factors as (x+4)(x−2)(x+2)(x−3)(x+3); ordering the roots gives α+2β+3γ+5ϵ=−1.
Factor by grouping:
x5+4x4−13x3−52x2+36x+144=x4(x+4)−13x2(x+4)+36(x+4)
=(x+4)(x4−13x2+36)=(x+4)(x2−4)(x2−9)
=(x+4)(x−2)(x+2)(x−3)(x+3).
The five roots are −4,−3,−2,2,3. With the ordering α<β<γ<2<ϵ: …
- TG EAPCET 2024Set eng-2024-05-09-FN1 markMCQQ.The sum of two roots of the equation x4−x3−16x2+4x+48=0 is zero. If α,β,γ,δ are the roots of this equation, then α4+β4+γ4+δ4= (A) 123 (B) 369 (C) 132 (D) 396
›Reveal solutionSolution
Using the given condition that two roots sum to zero, we factor the quartic into two quadratics, find all four roots, compute their fourth powers, and sum them to get 369, which corresponds to option (B).
We are told that the sum of two roots of the quartic x4−x3−16x2+4x+48=0 is zero. That means there exist two roots, say α and β, such that α+β=0, i.e., β=−α. This is a powerful clue: it suggests the polynomial has a factor of the form (x−α)(x+α)=x2−α2. So the quartic can be factored into two quadratics, one of which is x2−a for some a>0 (since α2=a). Our job is to find that factorization, then find all roots, and finally compute the sum of their fourth powers.
- Set up the factorization Since two roots are opposites, the quartic must be divisible by x2−k for some k=α2. Let’s write:
x4−x3−16x2+4x+48=(x2−k)(x2+px+q)
where the second quadratic has coefficients to be determined.
- Expand and match coefficients Expanding:
(x2−k)(x2+px+q)=x4+px3+qx2−kx2−kpx−kq
=x4+px3+(q−k)x2−kpx−kq
Compare with the given polynomial:
x4−x3−16x2+4x+48
We get the system:
⎩⎨⎧p=−1q−k=−16−kp=4−kq=48
- Solve for k, p, q From p=−1 and −kp=4, we have −k(−1)=k=4. So k=4. Then q−k=−16 gives q−4=−16⇒q=−12. Check −kq=−4(−12)=48, which matches. So the factorization is:
x4−x3−16x2+4x+48=(x2−4)(x2−x−12)
- Find all four roots
- From x2−4=0: x=±2. …
- TG EAPCET 2023Set eng-2023-05-13-FN1 markMCQQ.If the variance of the data 2, 3, 5, 8, 12 is σ2 and the mean deviation from the median for this data is M, then σ2−M= (A) 10.2 (B) 5.8 (C) 10.6 (D) 8.2
›Reveal solutionSolution
The problem asks for the difference between the variance and the mean deviation from the median for the data set {2, 3, 5, 8, 12}. We compute variance as 13.2 and mean deviation from median as 2.8, so the difference is 10.4. However, checking the options, 10.4 is not listed — rechecking reveals the variance is actually 14.8 (using population formula), giving 14.8 − 2.8 = 12.0, still not matching. Wait — careful: the variance given is σ² (population variance, denominator n), so σ² = 13.2, M = 2.8, difference = 10.4. But 10.4 is not an option. Let’s recompute: mean = 6, deviations squared: (2−6)²=16, (3−6)²=9, (5−6)²=1, (8−6)²=4, (12−6)²=36; sum = 66; σ² = 66/5 = 13.2. Median = 5; absolute deviations: |2−5|=3, |3−5|=2, |5−5|=0, |8−5|=3, |12−5|=7; sum = 15; M = 15/5 = 3. So σ² − M = 13.2 − 3 = 10.2. That matches option (A). Final result: 10.2.
Concept & Intuition
We need two different measures of spread: variance (average squared distance from the mean) and mean deviation from the median (average absolute distance from the median). The trick is to compute each carefully — variance uses the mean, mean deviation uses the median — and then subtract. A common mistake is using the wrong denominator (n vs n−1) or confusing median with mean.
Step-by-step solution
-
Find the mean
Data: 2, 3, 5, 8, 12.
Sum = 2 + 3 + 5 + 8 + 12 = 30.
Number of values, n = 5.
Mean, xˉ=530=6.
-
Compute the variance σ2 (population variance, denominator n)
Deviations from mean:
- 2−6=−4 → square = 16
- 3−6=−3 → square = 9
- 5−6=−1 → square = 1
- 8−6=2 → square = 4
- 12−6=6 → square = 36 Sum of squared deviations = 16 + 9 + 1 + 4 + 36 = 66. σ2=566=13.2.
-
Find the median
Sorted data: 2, 3, 5, 8, 12.
Since n = 5 (odd), median is the middle value: 5.
-
Compute the mean deviation from the median (M) …
-
- TG EAPCET 2023Set eng-2023-05-13-FN1 markMCQQ.Let S and S′ be the foci of an ellipse E and B be one end of its minor axis. Let ∣S′SB∣=6π and (23,1) be a point on E. If X-axis is the major axis and Y-axis is the minor axis of the ellipse E, then the sum of the squares of the lengths of major axis and minor axis is (A) 20 (B) 60 (C) 80 (D) 100
›Reveal solutionSolution
The key is to interpret the given angle condition as a relation between the semi-major axis a, semi-minor axis b, and the focal distance c, then use the given point to solve for a2 and b2. The sum of squares of the lengths is 4(a2+b2)=80, so the correct option is (C).
Concept and Intuition
We have an ellipse centered at the origin, with the major axis along the X‑axis and the minor axis along the Y‑axis. Its standard equation is
a2x2+b2y2=1,a>b>0.
The foci are at S=(−c,0) and S′=(c,0), where c2=a2−b2.
One end of the minor axis is B=(0,b).
The condition ∣S′SB∣=6π is a bit unusual: it’s an angle, not a length. The notation ∣S′SB∣ means the angle ∠S′SB — that is, the angle at vertex S formed by points S′, S, and B. So we have ∠S′SB=30∘.
This gives a geometric relation between a, b, and c. Then the point (23,1) lies on the ellipse, giving a second equation. Solving these yields a2 and b2, and the problem asks for the sum of the squares of the lengths of the major and minor axes: (2a)2+(2b)2=4(a2+b2).
Step‑by‑step solution
- Set up the geometry of the angle condition Points: S′=(c,0), S=(−c,0), B=(0,b). The angle ∠S′SB is at S, between vectors SS′=(2c,0) and SB=(c,b). The cosine of the angle is given by the dot product:
cos30∘=∣(2c,0)∣∣(c,b)∣(2c,0)⋅(c,b)=(2c)c2+b22c2=c2+b2c.
Since cos30∘=23, we have:
c2+b2c=23.
- Simplify the relation Square both sides:
c2+b2c2=43⇒4c2=3c2+3b2⇒c2=3b2.
So c=3b.
Recall c2=a2−b2, hence:
a2−b2=3b2⇒a2=4b2.
Thus a=2b.
- Use the given point on the ellipse The point (23,1) satisfies: a2(23)2+b212=1…
- TG EAPCET 2023Set eng-2023-05-13-AN1 markMCQQ.The equation of the circle inscribed in a square formed by the lines x+y−2=0, x+y−6=0, x−y+1=0 and x−y+5=0 is (A) 2x2+2y2−2x−14y+21=0 (B) x2+y2−x−7y+10=0 (C) 2x2+2y2−x−7y+21=0 (D) x2+y2−2x−14y+10=0
›Reveal solutionSolution
The circle inscribed in the square is the one tangent to all four sides; its center is the intersection of the square’s diagonals (midpoint of the square), and its radius is half the side length. The correct equation is 2x2+2y2−2x−14y+21=0, option (A).
The four given lines form a square because they come in two pairs of parallel lines:
- x+y=2 and x+y=6 are parallel (slope −1).
- x−y=−1 and x−y=−5 are parallel (slope 1).
These two families are perpendicular (slopes −1 and 1), so they indeed form a square. The inscribed circle (incircle) touches all four sides — its center is the intersection of the diagonals, i.e., the center of the square, and its radius is half the distance between each pair of parallel lines.
- Find the center of the square.
The center lies at the intersection of the lines that are midway between each pair of parallel sides.
- Midline between x+y=2 and x+y=6: average constant =22+6=4, so x+y=4.
- Midline between x−y=−1 and x−y=−5: average constant =2−1+(−5)=−3, so x−y=−3. Solve:
{x+y=4x−y=−3
Adding: 2x=1⇒x=21. Then y=4−x=27.
So the center is C(21,27).
- Find the radius of the inscribed circle. The distance between the two parallel lines x+y=2 and x+y=6 is
12+12∣6−2∣=24=22.
This is the side length of the square. The incircle’s radius is half the side length:
r=222=2.
- Write the equation of the circle. Center (h,k)=(21,27), radius r=2. Equation:
(x−21)2+(y−27)2=2.
Expand:
x2−x+41+y2−7y+449=2.
Combine constants: 41+449=450=225.
So:
- TG EAPCET 2022Set eng-2022-07-20-AN1 markMCQQ.If z=2−1−i3, then ∑k=12022(zk+zk1)2= (A) 0 (B) 2022 (C) 4044 (D) 1011
›Reveal solutionSolution
The key is to recognise that z is a complex cube root of unity (specifically ω2), which cycles every 3 powers. The sum simplifies to 4 times the number of terms that are multiples of 3, giving 4×674=2696 — but wait, that’s not among the options. Let’s re-check: the expression squares the sum of a power and its reciprocal, and for non-multiples of 3, zk+1/zk=−1, so the square is 1. For multiples of 3, it’s 22=4. Counting correctly yields 2022 terms: 674 multiples of 3 give 4 each, and 1348 non-multiples give 1 each, total 674×4+1348×1=2696+1348=4044. The correct answer is (C) 4044. …
- TG EAPCET 2021Set eng-2021-08-06-FN1 markMCQQ.The probability function of a discrete random variable X is given by P(X=r)=Kr2, where r=−2,−1,0,1,2,3 and K is a constant. The sum of the variance of X and the square of the mean of X is (A) 1981 (B) 1927 (C) 1918 (D) 19115
›Reveal solutionSolution
The key idea is to first find K by using the total probability condition, then compute E[X] and E[X2], and finally use Var(X)+(E[X])2=E[X2]. The result is 19115, which is option (D).
The problem asks for Var(X)+(E[X])2. A useful identity simplifies this:
Var(X)=E[X2]−(E[X])2
so
Var(X)+(E[X])2=E[X2]
That means we don’t need to compute the variance separately — just find E[X2] directly. But first, we must determine K from the probability distribution.
- Find K using ∑P(X=r)=1 The values of r are −2,−1,0,1,2,3.
P(X=r)=Kr2
So:
K[(−2)2+(−1)2+02+12+22+32]=1
Compute the squares: 4+1+0+1+4+9=19
Hence K⋅19=1, so
K=191
- Compute E[X] (the mean)
E[X]=∑r⋅P(X=r)=∑r⋅191r2=191∑r3
Sum r3 for r=−2,−1,0,1,2,3:
(−8)+(−1)+0+1+8+27=27
So
E[X]=1927
- Compute E[X2] …
🎓Unlock everything free for 14 days
- ✓Full step-by-step solutions
- ✓Concept-first explanations
- ✓Methods, shortcuts & mistakes
- ✓PYQ mapping + timed mock tests
Full access for 14 days. No credit card required.