- Trending Categories
- Data Structure
- Networking
- RDBMS
- Operating System
- Java
- iOS
- HTML
- CSS
- Android
- Python
- C Programming
- C++
- C#
- MongoDB
- MySQL
- Javascript
- PHP

- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who

# Find a relation between $x$ and $y$, if the points $(x, y), (1, 2)$ and $(7, 0)$ are collinear.

**Given: **

Points $A( x,\ y),\ B( 1,\ 2)$ and $C( 7,\ 0)$ are collinear.

**To do:**

We have to find the relation between $x$ and $y$.

**Solution:**

Let points $A( x,\ y),\ B( 1,\ 2)$ and $C( 7,\ 0)$ are collinear.

Since the given points are collinear, therefore the area of the triangle formed by them must be zero.

We know that,

Area of triangle $=\frac{1}{2}[x_1( y_2-y_1)+x_2( y_3-y_1)+x_3( y_1-y_3)]$

Here, $x_{1}=x, y_{1}=y, x_{2}=1, y_{2}=2, x_{3}=7$ and $y_{3}=0$

Therefore,

Area $=\frac{1}{2}[x(2-0)+1(0-y)+7(y-2)]=0$

$\Rightarrow \frac{1}{2}[2 x-y+7 y-14]=0$

$\Rightarrow \frac{1}{2}[2 x+6 y-14]=0$

$\Rightarrow x+3 y-7=0$

**Therefore, the relation between $x$ and $y$ is $x+3y-7=0$.**

- Related Questions & Answers
- Find maximum among x^(y^2) or y^(x^2) where x and y are given in C++
- Find x, y, z that satisfy 2/n = 1/x + 1/y + 1/z in C++
- Find larger of x^y and y^x in C++
- Evaluate a 2-D polynomial at points (x, y) in Python
- Find number of pairs (x, y) in an array such that x^y > y^x in C++
- Evaluate a 2-D Chebyshev series at points (x, y) in Python
- Evaluate a 2-D Hermite series at points (x,y) in Python
- Evaluate a 2-D Hermite_e series at points (x,y) in Python
- Find the value of the function Y = (X^6 + X^2 + 9894845) % 981 in C++
- Check if a number can be expressed as 2^x + 2^y in C++
- Difference between x++ and x = x+1 in Java
- C Program to check if the points are parallel to X axis or Y axis
- Count Distinct Non-Negative Integer Pairs (x, y) that Satisfy the Inequality x*x + y*y < n in C++
- Count Distinct Non-Negative Integer Pairs (x, y) that Satisfy the Inequality x*x + y*y < n in C++
- Find a distinct pair (x, y) in given range such that x divides y in C++
- Check if a number can be expressed as x^y (x raised to power y) in C++

Advertisements