HOME/NOTES/CONCEPT

Basic Algebra and Logarithms for JEE: Modulus, Inequalities and Logs

Ritesh Raj · 3 Nov 2026
Aa
30 min read27 sectionsConcept

Basic algebra is the part of mathematics that every other chapter uses without saying so. An inequality decides a domain, a modulus decides a number of roots, a logarithm turns a power into a product, and one identity can replace a page of expansion. JEE rarely asks this chapter on its own, but these methods sit inside questions from almost every unit, so speed here keeps the rest short.

This note covers numbers and intervals, indices and surds, identities, polynomials, inequalities by the wavy curve method, the modulus, the greatest integer, logarithms and exponential equations. Every worked example is a JEE Main 2025 or 2026 question unless it says otherwise, and every answer was re-derived from scratch.

Numbers and intervals

N⊂W⊂Z⊂Q⊂R\mathbb{N}\subset\mathbb{W}\subset\mathbb{Z}\subset\mathbb{Q}\subset\mathbb{R}

A rational number is pq\dfrac pq with p,qp,q integers and q≠0q\ne0; its decimal ends or recurs. An irrational number has a decimal that neither ends nor recurs: 2\sqrt2, 3\sqrt3, π\pi, ee.

CombinationResult
rational ±\pm irrationalalways irrational
non-zero rational ×\times irrationalalways irrational
irrational ±\pm irrationalcan be anything: 2+(−2)=0\sqrt2+(-\sqrt2)=0
irrational ×\times irrationalcan be anything: 2⋅8=4\sqrt2\cdot\sqrt8=4

Intervals

IntervalMeaning
(a,b)(a,b)a<x<ba<x<b
[a,b][a,b]a≤x≤ba\le x\le b
[a,b)[a,b)a≤x<ba\le x<b
(a,b](a,b]a<x≤ba<x\le b
(a,∞)(a,\infty)x>ax>a
(−∞,b](-\infty,b]x≤bx\le b
Four number lines one below the other, each with a highlighted segment from a to b: the first with both end points hollow, the second with both end points filled, the third with a filled left end and a hollow right end, the fourth with a hollow left end and a filled right end

A filled dot means the end point belongs to the set; a hollow dot means it does not. The intersection of two intervals runs from the larger left end to the smaller right end. A set of solutions is always reported as a union of intervals in increasing order.

Infinity takes a round bracket

∞\infty is not a number and is never reached, so [2,∞][2,\infty] is wrong. Write [2,∞)[2,\infty).

Example 1 (IITianForum). (a) Which of these are rational?

(3+2)−2,2⋅18(3+\sqrt2)-\sqrt2,\quad \sqrt2\cdot\sqrt{18} (1+2)2,312(1+\sqrt2)^2,\quad \frac{\sqrt3}{\sqrt{12}}

(b) For A=[−2,5)A=[-2,5) and B=(1,8]B=(1,8], write A∩BA\cap B, A∪BA\cup B and A−BA-B.

▸ SHOW SOLUTION

Step 1. Part (a)

(3+2)−2=3(3+\sqrt2)-\sqrt2=32⋅18=36=6\sqrt2\cdot\sqrt{18}=\sqrt{36}=6(1+2)2=3+22(1+\sqrt2)^2=3+2\sqrt2312=14=12\frac{\sqrt3}{\sqrt{12}}=\sqrt{\tfrac14}=\tfrac12

So the first, second and fourth are rational; 3+223+2\sqrt2 is irrational.

Step 2. Part (b)

Larger left end 11, smaller right end 55:

A∩B=(1,5),A∪B=[−2,8]A\cap B=(1,5),\qquad A\cup B=[-2,8]

A−BA-B keeps the points of AA not in BB: A−B=[−2,1]A-B=[-2,1]. The point 11 stays, since 1∉B1\notin B.

Indices and surds

For a,b>0a,b>0 and real m,nm,n:

LawStatement
productam⋅an=am+na^m\cdot a^n=a^{m+n}
quotientaman=am−n\dfrac{a^m}{a^n}=a^{m-n}
power(am)n=amn(a^m)^n=a^{mn}
same powerambm=(ab)ma^m b^m=(ab)^m
zero, negativea0=1a^0=1, a−n=1ana^{-n}=\dfrac1{a^n}
rootap/q=apqa^{p/q}=\sqrt[q]{a^p}

For a>0a>0, a≠1a\ne1: ax=aya^x=a^y gives x=yx=y. To compare two powers, bring them to the same exponent or the same base.

Surds. ab=ab\sqrt a\sqrt b=\sqrt{ab} holds for a,b≥0a,b\ge0 only. To remove a surd from a denominator, multiply by the conjugate:

1a+b=a−ba−b\frac{1}{\sqrt a+\sqrt b}=\frac{\sqrt a-\sqrt b}{a-b}

Square root of a surd. If x+y=ax+y=a and xy=bxy=b with x>y>0x>y>0, then

a+2b=x+y\sqrt{a+2\sqrt b}=\sqrt x+\sqrt y a−2b=x−y\sqrt{a-2\sqrt b}=\sqrt x-\sqrt y

Comparing parts. If p+qn=r+snp+q\sqrt n=r+s\sqrt n with p,q,r,sp,q,r,s rational and n\sqrt n irrational, then p=rp=r and q=sq=s.

Example 2 (IITianForum). Which is larger? (a) 23002^{300} or 32003^{200}; (b) 7−6\sqrt7-\sqrt6 or 6−5\sqrt6-\sqrt5.

▸ SHOW SOLUTION

Step 1. Same exponent

2300=(23)100=81002^{300}=(2^3)^{100}=8^{100}3200=(32)100=91003^{200}=(3^2)^{100}=9^{100}

So 32003^{200} is larger.

Step 2. Use the conjugate

7−6=17+6\sqrt7-\sqrt6=\frac{1}{\sqrt7+\sqrt6}6−5=16+5\sqrt6-\sqrt5=\frac{1}{\sqrt6+\sqrt5}

The first denominator is larger, so the first fraction is smaller.

Answer: (a) 32003^{200}; (b) 6−5\sqrt6-\sqrt5

Example 3 (IITianForum). Simplify 7+43\sqrt{7+4\sqrt3} and 11−62\sqrt{11-6\sqrt2}. Hence find 7+43+7−43\sqrt{7+4\sqrt3}+\sqrt{7-4\sqrt3}.

▸ SHOW SOLUTION

Step 1. First surd

7+43=7+2127+4\sqrt3=7+2\sqrt{12}. Two numbers with sum 77 and product 1212: 44 and 33.

7+43=4+3=2+3\sqrt{7+4\sqrt3}=\sqrt4+\sqrt3=2+\sqrt3

Step 2. Second surd

11−62=11−21811-6\sqrt2=11-2\sqrt{18}. Sum 1111, product 1818: 99 and 22.

11−62=3−2\sqrt{11-6\sqrt2}=3-\sqrt2

The larger number comes first, so the result is positive.

Step 3. The sum

7−43=2−3\sqrt{7-4\sqrt3}=2-\sqrt3(2+3)+(2−3)=4(2+\sqrt3)+(2-\sqrt3)=4

Answer: 2+32+\sqrt3, 3−23-\sqrt2, and the sum is 44

Example 4 (IITianForum). Find x<−1x<-1 such that

(1+1x)x+1=(1+150)50\left(1+\frac1x\right)^{x+1}=\left(1+\frac1{50}\right)^{50}
▸ SHOW SOLUTION

Step 1. Put x = −y

With y>1y>1:

1+1x=y−1y,x+1=−(y−1)1+\frac1x=\frac{y-1}{y},\qquad x+1=-(y-1)

Step 2. Rewrite the left side

(y−1y)−(y−1)=(yy−1)y−1\left(\frac{y-1}{y}\right)^{-(y-1)}=\left(\frac{y}{y-1}\right)^{y-1}=(1+1y−1)y−1=\left(1+\frac{1}{y-1}\right)^{y-1}

Step 3. Compare

Matching the two sides, y−1=50y-1=50, so y=51y=51.

Answer: x=−51x=-51

Example 5 (JEE Main 2025, 29 January Shift 1). The number of solutions of the equation

(9x−9x+2)(2x−7x+3)=0\left(\frac9x-\frac9{\sqrt x}+2\right)\left(\frac2x-\frac7{\sqrt x}+3\right)=0

is

Tap an option to check your answer
(1)22
(2)44
(3)11
(4)33
▸ SHOW SOLUTION

Step 1. Substitute

Put t=1xt=\dfrac1{\sqrt x}, so t>0t>0 and 1x=t2\dfrac1x=t^2:

(9t2−9t+2)(2t2−7t+3)=0(9t^2-9t+2)(2t^2-7t+3)=0(3t−1)(3t−2)(2t−1)(t−3)=0(3t-1)(3t-2)(2t-1)(t-3)=0

Step 2. Back to x

t=13,23,12,3t=\tfrac13,\tfrac23,\tfrac12,3, all positive. Then x=1t2x=\dfrac1{t^2}:

x=9, 94, 4, 19x=9,\ \tfrac94,\ 4,\ \tfrac19

Four distinct values.

Answer: option (2)

Identities and factorisation

