Q.Passing through (0,0) with slope m.
Concept understanding — Slope Calculation
Slope Calculation — From Intuition to Precision
Imagine you're walking up a hill. Some hills are gentle — you barely notice the climb. Others are so steep you have to lean forward and use your hands. That "steepness" is what slope measures. In mathematics, slope tells us how fast a line rises or falls as we move from left to right.
The Intuition: Rise Over Run
Take any two points on a straight line. As you walk from the left point to the right point, two things happen:
- You move horizontally — that's the run.
- You move vertically — that's the rise (upwards) or fall (downwards).
Slope is simply the ratio:
Slope = (vertical change) ÷ (horizontal change)
If you climb 3 metres while walking 5 metres forward, the slope is 3/5=0.6. If you descend 2 metres while walking 4 metres forward, the slope is −2/4=−0.5 — negative because you're going downhill.
The Precise Definition
Given two distinct points (x1,y1) and (x2,y2) on a non-vertical line, the slope m is:
m=x2−x1y2−y1
The numerator is the rise (change in y), the denominator is the run (change in x). The order matters: subtract the first point's coordinates from the second's, consistently.
Never divide by zero. If x2=x1, the line is vertical — slope is undefined (not zero, not infinite — just undefined).
What the Number Tells You
| Slope value | What the line does |
|---|---|
| m>0 | Rises left to right (uphill) |
| m<0 | Falls left to right (downhill) |
| m=0 | Horizontal (flat) |
| m undefined | Vertical (straight up/down) |
The larger the absolute value ∣m∣, the steeper the line. A slope of 5 is much steeper than a slope of 0.2.
A Worked Example
Find the slope of the line through (1,2) and (4,8).
Step 1: Label the points. Let (x1,y1)=(1,2) and (x2,y2)=(4,8).
Step 2: Compute the rise: y2−y1=8−2=6.
Step 3: Compute the run: x2−x1=4−1=3.
Step 4: Divide: m=36=2.
The line rises 2 units vertically for every 1 unit it moves right.
You can swap which point is first — just be consistent. Using (4,8) as (x1,y1) and (1,2) as (x2,y2) gives m=1−42−8=−3−6=2, the same result.
Why Slope Matters
Slope is the foundation of linear relationships. It tells you the rate of change — how one quantity changes as another changes. In physics, slope of a distance-time graph gives speed. In economics, slope of a cost line gives marginal cost. In geometry, slope determines whether lines are parallel (same slope) or perpendicular (slopes multiply to −1).
Once you see slope as "rise over run", you've unlocked the language of change.
Slope Calculation is one of the very first ideas introduced in the NCERT Class 11 Mathematics chapter on Straight Lines, and it's what students mean when they search "slope of a line formula class 11 maths" or "coordinate geometry important questions". Being fluent with rise-over-run also pays off directly in JEE Main and CET questions on lines, parallelism, and perpendicularity.
The key idea is that the equation of a line through the origin is simply y=mx, since the y-intercept is zero.
Step 1: The general slope-intercept form is y=mx+c, where m is the slope and c is the y-intercept.
Step 2: The line passes through (0,0), so substitute x=0, y=0:
0=m(0)+c⟹c=0.
Step 3: With c=0, the equation reduces to y=mx.
The equation is y=mx.
The equation of a line passing through the origin with slope m is y=mx. This is the simplest form of a straight line, derived directly from the definition of slope as runrise.
The idea is beautifully simple. When a line passes through the origin (0,0), its equation becomes the most direct relationship between x and y possible. Let's see why.
The slope m of any line is defined as the ratio of the vertical change to the horizontal change between any two points on the line. If we take the origin (0,0) as one point and any other point (x,y) on the line as the second, then:
m=x−0y−0=xy
This is the core insight. The slope is literally just y divided by x for any point on the line (except the origin itself). Multiply both sides by x, and you get the equation.
- Start with the slope definition. For any line, slope m is constant. Using the origin (0,0) and a general point (x,y) on the line:
m=x−0y−0=xy
- Rearrange to get the equation. Multiply both sides by x (assuming x=0; the case x=0 gives the vertical line through the origin, which has undefined slope and is handled separately):
y=mx
- Check the origin. Does (0,0) satisfy y=mx? Yes: 0=m⋅0 holds for any m. So the equation works for all points on the line.
This form y=mx only works for non-vertical lines. A vertical line through the origin has equation x=0, and its slope is undefined (not a real number m). The problem specifies "with slope m", so we assume m is a real number, meaning the line is not vertical.
The equation y=mx is actually a special case of the slope-intercept form y=mx+c where the y-intercept c is zero. This is why lines through the origin are sometimes called "proportional" — y is directly proportional to x, with m as the constant of proportionality.
The equation of the line is y=mx.
Showing the 12 most recent of 21 on this concept.
- JEE Main 2026Set 2026-04-05-s24 marksQ.From the point (-1, -1), two rays are sent making angles of 45° with the line x + y = 0. These rays get reflected from the mirror x + 2y = 1. If the equations of the reflected rays are ax + by = 9 and cx + dy = 7, a, b, c, d ∈ Z, then the value of ad + bc is __________.
›Reveal solutionSolution
The two incident rays are just x=−1 and y=−1; reflecting the source point in the mirror and joining it to each point of incidence gives the two reflected lines 4x+3y=9 and −3x+4y=7, so ad+bc=7.
The cleanest way to handle a reflected ray is never to reflect the ray's direction directly — it's to reflect the source point in the mirror once, and then every reflected ray is simply the line joining that single image point to wherever the ray actually strikes the mirror.
- The line x+y=0 has direction angle 135° (slope −1). A ray making 45° with it has direction angle 135°−45°=90° or 135°+45°=180° — i.e. vertical or horizontal.
- So, from (−1,−1), the two rays are the vertical line x=−1 and the horizontal line y=−1.
- Reflect the source S=(−1,−1) in the mirror x+2y−1=0 using the standard point-reflection formula:
S′=S−a2+b22(ax0+by0+c)(a,b),
with a=1,b=2,c=−1. Here ax0+by0+c=−1−2−1=−4, so
S′=(−1,−1)−52(−4)(1,2)=(−1,−1)+(58,516)=(53,511).
For any point on the mirror, the real reflected ray is the line through that point and the mirror-image of the source.
- Ray x=−1 meets the mirror x+2y=1 at y=1, so at (−1,1). Joining (−1,1) to S′=(53,511) gives direction (58,56)∝(4,3), so the line is
3y−1=4x+1 ⇒ 3x−4y=−7 ⇒ −3x+4y=7.
- Ray y=−1 meets the mirror at x=3, so at (3,−1). Joining (3,−1) to S′ gives direction (−512,516)∝(3,−4), so the line is
−4y+1=3x−3 ⇒ 4x+3y=9.
- Matching to the given forms: ax+by=9 gives a=4,b=3; cx+dy=7 gives c=−3,d=4.
- So ad+bc=(4)(4)+(3)(−3)=16−9=7.
✓Final answerThe value is 7.
- JEE Main 2025Set 2025-01-28-s24 marksMCQQ.Two equal sides of an isosceles triangle are along −x+2y=4 and x+y=4. If m is the slope of its third side, then the sum, of all possible distinct values of m, is: (A) −210 (B) 12 (C) -6 (D) 6
›Reveal solutionSolution
Equal base angles mean the base makes the same angle with both legs; translate that into 1+mm1m−m1=1+mm2m−m2 and solve.
- Legs' slopes: m1=21 (from −x+2y=4), m2=−1 (from x+y=4).
- Equal-angle condition: 1+2mm−21=±1−mm+1.
- The '+' sign leads to m2=−1 (no real solution) — this corresponds to the base being 'parallel' in the wrong orientation to satisfy the geometry.
- The '−' sign: (m−21)(1−m)=−(m+1)(1+2m). Expanding both sides and simplifying gives m2−6m−1=0.
- This quadratic has two real roots (the possible slopes of the third side), and by Vieta's formulas their sum is −(−6)/1=6.
✓Final answer(D)
- JEE Main 2025Set 2025-01-28-s24 marksMCQQ.Let A,B,C be three points in xy-plane, whose position vectors are given by 3i^+j^,i^+3j^ and ai^+(1−a)j^ respectively with respect to the origin O . If the distance of the point C from the line bisecting the angle between the vectors OA and OB is 29, then the sum of all the possible values of a is : (A) 2 (B) 0 (C) 29 (D) 1
›Reveal solutionSolution
Equal-magnitude vectors bisect their angle along their vector sum; here that collapses to y=x, making the distance condition on C a one-line computation.
- OA=(3,1), OB=(1,3); both have magnitude 2.
- The internal angle bisector direction is OA+OB=(3+1,3+1)∝(1,1), so the bisector is the line y=x, i.e. x−y=0.
- C=(a,1−a). Distance from C to x−y=0: 2∣a−(1−a)∣=2∣2a−1∣.
- Set equal to 29: ∣2a−1∣=9⇒a=5 or a=−4.
- Sum of all possible values of a: 5+(−4)=1.
✓Final answer(D)
- JEE Main 2025Set 2025-04-08-s24 marksMCQQ.Let a be the length of a side of a square OABC with O being the origin. Its side OA makes an acute angle α with the positive x-axis and the equations of its diagonals are (√3+1)x + (√3-1)y = 0 and (√3-1)x - (√3+1)y + 8√3 = 0. Then a² is equal to : (A) 48 (B) 16 (C) 24 (D) 32
›Reveal solutionSolution
One given line already passes through O, so it is diagonal OB; its intersection with the other diagonal AC is the square's centre, and OM=a/2 gives a2.
Intuition: a square's diagonals bisect each other at the centre and each has length a2; since O is itself a vertex, the distance from O to the centre is exactly half a diagonal.
- Diagonal through O: (3+1)x+(3−1)y=0 (zero constant term ⇒ passes through the origin). The other line is diagonal AC.
- From the first equation: x=(3−2)y.
- Substitute into (3−1)x−(3+1)y+83=0: (3−1)(3−2)y−(3+1)y+83=0.
- (3−1)(3−2)=5−33, so (5−33−3−1)y=−83⇒(4−43)y=−83⇒y=3+3.
- x=(3−2)(3+3)=3−3.
- Centre M=(3−3,3+3). OM2=(3−3)2+(3+3)2=(12−63)+(12+63)=24.
- OM=2a2=2a⇒OM2=2a2=24⇒a2=48.
✓Final answer(A)
- JEE Main 2025Set 2025-04-08-s24 marksMCQQ.A line passing through the point P(a, 0) makes an acute angle α with the positive x-axis. Let this line be rotated about the point P through an angle α/2 in the clockwise direction. If in the new position, the slope of the line is 2 - √3 and its distance from the origin is 1/√2, then the value of 3a² tan²α - 2√3 is : (A) 8 (B) 4 (C) 5 (D) 6
›Reveal solutionSolution
tan(α/2)=2−3=tan15∘ gives α=30∘; the distance condition on the rotated line through P(a,0) fixes a, and 3a2tan2α−23 evaluates to 4.
Intuition: rotating a line of inclination α about a point on it by α/2 clockwise leaves a new inclination α−α/2=α/2, so its slope is tan(α/2) — a clean bridge to the memorised value tan15∘=2−3.
- New slope =tan(α−α/2)=tan(α/2)=2−3=tan15∘⇒α/2=15∘⇒α=30∘, so tanα=1/3.
- New line through P(a,0) with slope 2−3: (2−3)x−y−(2−3)a=0.
- Distance from O: (2−3)2+1∣(2−3)a∣=21.
- (2−3)2+1=8−43=2(3−1)2⇒(2−3)2+1=2(3−1).
- So ∣(2−3)a∣=3−1⇒a=2−33−1=(3−1)(2+3)=3+1 (rationalising; taking a>0).
- a2=(3+1)2=4+23, and tan2α=1/3.
- 3a2tan2α−23=3(4+23)⋅31−23=(4+23)−23=4.
Watch outKeep the rotation angle as α/2 (half the original), not α itself — the clockwise rotation is only through α/2.
✓Final answer(B)
- JEE Main 2024Set 2024-01-30-s14 marksMCQQ.A line passing through the point A(9,0) makes an angle of 30° with the positive direction of the x-axis. If this line is rotated about A through an angle of 15° in the clockwise direction, then its equation in the new position is (A) 3−2y+x=9 (B) 3−2x+y=9 (C) 3+2x+y=9 (D) 3+2y+x=9
›Reveal solutionSolution
The new line makes angle 30°−15°=15° with the x-axis; use slope tan15° through A(9,0) and rearrange.
- New inclination: θ=30°−15°=15°.
- Slope: m=tan15°=2−3.
- Equation through (9,0):
y=(2−3)(x−9).
- Rearrange: y=(2−3)x−9(2−3), so
x+2−3y=9⇒3−2y+x=9.
✓Final answerThe correct option is (A).
- JEE Main 2024Set 2024-02-01-s24 marksQ.Let ABC be an isosceles triangle in which A is at (-1, 0), ∠A=2π/3, AB = AC and B is on the positive x-axis. If BC=43 and the line BC intersects the line y=x+3 at (α,β), then β4/α2 is ________
›Reveal solutionSolution
The isosceles 120∘ triangle pins down B and C exactly; intersecting line BC with y=x+3 and simplifying the surd expression gives a clean integer.
- Since ∠A=2π/3 and AB=AC, by the law of cosines BC2=2AB2(1−cos120∘)=3AB2, so BC=3AB. Given BC=43, AB=AC=4.
- B is on the positive x-axis at distance 4 from A=(−1,0), so B=(3,0).
- AC makes a 120∘ angle with AB (which points along +x), so C=A+4(cos120∘,sin120∘)=(−1−2,23)=(−3,23).
- Line BC through (3,0) and (−3,23): slope =−3−323−0=−31, so y=−31(x−3).
- Intersect with y=x+3: x+3=−3x−3⇒3x+33=−x+3⇒x(3+1)=3−33. Solving gives α=x=33−6=3(3−2), and β=α+3=3(3−1).
- Then α2=9(7−43)=63−363 and β2=9(4−23)=36−183, so β4=(36−183)2=1296−12963+972=2268−12963=36(63−363)=36α2.
- Hence β4/α2=36.
✓Final answerThe value is 36.
- JEE Main 2024Set 2024-04-04-s24 marksQ.Consider a triangle ABC having the vertices A(1,2),B(α,β) and C(γ,δ) and angles ∠ABC=6π and ∠BAC=32π. If the points B and C lie on the line y=x+4, then α2+γ2 is equal to
›Reveal solutionSolution
Since AB=AC, the foot of the perpendicular from A to line BC is the midpoint of BC; working out that foot and the half-length BM gives B,C's x-coordinates and α2+γ2=14.
- The angles ∠ABC=30∘ and ∠BAC=120∘ force ∠ACB=180∘−30∘−120∘=30∘, so triangle ABC is isosceles with AB=AC (sides opposite equal angles B,C).
- Because AB=AC, the altitude from A to line BC is also the median, so its foot M is the midpoint of B(α,β) and C(γ,δ).
- Line BC: y=x+4, i.e. x−y+4=0. The foot of perpendicular from A(1,2): using (x0−a2+b2a(ax0+by0+c),y0−a2+b2b(ax0+by0+c)) with a=1,b=−1,c=4: ax0+by0+c=1−2+4=3, a2+b2=2. So M=(1−1.5,2+1.5)=(−0.5,3.5).
- AM=(1−(−0.5))2+(2−3.5)2=1.52+1.52=1.52.
- In right triangle ABM (right angle at M), tan(∠B)=AM/BM, so BM=tan30∘AM=1.52×3=1.56.
- B,C lie on the line through M with direction (1,1)/2, at distance BM from M. The x-displacement from M is BM×21=1.56/2=1.53.
- So α=−0.5+1.53, γ=−0.5−1.53 (or vice versa). Then α2+γ2=2(−0.5)2+2(1.53)2=2(0.25)+2(6.75)=0.5+13.5=14.
✓Final answerThe value is 14.
- JEE Main 2024Set 2024-04-08-s24 marksQ.Let a ray of light passing through the point (3,10) reflect on the line 2x+y=6 and the reflected ray pass through the point (7,2). If the equation of the incident ray is ax+by+1=0, then a2+b2+3ab is equal to _____.
›Reveal solutionSolution
Reflect the second point across the mirror line; the incident ray is the line through P and the reflection.
- Reflect Q(7,2) in 2x+y−6=0: Q′=Q−252(7)+2−6(2,1)=(7,2)−2⋅510(2,1)=(7,2)−(8,4)=(−1,−2).
- Incident ray through P(3,10) and Q′(−1,−2): slope =412=3; line 3x−y+1=0, so a=3, b=−1.
- a2+b2+3ab=9+1−9=1.
✓Final answer1
- JEE Main 2023Set 2023-04-12-s14 marksMCQQ.If the point (α, 7\sqrt{3}/3) lies on the curve traced by the mid-points of the line segments of the lines x cosθ + y sinθ = 7, θ ∈ (0, \pi/2) between the co-ordinates axes, then α is equal to (A) 7 (B) -7 (C) -7\sqrt{3} (D) 7\sqrt{3}
›Reveal solutionSolution
Express the midpoint of the intercepted segment in terms of θ, eliminate θ using cos2θ+sin2θ=1 to get the locus, then substitute the given point.
- The line meets the axes at (7/cosθ,0) and (0,7/sinθ); midpoint (X,Y)=(2cosθ7,2sinθ7).
- So cosθ=2X7, sinθ=2Y7; using cos2θ+sin2θ=1: 4X249+4Y249=1⇒X21+Y21=494.
- Given point has Y=73/3=7/3, so Y2=49/3. Then α21=494−493=491⇒α2=49⇒α=±7.
- Since θ∈(0,π/2) makes both cosθ,sinθ>0, both midpoint coordinates are positive, so α=7 (not −7).
✓Final answer(A)
- JEE Main 2023Set 2023-04-11-s24 marksQ.If the line \ell_1 : 3y - 2x = 3 is the angular bisector of the line \ell_2 : x - y + 1 = 0 and \ell_3 : \alpha x + \beta y + 17 = 0, then \alpha^2 + \beta^2 - \alpha - \beta is equal to _______.
›Reveal solutionSolution
Reflect a point on one line about the bisector to find a point that must lie on the other line, pinning down α,β.
- ℓ1:2x−3y+3=0 meets ℓ2:x−y+1=0 at P(0,1), which must also lie on ℓ3: 17=−β⇒β=−17.
- Take a point on ℓ2, say Q(−1,0); its reflection about ℓ1 is Q′=(13−17,136).
- Since ℓ1 bisects the angle between ℓ2,ℓ3, Q′ must lie on ℓ3:αx+βy+17=0: substituting gives α=7.
- α2+β2−α−β=49+289−7+17=348.
✓Final answer\boxed{348}
- JEE Main 2023Set 2023-01-29-s14 marksMCQQ.A light ray emits from the origin making an angle 30° with the positive x-axis. After getting reflected by the line x + y = 1, if this ray intersects x-axis at Q, then the abscissa of Q is (A) \frac{2}{\sqrt{3}-1} (B) \frac{2}{3+\sqrt{3}} (C) \frac{2}{3-\sqrt{3}} (D) \frac{\sqrt{3}}{2(\sqrt{3}+1)}
›Reveal solutionSolution
Reflect the source across the mirror line to get an image point; the reflected ray lies along the straight line from that image through the point of incidence.
- Incident ray: y=xtan30∘=x/3. It meets x+y=1 where x(1+1/3)=1, giving P=(23−3,23−1).
- Reflecting the origin across x+y−1=0: with d=12+120+0−1=−21, the image is (0−2(1)(−21),0−2(1)(−21))=(1,1).
- The reflected ray is the line through the image (1,1) and P (extended beyond P, away from the image).
- Slope of this line =xP−1yP−1=3 (after simplifying), so the line is y−1=3(x−1).
- Setting y=0: x=1−31=33−3=3+32 (rationalizing confirms the two forms are equal).
✓Final answer(B)
🎓Unlock everything free for 10 days
- ✓Full step-by-step solutions
- ✓Concept-first explanations
- ✓Methods, shortcuts & mistakes
- ✓PYQ mapping + timed mock tests
Full access for 10 days. No credit card required.