(a+b)3=a3+b3+3ab(a+b)(a+b)^3=a^3+b^3+3ab(a+b) a3±b3=(a±b)(a2∓ab+b2)a^3\pm b^3=(a\pm b)(a^2\mp ab+b^2) (a+b+c)2=∑a2+2∑ab(a+b+c)^2=\textstyle\sum a^2+2\sum ab a4+a2b2+b4a^4+a^2b^2+b^4 =(a2+ab+b2)(a2−ab+b2)=(a^2+ab+b^2)(a^2-ab+b^2)

The most used identity of the chapter:

a3+b3+c3−3abc=(a+b+c) Qa^3+b^3+c^3-3abc=(a+b+c)\,Q Q=a2+b2+c2−ab−bc−caQ=a^2+b^2+c^2-ab-bc-ca Q=12[(a−b)2+(b−c)2+(c−a)2]Q=\tfrac12\left[(a-b)^2+(b-c)^2+(c-a)^2\right]

So Q≥0Q\ge0, and Q=0Q=0 only when a=b=ca=b=c.

ConditionConsequence
a+b+c=0a+b+c=0a3+b3+c3=3abca^3+b^3+c^3=3abc
a3+b3+c3=3abca^3+b^3+c^3=3abca+b+c=0a+b+c=0 or a=b=ca=b=c
a2+b2+c2=ab+bc+caa^2+b^2+c^2=ab+bc+caa=b=ca=b=c

Ratio and proportion.** If ab=cd\dfrac ab=\dfrac cd, then by **componendo and dividendo

a+ba−b=c+dc−d\frac{a+b}{a-b}=\frac{c+d}{c-d}

It also works backwards: from a+ba−b=k\dfrac{a+b}{a-b}=k we get ab=k+1k−1\dfrac ab=\dfrac{k+1}{k-1}.

Means. For positive a,ba,b, a+b2≥ab\dfrac{a+b}2\ge\sqrt{ab}, with equality only when a=ba=b. In particular t+1t≥2t+\dfrac1t\ge2 for t>0t>0. The full theory is in the Relation Between AM, GM and HM note.

Example 6 (IITianForum). If x+1x=3x+\dfrac1x=3, find x2+1x2x^2+\dfrac1{x^2}, x3+1x3x^3+\dfrac1{x^3} and x5+1x5x^5+\dfrac1{x^5}.

▸ SHOW SOLUTION

Step 1. Square and cube

x2+1x2=32−2=7x^2+\frac1{x^2}=3^2-2=7x3+1x3=33−3⋅3=18x^3+\frac1{x^3}=3^3-3\cdot3=18

Step 2. Multiply the two

(x2+1x2)(x3+1x3)\left(x^2+\frac1{x^2}\right)\left(x^3+\frac1{x^3}\right)=x5+1x5+x+1x=x^5+\frac1{x^5}+x+\frac1xx5+1x5=7⋅18−3=123x^5+\frac1{x^5}=7\cdot18-3=123

Answer: 77, 1818, 123123

Example 7 (IITianForum). Solve

(x−2)3+(x−3)3+(5−2x)3=0(x-2)^3+(x-3)^3+(5-2x)^3=0
▸ SHOW SOLUTION

Step 1. The three terms add to zero

(x−2)+(x−3)+(5−2x)=0(x-2)+(x-3)+(5-2x)=0

So the sum of cubes equals three times the product.

Step 2. Solve

3(x−2)(x−3)(5−2x)=03(x-2)(x-3)(5-2x)=0

Answer: x=2, 3, 52x=2,\ 3,\ \tfrac52

Example 8 (IITianForum). Find

∑n=110nn4+n2+1\sum_{n=1}^{10}\frac{n}{n^4+n^2+1}
▸ SHOW SOLUTION

Step 1. Factorise

n4+n2+1=(n2+n+1)(n2−n+1)n^4+n^2+1=(n^2+n+1)(n^2-n+1)

The difference of the two factors is 2n2n.

Step 2. Split

Let un=n2−n+1u_n=n^2-n+1. Then un+1=n2+n+1u_{n+1}=n^2+n+1, and

nn4+n2+1=12[1un−1un+1]\frac{n}{n^4+n^2+1}=\frac12\left[\frac{1}{u_n}-\frac{1}{u_{n+1}}\right]

Step 3. Telescope

Adding from n=1n=1 to 1010, the middle terms cancel, leaving u1=1u_1=1 and u11=111u_{11}=111:

12[11−1111]=55111\frac12\left[\frac11-\frac1{111}\right]=\frac{55}{111}

Answer: 55111\dfrac{55}{111}

Example 9 (IITianForum). Solve

x+5+x−5x+5−x−5=3\frac{\sqrt{x+5}+\sqrt{x-5}}{\sqrt{x+5}-\sqrt{x-5}}=3
▸ SHOW SOLUTION

Step 1. Componendo and dividendo

x+5x−5=3+13−1=2\frac{\sqrt{x+5}}{\sqrt{x-5}}=\frac{3+1}{3-1}=2

Step 2. Square

x+5=4(x−5) ⇒ x=253x+5=4(x-5)\ \Rightarrow\ x=\tfrac{25}3

x>5x>5, so both roots are defined.

Answer: x=253x=\dfrac{25}3

Example 10 (IITianForum). Find the number of real solutions of

9x+25x+1=3x+5x+15x9^x+25^x+1=3^x+5^x+15^x
▸ SHOW SOLUTION

Step 1. Substitute

Put a=3xa=3^x, b=5xb=5^x. Then 9x=a29^x=a^2, 25x=b225^x=b^2, 15x=ab15^x=ab:

a2+b2+1−a−b−ab=0a^2+b^2+1-a-b-ab=0

Step 2. Sum of squares

The left side is QQ for the three numbers aa, bb, 11:

12[(a−b)2+(a−1)2+(b−1)2]=0\tfrac12\left[(a-b)^2+(a-1)^2+(b-1)^2\right]=0

So a=b=1a=b=1, that is 3x=5x=13^x=5^x=1, giving x=0x=0.

Answer: one solution, x=0x=0

Example 11 (IITianForum). Find the number of real solutions of

(x10+1)(1+x2+x4+x6+x8)=10x9(x^{10}+1)(1+x^2+x^4+x^6+x^8)=10x^9
▸ SHOW SOLUTION

Step 1. Negative x and zero

For x≤0x\le0 the left side is positive and the right side is ≤0\le0. No solution.

Step 2. Positive x

By AM ≥\ge GM, x10+1≥2x5x^{10}+1\ge2x^5. For the five terms 1,x2,x4,x6,x81,x^2,x^4,x^6,x^8:

1+x2+x4+x6+x8≥5x205=5x41+x^2+x^4+x^6+x^8\ge5\sqrt[5]{x^{20}}=5x^4

Multiplying, the left side is ≥10x9\ge10x^9.

Step 3. Equality

Equality needs equal terms in both: x10=1x^{10}=1 and 1=x2=⋯=x81=x^2=\cdots=x^8, so x=1x=1.

Answer: 11

Polynomials

Dividing P(x)P(x) by D(x)D(x) gives a quotient Q(x)Q(x) and a remainder R(x)R(x) with deg⁡R<deg⁡D\deg R<\deg D:

P(x)=D(x) Q(x)+R(x)P(x)=D(x)\,Q(x)+R(x)
ResultStatement
remainder theoremremainder of P(x)P(x) by x−ax-a is P(a)P(a)
factor theoremx−ax-a divides P(x)P(x) exactly when P(a)=0P(a)=0
divisor a quadraticremainder is αx+β\alpha x+\beta
an−bna^n-b^ndivisible by a−ba-b for every nn
an+bna^n+b^ndivisible by a+ba+b for odd nn
identity theoremdegree ≤n\le n and zero at n+1n+1 points means zero everywhere

The last two divisibility facts are the factor theorem: put a=ba=b in an−bna^n-b^n, and a=−ba=-b in an+bna^n+b^n with nn odd.

Example 12 (IITianForum). x−2x-2 is a factor of P(x)=x3+ax2+bx+6P(x)=x^3+ax^2+bx+6, and P(x)P(x) leaves remainder 33 when divided by x−3x-3. Find aa and bb.

▸ SHOW SOLUTION

Step 1. Two conditions

P(2)=0: 4a+2b=−14P(2)=0:\ 4a+2b=-14P(3)=3: 9a+3b=−30P(3)=3:\ 9a+3b=-30

Step 2. Solve

2a+b=−72a+b=-7 and 3a+b=−103a+b=-10 give a=−3a=-3, b=−1b=-1.

Answer: a=−3a=-3, b=−1b=-1

Example 13 (IITianForum). Find the remainder when x100x^{100} is divided by x2−3x+2x^2-3x+2.

▸ SHOW SOLUTION

Step 1. Form of the remainder

x2−3x+2=(x−1)(x−2)x^2-3x+2=(x-1)(x-2), so

x100=(x−1)(x−2)Q(x)+αx+βx^{100}=(x-1)(x-2)Q(x)+\alpha x+\beta

Step 2. Put x = 1 and x = 2

α+β=1,2α+β=2100\alpha+\beta=1,\qquad 2\alpha+\beta=2^{100}α=2100−1,β=2−2100\alpha=2^{100}-1,\qquad \beta=2-2^{100}

Answer: (2100−1)x+2−2100(2^{100}-1)x+2-2^{100}

Example 14 (JEE Main 2026, 28 January Shift 1). Let

S={x3+ax2+bx+c}S=\{x^3+ax^2+bx+c\}

with a,b,c∈Na,b,c\in\mathbb{N} and a,b,c≤20a,b,c\le20

be a set of polynomials. Then the number of polynomials in SS which are divisible by x2+2x^2+2 is

Tap an option to check your answer
(1)2020
(2)66
(3)120120
(4)1010
▸ SHOW SOLUTION

Step 1. The quotient is linear

x3+ax2+bx+c=(x2+2)(x+k)x^3+ax^2+bx+c=(x^2+2)(x+k)=x3+kx2+2x+2k=x^3+kx^2+2x+2k

Step 2. Compare coefficients

a=ka=k, b=2b=2, c=2kc=2k. So cc is even and a=c2a=\dfrac c2.

Step 3. Count

c∈{2,4,…,20}c\in\{2,4,\ldots,20\} gives a∈{1,…,10}a\in\{1,\ldots,10\}, all allowed. Ten polynomials.

Answer: option (4)

Example 15 (JEE Main 2026, 28 January Shift 2). Given below two statements:

Statement I: 2513+2013+813+31325^{13}+20^{13}+8^{13}+3^{13} is divisible by 77.

Statement II: The integral part of (7+43)25\left(7+4\sqrt3\right)^{25} is an odd number.

Tap an option to check your answer
(1)Both Statement I and Statement II are false.
(2)Both Statement I and Statement II are true.
(3)Statement I is false but Statement II is true.
(4)Statement I is true but Statement II is false.
▸ SHOW SOLUTION

Step 1. Statement I

1313 is odd, so a+ba+b divides a13+b13a^{13}+b^{13}. Pair the terms:

28∣2513+313,28∣2013+81328\mid 25^{13}+3^{13},\qquad 28\mid 20^{13}+8^{13}

So 2828, and hence 77, divides the sum. True.

Step 2. Statement II: the conjugate

Let R=(7+43)25=I+fR=(7+4\sqrt3)^{25}=I+f with 0≤f<10\le f<1, and R′=(7−43)25R'=(7-4\sqrt3)^{25}. Since 0<7−43<10<7-4\sqrt3<1, 0<R′<10<R'<1.

Step 3. R + R′ is an even integer

In the expansions of (7+43)25(7+4\sqrt3)^{25} and (7−43)25(7-4\sqrt3)^{25}, the terms with odd powers of 434\sqrt3 cancel and the rest double. Each even power of 434\sqrt3 is an integer, so R+R′R+R' is even.

Step 4. Conclude

I+f+R′I+f+R' is an integer and 0<f+R′<20<f+R'<2, so f+R′=1f+R'=1. Then I=(R+R′)−1I=(R+R')-1 is odd. True.

Answer: option (2)

Example 16 (JEE Main 2025, 24 January Shift 1). The product of all the rational roots of the equation

(x2−9x+11)2−(x−4)(x−5)=3(x^2-9x+11)^2-(x-4)(x-5)=3

is equal to

Tap an option to check your answer
(1)1414
(2)77
(3)2828
(4)2121
▸ SHOW SOLUTION

Step 1. One substitution

(x−4)(x−5)=x2−9x+20(x-4)(x-5)=x^2-9x+20. Put t=x2−9xt=x^2-9x:

(t+11)2−(t+20)=3(t+11)^2-(t+20)=3t2+21t+98=0 ⇒ t=−7, −14t^2+21t+98=0\ \Rightarrow\ t=-7,\ -14

Step 2. Back to x

t=−14t=-14: x2−9x+14=0x^2-9x+14=0, so x=2,7x=2,7.

t=−7t=-7: x2−9x+7=0x^2-9x+7=0, discriminant 5353, not a square, so irrational roots.

Step 3. Product

2×7=142\times7=14.

Answer: option (1)

Example 17 (IITianForum). P(x)P(x) is a polynomial of degree 55 with

P(k)=kk+1,k=0,1,2,3,4,5P(k)=\frac{k}{k+1},\qquad k=0,1,2,3,4,5

Find P(6)P(6).

▸ SHOW SOLUTION

Step 1. Build a polynomial with known roots

Let Q(x)=(x+1)P(x)−xQ(x)=(x+1)P(x)-x. It has degree 66 and is zero at x=0,1,…,5x=0,1,\ldots,5:

Q(x)=c x(x−1)(x−2)⋯(x−5)Q(x)=c\,x(x-1)(x-2)\cdots(x-5)

Step 2. Find c

Put x=−1x=-1. The left side is 0⋅P(−1)+1=10\cdot P(-1)+1=1:

1=c (−1)(−2)⋯(−6)=720c1=c\,(-1)(-2)\cdots(-6)=720c

So c=1720c=\dfrac1{720}.

Step 3. Put x = 6

7P(6)−6=6!720=17P(6)-6=\frac{6!}{720}=1

Answer: P(6)=1P(6)=1

Inequalities

StepRule
add or subtract kkdirection stays
multiply by k>0k>0direction stays
multiply by k<0k<0direction reverses
squaringallowed only when both sides are ≥0\ge0
reciprocals, same signdirection reverses
Never cross-multiply by an unknown sign

In P(x)Q(x)>k\dfrac{P(x)}{Q(x)}>k, multiplying by Q(x)Q(x) is wrong unless the sign of Q(x)Q(x) is known. Bring everything to one side instead.

The wavy curve method

  1. Bring everything to one side: f(x)>0f(x)>0, <0<0, ≥0\ge0 or ≤0\le0.
  2. Factorise completely. Write every linear factor as x−ax-a; take the minus signs out to the front.
  3. Mark the roots in increasing order on a number line.
  4. With a positive leading coefficient, start above the line on the far right and alternate through each root.
  5. Read off the intervals with the required sign.
A number line with the points minus 2, 1, 3 and 5 marked; a wave starts above the line on the far right and crosses the line at each point, with plus and minus signs written alternately in the five gaps, plus on the far right

Example 18 (IITianForum). Solve

(x+2)(x−1)(3−x)(x−5)≤0(x+2)(x-1)(3-x)(x-5)\le0
▸ SHOW SOLUTION

Step 1. Make every factor x − a

3−x=−(x−3)3-x=-(x-3). Multiply by −1-1 and reverse the sign:

(x+2)(x−1)(x−3)(x−5)≥0(x+2)(x-1)(x-3)(x-5)\ge0

Step 2. Wave

Roots −2,1,3,5-2,1,3,5; signs from the right: +,−,+,−,++,-,+,-,+. Take the ++ parts with the roots included.

Answer: (−∞,−2]∪[1,3]∪[5,∞)(-\infty,-2]\cup[1,3]\cup[5,\infty)

Repeated factors and rational inequalities

  • An odd power of x−ax-a changes the sign at aa: the wave crosses.
  • An even power does not: the wave touches the line and turns back. The root still goes on the line.
  • A quadratic factor with positive leading coefficient and negative discriminant, like x2+x+1x^2+x+1, is always positive and can be dropped.
  • For PQ\dfrac{P}{Q}, use the same signs as PQPQ. Roots of QQ are always hollow; roots of PP are filled only for ≥\ge or ≤\le.

Example 19 (IITianForum). Solve

(x−1)2(x+2)3(x−4)(x+3)2≥0\frac{(x-1)^2(x+2)^3}{(x-4)(x+3)^2}\ge0
▸ SHOW SOLUTION

Step 1. Mark the roots

Numerator: 11 (even, filled), −2-2 (odd, filled). Denominator: −3-3 (even, hollow), 44 (odd, hollow).

Step 2. Wave

From the right: ++ on (4,∞)(4,\infty); crossing at 44, −- on (1,4)(1,4); touching at 11, still −- on (−2,1)(-2,1); crossing at −2-2, ++ on (−3,−2)(-3,-2); touching at −3-3, still ++ on (−∞,−3)(-\infty,-3).

Step 3. Collect

The ++ intervals, the filled root −2-2, and the point 11 where the expression is zero.

Answer: (−∞,−3)∪(−3,−2]∪{1}∪(4,∞)(-\infty,-3)\cup(-3,-2]\cup\{1\}\cup(4,\infty)

A number line with the points minus 3, minus 2, 1 and 4; hollow dots at minus 3 and 4, filled dots at minus 2 and 1; a wave that starts above the line on the far right, crosses at 4, touches the line at 1 and turns back, crosses at minus 2, and touches at minus 3 staying above

Example 20 (IITianForum). Solve 2x−3x+1≥1\dfrac{2x-3}{x+1}\ge1.

▸ SHOW SOLUTION

Step 1. One side

2x−3x+1−1≥0 ⇒ x−4x+1≥0\frac{2x-3}{x+1}-1\ge0\ \Rightarrow\ \frac{x-4}{x+1}\ge0

Step 2. Wave

Roots −1-1 (hollow) and 44 (filled); ++ outside them.

Answer: (−∞,−1)∪[4,∞)(-\infty,-1)\cup[4,\infty)

Cross-multiplying would give 2x−3≥x+12x-3\ge x+1, that is x≥4x\ge4 only, and loses (−∞,−1)(-\infty,-1), where x+1<0x+1<0.

Inequalities with a square root

A square root is defined only for a non-negative argument, and it is never negative.

InequalityEquivalent system
f<g\sqrt f<gf≥0f\ge0, g>0g>0, f<g2f<g^2
f>g\sqrt f>gf≥0f\ge0 with g<0g<0; or g≥0g\ge0 with f>g2f>g^2
f<g\sqrt f<\sqrt gf≥0f\ge0, f<gf<g

Example 21 (IITianForum). Solve x+3>x+1\sqrt{x+3}>x+1.

▸ SHOW SOLUTION

Step 1. Case x + 1 < 0

The left side is ≥0\ge0, so the inequality holds wherever the root is defined: −3≤x<−1-3\le x<-1.

Step 2. Case x + 1 ≥ 0

Square:

x+3>(x+1)2 ⇒ x2+x−2<0x+3>(x+1)^2\ \Rightarrow\ x^2+x-2<0

−2<x<1-2<x<1; with x≥−1x\ge-1 this gives −1≤x<1-1\le x<1.

Step 3. Union

Answer: [−3,1)[-3,1)

Example 22 (IITianForum). Solve x2−3x−10<8−x\sqrt{x^2-3x-10}<8-x.

▸ SHOW SOLUTION

Step 1. Conditions

x2−3x−10=(x−5)(x+2)≥0x^2-3x-10=(x-5)(x+2)\ge0: x≤−2x\le-2 or x≥5x\ge5. Also 8−x>08-x>0: x<8x<8.

Step 2. Square

x2−3x−10<64−16x+x2x^2-3x-10<64-16x+x^213x<74 ⇒ x<741313x<74\ \Rightarrow\ x<\tfrac{74}{13}

Step 3. Intersect

Answer: (−∞,−2]∪[5,7413)(-\infty,-2]\cup\left[5,\tfrac{74}{13}\right)

Modulus

∣x∣=x  (x≥0),∣x∣=−x  (x<0)|x|=x\ \ (x\ge0),\qquad |x|=-x\ \ (x<0)

∣x∣|x| is the distance of xx from 00, and ∣x−a∣|x-a| is the distance between xx and aa on the number line.

PropertyStatement
sign∣x∣≥0\lvert x\rvert\ge0; zero only at x=0x=0
square∣x∣2=x2\lvert x\rvert^2=x^2, x2=∣x∣\sqrt{x^2}=\lvert x\rvert
product∣xy∣=∣x∣∣y∣\lvert xy\rvert=\lvert x\rvert\lvert y\rvert
quotient∣x/y∣=∣x∣/∣y∣\lvert x/y\rvert=\lvert x\rvert/\lvert y\rvert, y≠0y\ne0
The square root of a square

x2=∣x∣\sqrt{x^2}=|x|, not xx. For example, for −2≤x≤3-2\le x\le3, (x−3)2+(x+2)2=(3−x)+(x+2)=5\sqrt{(x-3)^2}+\sqrt{(x+2)^2}=(3-x)+(x+2)=5.

Modulus equations

EquationMethod
∣f∣=a\lvert f\rvert=a, a>0a>0f=af=a or f=−af=-a
∣f∣=g\lvert f\rvert=gf=±gf=\pm g, keep roots with g≥0g\ge0
∣f∣=∣g∣\lvert f\rvert=\lvert g\rvertf=gf=g or f=−gf=-g
(x−a)2(x-a)^2 and ∣x−a∣\lvert x-a\rvert togetherput t=∣x−a∣≥0t=\lvert x-a\rvert\ge0
several modulisplit at the zeros, one case per interval

Example 23 (JEE Main 2026, 21 January Shift 1). The sum of all the roots of the equation (x−1)2−5∣x−1∣+6=0(x-1)^2-5|x-1|+6=0 is

Tap an option to check your answer
(1)44
(2)33
(3)11
(4)55
▸ SHOW SOLUTION

Step 1. Substitute

(x−1)2=∣x−1∣2(x-1)^2=|x-1|^2. Put t=∣x−1∣≥0t=|x-1|\ge0:

t2−5t+6=0 ⇒ t=2, 3t^2-5t+6=0\ \Rightarrow\ t=2,\ 3

Step 2. Roots

∣x−1∣=2|x-1|=2: x=3,−1x=3,-1. ∣x−1∣=3|x-1|=3: x=4,−2x=4,-2.

3−1+4−2=43-1+4-2=4

Answer: option (1)

Example 24 (JEE Main 2026, 24 January Shift 1). The number of real solutions of the equation x∣x+3∣+∣x−1∣−2=0x|x+3|+|x-1|-2=0 is

Tap an option to check your answer
(1)33
(2)22
(3)55
(4)44
▸ SHOW SOLUTION

Step 1. Case x ≥ 1

x2+4x−3=0 ⇒ x=−2±7x^2+4x-3=0\ \Rightarrow\ x=-2\pm\sqrt7

−2+7≈0.65-2+\sqrt7\approx0.65 and −2−7-2-\sqrt7 are both below 11. No root.

Step 2. Case −3 ≤ x < 1

x2+2x−1=0 ⇒ x=−1±2x^2+2x-1=0\ \Rightarrow\ x=-1\pm\sqrt2

0.410.41 and −2.41-2.41 both lie in [−3,1)[-3,1). Two roots.

Step 3. Case x < −3

x2+4x+1=0 ⇒ x=−2±3x^2+4x+1=0\ \Rightarrow\ x=-2\pm\sqrt3

Only −2−3≈−3.73-2-\sqrt3\approx-3.73 is below −3-3. One root.

Answer: 33 roots, option (1)

The graph of y equals x times the modulus of x plus 3, plus the modulus of x minus 1, drawn as a smooth curve made of three pieces, cut by the horizontal line y equals 2 at three marked points near x equals minus 3.7, minus 2.4 and 0.4

Example 25 (JEE Main 2025, 24 January Shift 2). Let

A={x∈(0,π)−{π2}: L=2}A=\left\{x\in(0,\pi)-\left\{\tfrac\pi2\right\}:\ L=2\right\} L=log⁡(2/π)∣sin⁡x∣+log⁡(2/π)∣cos⁡x∣L=\log_{(2/\pi)}|\sin x|+\log_{(2/\pi)}|\cos x| B={x≥0: M=0}B=\left\{x\ge0:\ M=0\right\} M=x(x−4)−3∣x−2∣+6M=\sqrt x(\sqrt x-4)-3|\sqrt x-2|+6

Then n(A∪B)n(A\cup B) is equal to

Tap an option to check your answer
(1)44
(2)22
(3)88
(4)66
▸ SHOW SOLUTION

Step 1. Set B: a hidden square

Put t=x≥0t=\sqrt x\ge0. Then t2−4t+6=(t−2)2+2t^2-4t+6=(t-2)^2+2:

(t−2)2−3∣t−2∣+2=0(t-2)^2-3|t-2|+2=0∣t−2∣=1 or 2 ⇒ t=1,3,0,4|t-2|=1\ \text{or}\ 2\ \Rightarrow\ t=1,3,0,4

B={0,1,9,16}B=\{0,1,9,16\}.

Step 2. Set A

∣sin⁡xcos⁡x∣=(2π)2 ⇒ ∣sin⁡2x∣=8π2|\sin x\cos x|=\left(\tfrac2\pi\right)^2\ \Rightarrow\ |\sin2x|=\tfrac8{\pi^2}

8π2≈0.81\tfrac8{\pi^2}\approx0.81. As xx runs over (0,π)(0,\pi), 2x2x runs over (0,2π)(0,2\pi), where sin⁡2x=±0.81\sin2x=\pm0.81 has 44 solutions.

Step 3. Union

Of the points of BB, only 11 lies in (0,π)(0,\pi), and ∣sin⁡2∣≈0.91≠0.81|\sin2|\approx0.91\ne0.81. So 1∉A1\notin A and the sets do not overlap.

n(A∪B)=4+4=8n(A\cup B)=4+4=8

Answer: option (3)

Modulus inequalities

For a>0a>0:

∣x∣<a  ⟺  −a<x<a|x|<a\iff -a<x<a ∣x∣>a  ⟺  x<−a or x>a|x|>a\iff x<-a\ \text{or}\ x>a Two number lines: on the upper one the segment between minus a and a is highlighted with hollow end points; on the lower one the two rays to the left of minus a and to the right of a are highlighted, with hollow end points

In the same way, ∣f∣<g|f|<g means −g<f<g-g<f<g, and ∣f∣>g|f|>g means f>gf>g or f<−gf<-g.

Example 26 (JEE Main 2026, 21 January Shift 2). Let A={x:∣x2−10∣≤6}A=\{x:|x^2-10|\le6\} and B={x:∣x−2∣>1}B=\{x:|x-2|>1\}. Then

Tap an option to check your answer
(1)A∪B=(−∞,1]∪(2,∞)A\cup B=(-\infty,1]\cup(2,\infty)
(2)A−B=[2,3)A-B=[2,3)
(3)A∩B=[−4,−2]∪[3,4]A\cap B=[-4,-2]\cup[3,4]
(4)B−A=(−∞,−4)∪(−2,1)∪(4,∞)B-A=(-\infty,-4)\cup(-2,1)\cup(4,\infty)
▸ SHOW SOLUTION

Step 1. Set A

−6≤x2−10≤6 ⇒ 4≤x2≤16-6\le x^2-10\le6\ \Rightarrow\ 4\le x^2\le16

A=[−4,−2]∪[2,4]A=[-4,-2]\cup[2,4].

Step 2. Set B

x−2>1x-2>1 or x−2<−1x-2<-1: B=(−∞,1)∪(3,∞)B=(-\infty,1)\cup(3,\infty).

Step 3. B − A

From (−∞,1)(-\infty,1) remove [−4,−2][-4,-2]; from (3,∞)(3,\infty) remove (3,4](3,4]:

B−A=(−∞,−4)∪(−2,1)∪(4,∞)B-A=(-\infty,-4)\cup(-2,1)\cup(4,\infty)

The others fail: A∩B=[−4,−2]∪(3,4]A\cap B=[-4,-2]\cup(3,4], A−B=[2,3]A-B=[2,3], A∪B=(−∞,1)∪[2,∞)A\cup B=(-\infty,1)\cup[2,\infty).

Answer: option (4)

Several moduli

  1. Find the critical points, where each expression inside a modulus is zero.
  2. On each interval between them, open every modulus with a fixed sign.
  3. Solve, and keep only the part of the answer inside that interval.
  4. Take the union.

Example 27 (IITianForum). Solve ∣x−1∣+∣x−3∣<6|x-1|+|x-3|<6.

▸ SHOW SOLUTION

Step 1. Case x < 1

(1−x)+(3−x)<6 ⇒ x>−1(1-x)+(3-x)<6\ \Rightarrow\ x>-1

So −1<x<1-1<x<1.

Step 2. Case 1 ≤ x < 3

(x−1)+(3−x)=2<6(x-1)+(3-x)=2<6, true for the whole interval.

Step 3. Case x ≥ 3

(x−1)+(x−3)<6 ⇒ x<5(x-1)+(x-3)<6\ \Rightarrow\ x<5

So 3≤x<53\le x<5.

Answer: (−1,5)(-1,5)

As distances: the sum of the distances from 11 and from 33 is 22 between them and grows by 22 for each unit outside, reaching 66 at −1-1 and 55.

The graph of y equals the modulus of x minus 1 plus the modulus of x minus 3: a flat bottom at height 2 between x equals 1 and x equals 3, rising lines on both sides, cut by the dashed line y equals 6 at x equals minus 1 and x equals 5, with the part of the x axis between them highlighted

The triangle inequality

∣∣x∣−∣y∣∣≤∣x±y∣≤∣x∣+∣y∣\big||x|-|y|\big|\le|x\pm y|\le|x|+|y|

∣x+y∣=∣x∣+∣y∣|x+y|=|x|+|y| exactly when xy≥0xy\ge0, and ∣x−y∣=∣x∣+∣y∣|x-y|=|x|+|y| exactly when xy≤0xy\le0.

Example 28 (IITianForum). Solve ∣2x−1∣+∣x+3∣=∣3x+2∣|2x-1|+|x+3|=|3x+2|.

▸ SHOW SOLUTION

Step 1. Spot the sum

(2x−1)+(x+3)=3x+2(2x-1)+(x+3)=3x+2, so the equation is ∣a∣+∣b∣=∣a+b∣|a|+|b|=|a+b| with a=2x−1a=2x-1, b=x+3b=x+3.

Step 2. Equality case

(2x−1)(x+3)≥0(2x-1)(x+3)\ge0

Answer: (−∞,−3]∪[12,∞)(-\infty,-3]\cup\left[\tfrac12,\infty\right)

Nested modulus and counting by graph

For ∣f(x)∣|f(x)|, reflect the parts of y=f(x)y=f(x) below the xx axis. The number of solutions of f(x)=kf(x)=k is the number of meets of y=f(x)y=f(x) with the line y=ky=k.

Example 29 (IITianForum). The equation ∣∣x−1∣−a∣=2\big||x-1|-a\big|=2 has exactly three distinct real solutions. Find aa and the solutions.

▸ SHOW SOLUTION

Step 1. Open the outer modulus

∣x−1∣=a+2or∣x−1∣=a−2|x-1|=a+2\quad\text{or}\quad |x-1|=a-2

Step 2. Count

∣x−1∣=c|x-1|=c has two solutions for c>0c>0, one for c=0c=0, none for c<0c<0. Three solutions in all needs a+2>0a+2>0 and a−2=0a-2=0.

Step 3. Solve with a = 2

∣x−1∣=4|x-1|=4: x=5,−3x=5,-3. ∣x−1∣=0|x-1|=0: x=1x=1.

Answer: a=2a=2; x=−3,1,5x=-3,1,5

The graph of y equals the modulus of the modulus of x minus 1, minus 2: a W shape with zeros at x equals minus 1 and x equals 3 and a peak of height 2 at x equals 1, cut by the dashed line y equals 2 at three marked points x equals minus 3, 1 and 5

Example 30 (JEE Main 2026, 23 January Shift 2). Consider two sets A={x∈Z: ∣∣x−3∣−3∣≤1}A=\{x\in\mathbb{Z}:\ \big||x-3|-3\big|\le1\} and

B={x∈R−{1,2}: g(x)=0}B=\left\{x\in\mathbb{R}-\{1,2\}:\ g(x)=0\right\} g(x)=(x−2)(x−4)x−1log⁡e∣x−2∣g(x)=\frac{(x-2)(x-4)}{x-1}\log_e|x-2|

Then the number of onto functions f:A→Bf:A\to B is equal to

Tap an option to check your answer
(1)6262
(2)7979
(3)3232
(4)8181
▸ SHOW SOLUTION

Step 1. Set A

−1≤∣x−3∣−3≤1-1\le|x-3|-3\le12≤∣x−3∣≤42\le|x-3|\le4

x−3∈[2,4]x-3\in[2,4] or x−3∈[−4,−2]x-3\in[-4,-2]: x∈[5,7]∪[−1,1]x\in[5,7]\cup[-1,1]. Integers: A={−1,0,1,5,6,7}A=\{-1,0,1,5,6,7\}.

Step 2. Set B

x−4=0x-4=0 gives x=4x=4. log⁡e∣x−2∣=0\log_e|x-2|=0 gives ∣x−2∣=1|x-2|=1, so x=3x=3 (and x=1x=1, excluded). B={3,4}B=\{3,4\}.

Step 3. Onto functions

All functions minus the two constant ones:

26−2=622^6-2=62

Answer: option (1)

Example 31 (JEE Main 2025, 24 January Shift 2). The number of real solution(s) of the equation

x2+3x+2=min⁡{∣x−3∣, ∣x+2∣}x^2+3x+2=\min\{|x-3|,\ |x+2|\}

is

Tap an option to check your answer
(1)22
(2)00
(3)33
(4)11
▸ SHOW SOLUTION

Step 1. The right side

∣x−3∣|x-3| and ∣x+2∣|x+2| are equal at x=12x=\tfrac12. So

min⁡=∣x+2∣  for x≤12\min=|x+2|\ \ \text{for } x\le\tfrac12min⁡=∣x−3∣  for x≥12\min=|x-3|\ \ \text{for } x\ge\tfrac12

Step 2. x ≤ 1/2

(x+1)(x+2)=∣x+2∣(x+1)(x+2)=|x+2|. Clearly x=−2x=-2 is a root. For −2<x≤12-2<x\le\tfrac12, divide by x+2>0x+2>0: x+1=1x+1=1, so x=0x=0. For x<−2x<-2, divide by −(x+2)>0-(x+2)>0: x+1=−1x+1=-1, so x=−2x=-2, which is not below −2-2.

Step 3. x ≥ 1/2

For 12≤x≤3\tfrac12\le x\le3: x2+3x+2=3−xx^2+3x+2=3-x gives x2+4x−1=0x^2+4x-1=0, x=−2±5x=-2\pm\sqrt5; the larger root 0.2360.236 is below 12\tfrac12. For x>3x>3: x2+2x+5=0x^2+2x+5=0 has no real root.

Answer: x=−2,0x=-2,0; option (1)

An upward parabola y equals x squared plus 3x plus 2 and the graph of the minimum of the moduli of x minus 3 and x plus 2, made of straight pieces that touch the x axis at x equals minus 2 and x equals 3 with a peak at x equals one half; the two graphs meet at two marked points, x equals minus 2 and x equals 0

Greatest integer and fractional part

[x][x] is the greatest integer ≤x\le x, and {x}=x−[x]∈[0,1)\{x\}=x-[x]\in[0,1). So [2.7]=2[2.7]=2 and [−2.7]=−3[-2.7]=-3.

[x]≤x<[x]+1[x]\le x<[x]+1

An equation in [x][x] is solved for the integer n=[x]n=[x] first; then x∈[n,n+1)x\in[n,n+1). The graphs of [x][x] and {x}\{x\} are in the Functions note.

Example 32 (IITianForum). Solve (a) [x]2−5[x]+6=0[x]^2-5[x]+6=0; (b) 4{x}=x+[x]4\{x\}=x+[x].

▸ SHOW SOLUTION

Step 1. Part (a)

([x]−2)([x]−3)=0([x]-2)([x]-3)=0, so [x]=2[x]=2 or 33. Then x∈[2,3)∪[3,4)=[2,4)x\in[2,3)\cup[3,4)=[2,4).

Step 2. Part (b)

Write x=n+fx=n+f with n=[x]n=[x], f={x}f=\{x\}:

4f=2n+f ⇒ f=2n34f=2n+f\ \Rightarrow\ f=\tfrac{2n}3

0≤f<10\le f<1 allows n=0,1n=0,1, giving f=0,23f=0,\tfrac23.

Answer: (a) [2,4)[2,4); (b) x=0, 53x=0,\ \tfrac53

Logarithms

log⁡aN=x  ⟺  ax=N\log_a N=x\iff a^x=N

The logarithm exists only when

N>0,a>0,a≠1N>0,\qquad a>0,\qquad a\ne1

log⁡N\log N means log⁡10N\log_{10}N and ln⁡N\ln N means log⁡eN\log_e N. Always log⁡a1=0\log_a1=0, log⁡aa=1\log_a a=1 and alog⁡aN=Na^{\log_a N}=N.

Example 33 (IITianForum). (a) Find log⁡2log⁡381\log_2\log_3 81, 3log⁡9253^{\log_9 25} and log⁡28\log_{\sqrt2}8. (b) For which xx is log⁡x−1(5−x)\log_{x-1}(5-x) defined?

▸ SHOW SOLUTION

Step 1. Part (a)

log⁡381=4,log⁡24=2\log_3 81=4,\quad \log_2 4=23log⁡925=3log⁡35=53^{\log_9 25}=3^{\log_3 5}=5log⁡28=log⁡21/223=6\log_{\sqrt2}8=\log_{2^{1/2}}2^3=6

Step 2. Part (b)

Argument 5−x>05-x>0; base x−1>0x-1>0 and x−1≠1x-1\ne1:

x<5,x>1,x≠2x<5,\qquad x>1,\qquad x\ne2

Answer: (a) 22, 55, 66; (b) (1,2)∪(2,5)(1,2)\cup(2,5)

Laws of logarithms

For valid bases and positive MM, NN:

LawStatement
productlog⁡a(MN)=log⁡aM+log⁡aN\log_a(MN)=\log_a M+\log_a N
quotientlog⁡aMN=log⁡aM−log⁡aN\log_a\frac MN=\log_a M-\log_a N
powerlog⁡aMp=plog⁡aM\log_a M^p=p\log_a M
base powerlog⁡aqMp=pqlog⁡aM\log_{a^q}M^p=\frac pq\log_a M
The power law can change the domain

log⁡ax2\log_a x^2 is defined for all x≠0x\ne0, but 2log⁡ax2\log_a x only for x>0x>0. The correct form is log⁡ax2=2log⁡a∣x∣\log_a x^2=2\log_a|x|.

Example 34 (IITianForum). Solve (a) log⁡3(x−1)2=2\log_3(x-1)^2=2; (b) 2log⁡3(x−1)=22\log_3(x-1)=2.

▸ SHOW SOLUTION

Step 1. Part (a)

(x−1)2=9(x-1)^2=9, so x−1=±3x-1=\pm3: x=4x=4 or x=−2x=-2. Both make (x−1)2>0(x-1)^2>0.

Step 2. Part (b)

Here x−1>0x-1>0 is needed: log⁡3(x−1)=1\log_3(x-1)=1, x=4x=4.

Answer: (a) x=4,−2x=4,-2; (b) x=4x=4

Example 35 (IITianForum). Let log⁡1/9β=−1\log_{1/9}\beta=-1, log⁡βα=−1\log_\beta\alpha=-1 and log⁡α27=γ\log_\alpha 27=\gamma. Find

(1α+1)log⁡10(β281+4γ2)\left(\frac1\alpha+1\right)^{\log_{\sqrt{10}}\left(\frac{\beta^2}{81}+4\gamma^2\right)}
▸ SHOW SOLUTION

Step 1. The three values

β=(19)−1=9,α=9−1=19\beta=\left(\tfrac19\right)^{-1}=9,\qquad \alpha=9^{-1}=\tfrac19γ=log⁡3−233=−32\gamma=\log_{3^{-2}}3^3=-\tfrac32

Step 2. The exponent

β281+4γ2=1+9=10\frac{\beta^2}{81}+4\gamma^2=1+9=10log⁡1010=2\log_{\sqrt{10}}10=2

Step 3. Value

(9+1)2=100\left(9+1\right)^2=100

Answer: 100100

Example 36 (IITianForum). If a,b>0a,b>0 and

ln⁡a+b4=ln⁡a+ln⁡b2,\ln\frac{a+b}{4}=\frac{\ln a+\ln b}{2},

find ab+ba\dfrac ab+\dfrac ba.

▸ SHOW SOLUTION

Step 1. Remove the logs

The right side is ln⁡ab\ln\sqrt{ab}, so

a+b4=ab ⇒ (a+b)2=16ab\frac{a+b}4=\sqrt{ab}\ \Rightarrow\ (a+b)^2=16ab

Step 2. Divide by ab

a2+b2=14ab ⇒ ab+ba=14a^2+b^2=14ab\ \Rightarrow\ \frac ab+\frac ba=14

Answer: 1414

Change of base

log⁡aN=log⁡bNlog⁡ba\log_a N=\frac{\log_b N}{\log_b a}
ConsequenceStatement
reciprocallog⁡ab⋅log⁡ba=1\log_a b\cdot\log_b a=1
chainlog⁡ab⋅log⁡bc⋅log⁡cd=log⁡ad\log_a b\cdot\log_b c\cdot\log_c d=\log_a d
swapalog⁡bc=clog⁡baa^{\log_b c}=c^{\log_b a}

Example 37 (IITianForum). Let 2a1=32^{a_1}=3, 3a2=43^{a_2}=4, 4a3=54^{a_3}=5, and so on up to 15a14=1615^{a_{14}}=16. Find a1a2⋯a14a_1a_2\cdots a_{14}.

▸ SHOW SOLUTION

Step 1. Each term is a log

a1=log⁡23a_1=\log_2 3, a2=log⁡34a_2=\log_3 4, …\ldots, a14=log⁡1516a_{14}=\log_{15}16.

Step 2. The chain

a1a2⋯a14=log⁡216=4a_1a_2\cdots a_{14}=\log_2 16=4

Answer: 44

Example 38 (IITianForum). Find the smallest integer greater than

1log⁡2π+1log⁡5π\frac{1}{\log_2\pi}+\frac{1}{\log_5\pi}
▸ SHOW SOLUTION

Step 1. Flip the bases

1log⁡2π+1log⁡5π=log⁡π2+log⁡π5\frac1{\log_2\pi}+\frac1{\log_5\pi}=\log_\pi 2+\log_\pi 5=log⁡π10=\log_\pi 10

Step 2. Place 10 between powers of π

π2≈9.87<10<π3≈31\pi^2\approx9.87<10<\pi^3\approx31, so 2<log⁡π10<32<\log_\pi10<3.

Answer: 33

Example 39 (JEE Main 2026, 4 April Shift 2). Let α=14+18+116+⋯∞\alpha=\dfrac14+\dfrac18+\dfrac1{16}+\cdots\infty and β=13+19+127+⋯∞\beta=\dfrac13+\dfrac19+\dfrac1{27}+\cdots\infty. Then the value of

(0.2)log⁡5α+(0.04)log⁡5β(0.2)^{\log_{\sqrt5}\alpha}+(0.04)^{\log_5\beta}

is

Tap an option to check your answer
(1)44
(2)55
(3)88
(4)2525
▸ SHOW SOLUTION

Step 1. The two sums

α=1/41−1/2=12,β=1/31−1/3=12\alpha=\frac{1/4}{1-1/2}=\frac12,\qquad \beta=\frac{1/3}{1-1/3}=\frac12

Step 2. First term by the swap rule

log⁡50.2=log⁡51/25−1=−2\log_{\sqrt5}0.2=\log_{5^{1/2}}5^{-1}=-2:

(0.2)log⁡5α=αlog⁡50.2=α−2=4(0.2)^{\log_{\sqrt5}\alpha}=\alpha^{\log_{\sqrt5}0.2}=\alpha^{-2}=4

Step 3. Second term

(0.04)log⁡5β=5−2log⁡5β=β−2=4(0.04)^{\log_5\beta}=5^{-2\log_5\beta}=\beta^{-2}=4

Answer: 4+4=84+4=8, option (3)

Graph of the logarithm

Two graphs side by side: on the left the increasing curve y equals log to base a of x for a greater than 1, and on the right the decreasing curve y equals log to base a of x for a between 0 and 1; both pass through the marked point 1 comma 0 and approach the y axis without touching it
BaseBehaviour
a>1a>1increasing; log⁡ax<0\log_a x<0 on (0,1)(0,1), >0>0 on (1,∞)(1,\infty)
0<a<10<a<1decreasing; log⁡ax>0\log_a x>0 on (0,1)(0,1), <0<0 on (1,∞)(1,\infty)

So log⁡ax>0\log_a x>0 exactly when xx and aa lie on the same side of 11. This gives the sign of a log at a glance.

Logarithmic equations

  1. Write the domain: every argument positive, every base positive and not 11.
  2. Bring the logs to one base and combine them.
  3. Remove the log: log⁡aM=log⁡aN\log_a M=\log_a N gives M=NM=N.
  4. Reject roots outside the domain.
Why roots must be checked

log⁡M+log⁡N\log M+\log N needs M>0M>0 and N>0N>0, but log⁡(MN)\log(MN) needs only MN>0MN>0. Combining the logs enlarges the domain, and the extra root that appears is the one the domain rejects.

Example 40 (IITianForum). Solve log⁡3(x−2)+log⁡3(x+4)=3\log_3(x-2)+\log_3(x+4)=3.

▸ SHOW SOLUTION

Step 1. Domain

x−2>0x-2>0 and x+4>0x+4>0: x>2x>2.

Step 2. Combine

(x−2)(x+4)=27(x-2)(x+4)=27x2+2x−35=0x^2+2x-35=0

x=5x=5 or x=−7x=-7.

Step 3. Check

−7-7 is outside the domain.

Answer: x=5x=5

Example 41 (JEE Main 2025, 22 January Shift 1). The product of all solutions of the equation e5(log⁡ex)2+3=x8e^{5(\log_e x)^2+3}=x^8, x>0x>0, is

Tap an option to check your answer
(1)e8/5e^{8/5}
(2)e6/5e^{6/5}
(3)e2e^2
(4)ee
▸ SHOW SOLUTION

Step 1. Take ln

Put t=ln⁡xt=\ln x:

5t2+3=8t ⇒ 5t2−8t+3=05t^2+3=8t\ \Rightarrow\ 5t^2-8t+3=0

Step 2. Product of the x values

x1x2=et1+t2x_1x_2=e^{t_1+t_2} and t1+t2=85t_1+t_2=\tfrac85. (The roots t=1,35t=1,\tfrac35 are real and distinct.)

Answer: e8/5e^{8/5}, option (1)

Example 42 (JEE Main 2026, 8 April Shift 2). The sum of squares of all real solutions of

log⁡(x+1)(2x2+5x+3)\log_{(x+1)}(2x^2+5x+3) =4−log⁡(2x+3)(x2+2x+1)=4-\log_{(2x+3)}(x^2+2x+1)

is ______.

▸ SHOW SOLUTION

Step 1. Factorise the arguments

2x2+5x+3=(2x+3)(x+1)2x^2+5x+3=(2x+3)(x+1) and x2+2x+1=(x+1)2x^2+2x+1=(x+1)^2. Bases need x+1>0x+1>0, x+1≠1x+1\ne1, 2x+3>02x+3>0, 2x+3≠12x+3\ne1; so x>−1x>-1, x≠0x\ne0.

Step 2. One variable

Let t=log⁡x+1(2x+3)t=\log_{x+1}(2x+3). Then log⁡2x+3(x+1)=1t\log_{2x+3}(x+1)=\tfrac1t:

1+t+2t=4 ⇒ t2−3t+2=01+t+\frac2t=4\ \Rightarrow\ t^2-3t+2=0

t=1t=1 or t=2t=2.

Step 3. Back to x

t=1t=1: 2x+3=x+12x+3=x+1, x=−2x=-2, rejected.

t=2t=2: 2x+3=(x+1)22x+3=(x+1)^2, x2=2x^2=2; only x=2x=\sqrt2 is in the domain.

Answer: (2)2=2(\sqrt2)^2=2

Example 43 (JEE Main 2026, 23 January Shift 2). The sum of all the real solutions of the equation

log⁡(x+3)(6x2+28x+30)\log_{(x+3)}(6x^2+28x+30) =5−2log⁡(6x+10)(x2+6x+9)=5-2\log_{(6x+10)}(x^2+6x+9)

is equal to

Tap an option to check your answer
(1)22
(2)11
(3)00
(4)44
▸ SHOW SOLUTION

Step 1. Factorise

6x2+28x+30=(x+3)(6x+10)6x^2+28x+30=(x+3)(6x+10) and x2+6x+9=(x+3)2x^2+6x+9=(x+3)^2.

Step 2. One variable

Let A=log⁡x+3(6x+10)A=\log_{x+3}(6x+10):

1+A=5−4A ⇒ (A−2)2=01+A=5-\frac4A\ \Rightarrow\ (A-2)^2=0

Step 3. Back to x

6x+10=(x+3)26x+10=(x+3)^2 gives x2=1x^2=1, x=±1x=\pm1. Bases 4,24,2 and 16,416,4: all valid.

Answer: 1+(−1)=01+(-1)=0, option (3)

Example 44 (IITianForum). Find the number of solutions of

log⁡3(x2+2)=log⁡1/2(x+1x)\log_3(x^2+2)=\log_{1/2}\left(x+\frac1x\right)

for x>0x>0.

▸ SHOW SOLUTION

Step 1. Left side

x2+2≥2x^2+2\ge2, so the left side is ≥log⁡32>0\ge\log_3 2>0.

Step 2. Right side

x+1x≥2x+\dfrac1x\ge2 and the base 12\tfrac12 is below 11, so the right side is ≤log⁡1/22=−1\le\log_{1/2}2=-1.

Step 3. Compare

A positive number never equals a number ≤−1\le-1.

Answer: no solution

For x greater than 0, the curve y equals log to base 3 of x squared plus 2, which stays above the dashed level log to base 3 of 2, and the curve y equals log to base one half of x plus 1 over x, which stays below the dashed level minus 1, with its highest point at x equals 1; the two curves never meet

Logarithmic inequalities

For a>1a>1:

log⁡aM>log⁡aN  ⟺  M>N>0\log_a M>\log_a N\iff M>N>0

For 0<a<10<a<1:

log⁡aM>log⁡aN  ⟺  0<M<N\log_a M>\log_a N\iff 0<M<N The decreasing curve y equals log to base one half of u for u greater than 0, cut by the dashed line y equals minus 2 at u equals 4; the part of the curve above the line lies over the interval from 0 to 4, which is highlighted on the u axis

If the base contains the variable, solve the two cases a>1a>1 and 0<a<10<a<1 separately and take the union.

Example 45 (IITianForum). Solve log⁡1/2(x−1)>−2\log_{1/2}(x-1)>-2.

▸ SHOW SOLUTION

Step 1. Write −2 as a log

−2=log⁡1/24-2=\log_{1/2}4. The base is below 11, so the direction reverses:

0<x−1<40<x-1<4

Answer: (1,5)(1,5)

Example 46 (IITianForum). Solve log⁡x(x+2)>2\log_x(x+2)>2.

▸ SHOW SOLUTION

Step 1. Case x > 1

x+2>x2 ⇒ (x−2)(x+1)<0x+2>x^2\ \Rightarrow\ (x-2)(x+1)<0

−1<x<2-1<x<2; with x>1x>1: 1<x<21<x<2.

Step 2. Case 0 < x < 1

0<x+2<x2 ⇒ (x−2)(x+1)>00<x+2<x^2\ \Rightarrow\ (x-2)(x+1)>0

x>2x>2 or x<−1x<-1: nothing in (0,1)(0,1).

Answer: (1,2)(1,2)

Example 47 (JEE Main 2025, 29 January Shift 2). If the domain of the function log⁡5(18x−x2−77)\log_5(18x-x^2-77) is (α,β)(\alpha,\beta) and the domain of the function

log⁡(x−1)(2x2+3x−2x2−3x−4)\log_{(x-1)}\left(\frac{2x^2+3x-2}{x^2-3x-4}\right)

is (γ,δ)(\gamma,\delta), then α2+β2+γ2\alpha^2+\beta^2+\gamma^2 is equal to

Tap an option to check your answer
(1)195195
(2)174174
(3)186186
(4)179179
▸ SHOW SOLUTION

Step 1. First domain

x2−18x+77<0x^2-18x+77<0(x−7)(x−11)<0(x-7)(x-11)<0

(α,β)=(7,11)(\alpha,\beta)=(7,11).

Step 2. Second domain: the argument

(2x−1)(x+2)(x−4)(x+1)>0\frac{(2x-1)(x+2)}{(x-4)(x+1)}>0

Wave with roots −2,−1,12,4-2,-1,\tfrac12,4: x<−2x<-2, −1<x<12-1<x<\tfrac12 or x>4x>4.

Step 3. The base

x>1x>1, x≠2x\ne2. With Step 2: x>4x>4, so γ=4\gamma=4.

Answer: 49+121+16=18649+121+16=186, option (3)

Example 48 (JEE Main 2026, 2 April Shift 1). If the domain of the function

f(x)=log⁡(0.6)∣2x−5x2−4∣f(x)=\sqrt{\log_{(0.6)}\left|\frac{2x-5}{x^2-4}\right|}

is (−∞,a]∪{b}∪[c,d)∪(e,∞)(-\infty,a]\cup\{b\}\cup[c,d)\cup(e,\infty), then the value of a+b+c+d+ea+b+c+d+e is ______.

▸ SHOW SOLUTION

Step 1. Remove the log

The root needs the log ≥0\ge0. The base 0.60.6 is below 11, so

0<∣2x−5x2−4∣≤10<\left|\frac{2x-5}{x^2-4}\right|\le1

That is x≠±2x\ne\pm2, x≠52x\ne\tfrac52, and −1≤2x−5x2−4≤1-1\le\dfrac{2x-5}{x^2-4}\le1.

Step 2. Lower half

x2+2x−9x2−4≥0\frac{x^2+2x-9}{x^2-4}\ge0

Roots −1±10-1\pm\sqrt{10} and ±2\pm2: x≤−1−10x\le-1-\sqrt{10}, −2<x<2-2<x<2 or x≥−1+10x\ge-1+\sqrt{10}.

Step 3. Upper half

(x−1)2(x−2)(x+2)≥0\frac{(x-1)^2}{(x-2)(x+2)}\ge0

The square touches at 11: x<−2x<-2, x=1x=1 or x>2x>2.

Step 4. Intersect

(−∞,−1−10 ]∪{1}(-\infty,-1-\sqrt{10}\,]\cup\{1\}∪ [−1+10,52)∪(52,∞)\cup\,[-1+\sqrt{10},\tfrac52)\cup(\tfrac52,\infty)

a+c=−2a+c=-2, b=1b=1, d=e=52d=e=\tfrac52.

Answer: −2+1+5=4-2+1+5=4

Example 49 (IITianForum). Solve

log⁡3x−1−log⁡3x+3>0\sqrt{\log_3x-1}-\log_3x+3>0
▸ SHOW SOLUTION

Step 1. Substitute

Put t=log⁡3xt=\log_3 x. The root needs t≥1t\ge1:

t−1>t−3\sqrt{t-1}>t-3

Step 2. Case t < 3

The right side is negative: true for 1≤t<31\le t<3.

Step 3. Case t ≥ 3

t−1>(t−3)2 ⇒ (t−2)(t−5)<0t-1>(t-3)^2\ \Rightarrow\ (t-2)(t-5)<0

With t≥3t\ge3: 3≤t<53\le t<5.

Step 4. Back to x

1≤log⁡3x<51\le\log_3 x<5.

Answer: [3,243)[3,243)

Characteristic, mantissa and digits

Write log⁡10N=\log_{10}N= characteristic ++ mantissa, with the characteristic an integer and the mantissa in [0,1)[0,1).

ResultStatement
digits in N≥1N\ge1characteristic +1+1
zeros after the point, 0<N<10<N<1∣\lvertcharacteristic∣−1\rvert-1
useful valueslog⁡2≈0.3010\log2\approx0.3010, log⁡3≈0.4771\log3\approx0.4771, log⁡7≈0.8451\log7\approx0.8451

Example 50 (IITianForum). (a) How many digits does 21002^{100} have, and what is its first digit? (b) How many zeros come right after the decimal point in 3−203^{-20}?

▸ SHOW SOLUTION

Step 1. Part (a)

log⁡2100=30.10\log 2^{100}=30.10

Characteristic 3030: there are 3131 digits. The mantissa 0.100.10 lies between log⁡1=0\log1=0 and log⁡2=0.301\log2=0.301, so the first digit is 11.

Step 2. Part (b)

log⁡3−20=−9.542=−10+0.458\log3^{-20}=-9.542=-10+0.458

Characteristic −10-10: there are 99 zeros after the point.

Answer: (a) 3131 digits, first digit 11; (b) 99

Exponential equations

  • af(x)=ag(x)a^{f(x)}=a^{g(x)} with a>0a>0, a≠1a\ne1 gives f(x)=g(x)f(x)=g(x).
  • a2x+kax+m=0a^{2x}+ka^x+m=0 is a quadratic in t=axt=a^x, and t>0t>0 is compulsory.
  • ax>aya^x>a^y means x>yx>y for a>1a>1, and x<yx<y for 0<a<10<a<1.

Example 51 (IITianForum). Solve 4x+2x+2=324^x+2^{x+2}=32.

▸ SHOW SOLUTION

Step 1. Substitute

Put t=2x>0t=2^x>0:

t2+4t−32=0 ⇒ t=4 or t=−8t^2+4t-32=0\ \Rightarrow\ t=4\ \text{or}\ t=-8

Step 2. Reject

t=−8t=-8 is not allowed. 2x=42^x=4.

Answer: x=2x=2

Example 52 (IITianForum). Solve 3x+4x=5x3^x+4^x=5^x.

▸ SHOW SOLUTION

Step 1. Divide by 5^x

(35)x+(45)x=1\left(\tfrac35\right)^x+\left(\tfrac45\right)^x=1

Step 2. One root

Both bases are below 11, so the left side decreases as xx increases. It meets 11 at most once, and x=2x=2 works: 925+1625=1\tfrac9{25}+\tfrac{16}{25}=1.

Answer: x=2x=2

The decreasing curve y equals three fifths to the power x plus four fifths to the power x, which crosses the dashed line y equals 1 exactly once, at the marked point x equals 2

Example 53 (IITianForum). Find the number of real solutions of

14⋅51+cos⁡πx+2x2−3+4−∣x∣=34\tfrac14\cdot5^{1+\cos\pi x}+2^{x^2-3}+4^{-|x|}=\tfrac34
▸ SHOW SOLUTION

Step 1. First term

1+cos⁡πx≥01+\cos\pi x\ge0, so 14⋅51+cos⁡πx≥14\tfrac14\cdot5^{1+\cos\pi x}\ge\tfrac14, with equality when cos⁡πx=−1\cos\pi x=-1, that is xx an odd integer.

Step 2. Last two terms by AM ≥ GM

2x2−3+2−2∣x∣≥22x2−2∣x∣−32^{x^2-3}+2^{-2|x|}\ge2\sqrt{2^{x^2-2|x|-3}}

x2−2∣x∣−3=(∣x∣−1)2−4≥−4x^2-2|x|-3=(|x|-1)^2-4\ge-4, so the sum is ≥2⋅2−2=12\ge2\cdot2^{-2}=\tfrac12, with equality only at ∣x∣=1|x|=1.

Step 3. Combine

The left side is ≥14+12=34\ge\tfrac14+\tfrac12=\tfrac34. Equality needs ∣x∣=1|x|=1 and xx odd: x=±1x=\pm1.

Answer: 22

Which method to use

A decision chart: from the question asked, arrows lead to eight situations, each paired with its method: a polynomial or quotient against zero, factorise and use the wavy curve; a square root against an expression, split on the sign of the other side; one modulus, the two standard equivalences or a substitution; several moduli, critical points and cases; a logarithm, write the domain then one base; a log inequality, split on the base; a power appearing twice, put t equal to a to the x with t positive; sum of three cubes or three squares, use the abc identity
GivenMethod
polynomial against 00factorise, wavy curve
quotient against a numberone side, then wave on P⋅QP\cdot Q
repeated rooteven power touches, odd power crosses
f\sqrt f against ggsplit on the sign of gg
∣x−a∣2\lvert x-a\rvert^2 and ∣x−a∣\lvert x-a\rvertt=∣x−a∣≥0t=\lvert x-a\rvert\ge0
several modulicritical points, one case per interval
∣a∣+∣b∣=∣a+b∣\lvert a\rvert+\lvert b\rvert=\lvert a+b\rvertab≥0ab\ge0
number of rootsgraph, count the meets
[x][x] in an equationsolve for n=[x]n=[x] first
logs with different baseschange to one base
alog⁡bca^{\log_b c}swap to clog⁡bac^{\log_b a}
variable baset=log⁡uvt=\log_{u}v, then log⁡vu=1t\log_v u=\frac1t
log inequalitydomain, then split on the base
a2xa^{2x} and axa^xt=ax>0t=a^x>0
sum of powers equal to a constantAM ≥\ge GM or a sum of squares
remainder by a quadraticαx+β\alpha x+\beta, put the two roots

What JEE asks

Across the 2025 and 2026 papers the chapter appears in five forms.

  1. Modulus equations counted by cases or by a graph (Examples 23 to 31). This is the most frequent form in JEE Main 2026.
  2. Logarithmic equations with a variable base, solved by t+ktt+\frac kt (Examples 42 and 43).
  3. Domains that reduce to log and rational inequalities (Examples 47 and 48).
  4. Log laws and the swap rule inside a numerical value question (Example 39).
  5. Polynomial division and the factor theorem (Examples 14 and 15).

The same methods appear inside domain questions in the Functions note and inside sign questions in calculus.

Quick recall

ResultStatement
a+2b\sqrt{a+2\sqrt b}x+y\sqrt x+\sqrt y, x+y=ax+y=a, xy=bxy=b
a+b+c=0a+b+c=0a3+b3+c3=3abca^3+b^3+c^3=3abc
a2+b2+c2−ab−bc−caa^2+b^2+c^2-ab-bc-ca12∑(a−b)2≥0\frac12\sum(a-b)^2\ge0
componendo and dividendoab=cd⇒a+ba−b=c+dc−d\frac ab=\frac cd\Rightarrow\frac{a+b}{a-b}=\frac{c+d}{c-d}
remainder by x−ax-aP(a)P(a)
an+bna^n+b^n, nn odddivisible by a+ba+b
wavy curvestart ++ on the right
even powertouches, no sign change
denominator rootsalways hollow
x2\sqrt{x^2}∣x∣\lvert x\rvert
∣x∣<a\lvert x\rvert<a−a<x<a-a<x<a
∣x∣>a\lvert x\rvert>ax<−ax<-a or x>ax>a
∣x+y∣=∣x∣+∣y∣\lvert x+y\rvert=\lvert x\rvert+\lvert y\rvertxy≥0xy\ge0
log⁡aN\log_a N existsN>0N>0, a>0a>0, a≠1a\ne1
log⁡ax2\log_a x^22log⁡a∣x∣2\log_a\lvert x\rvert
change of baselog⁡aN=log⁡bNlog⁡ba\log_a N=\frac{\log_b N}{\log_b a}
swapalog⁡bc=clog⁡baa^{\log_b c}=c^{\log_b a}
log⁡ax>0\log_a x>0xx and aa on the same side of 11
log inequality, 0<a<10<a<1direction reverses
digits of NNcharacteristic +1+1
t=axt=a^xt>0t>0
Before you leave this chapter

Without a pen, answer these four: the solution of x−2x+3≤0\dfrac{x-2}{x+3}\le0, the number of roots of ∣x∣2−3∣x∣+2=0|x|^2-3|x|+2=0, the value of 5log⁡25495^{\log_{25}49}, and the solution of log⁡1/3x>2\log_{1/3}x>2. If (−3,2](-3,2], 44, 77 and (0,19)\left(0,\tfrac19\right) come quickly, the chapter is yours.

Practise these methods on real exam questions in the doMath Basic Algebra and Logarithms chapter. Domains and ranges built on them are in the Functions note, and the full theory of means is in the Relation Between AM, GM and HM note.

[ SHARE ] WhatsApp
[ practice these chapters ]
Reinforce this post with live problems on doMath.
Basics & LogarithmsSets & RelationsTheory of Equations
← Back to all notes