- 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

# Draw the graphs of the equations $ x=3, x=5 $ and $ 2 x-y-4=0 $. Also find the area of the quadrilateral formed by the lines and the $ x $-axis.

Given:

The given equations are:

$x=3, x=5$ and $2x-y-4=0$

To do:

We have to find the area of the quadrilateral formed by the lines and the x-axis.

Solution:

To represent the above equations graphically we need at least two solutions for each of the equations.

Every point on the line $x=3$ will have $x$ coordinate as 3.

Therefore,

$x$ | $3$ | $3$ |

$y$ | $0$ | $3$ |

Every point on the line $x=5$ will have $x$ coordinate as 5.

Therefore,

$x$ | $5$ | $5$ |

$y$ | $0$ | $6$ |

For equation $2x-y-4=0$,

$y=2x-4$

If $x=2$ then $y=2(2)-4=0$

If $x=3$ then $y=2(3)-4=6-4=2$

$x$ | $2$ | $3$ |

$y$ | $0$ | $2$ |

The equation of x-axis is $y=0$.

The above situation can be plotted graphically as below:

The lines AB, CD and EF represent the equations $x=3$, $x=5$ and $2x-y-4=0$ respectively.

As we can see, the points of intersection of the lines AB, CD, EF and x-axis taken in pairs are the vertices of the required quadrilateral.

Hence, the vertices of the quadrilateral are $(3,0), (5,0), (5,6)$ and $(3,2)$.

We know that,

Area of a triangle$=\frac{1}{2}bh$

In the graph, the area of the required quadrilateral is the difference of the areas of triangles ECD and EAF.

In triangle ECD,

The height of the triangle is the distance between point D and EC.

Height of the triangle$=6$ units.

Base of the triangle$=$Distance between the points E and C.Base of the triangle$=5-2=3$ units.

Area of the triangle ECD$=\frac{1}{2}\times6\times3$

$=9$ sq. units.

In triangle EAF,

The height of the triangle is the distance between point F and EA.

Height of the triangle$=2$ units.

Base of the triangle$=$Distance between the points E and A.

Base of the triangle$=3-2=1$ units.

Area of the triangle EAF$=\frac{1}{2}\times2\times1$

$=1$ sq. units.

Area of the quadrilateral ACDF$=(9-1)=8$ sq. units.

The area of the quadrilateral formed by the given lines and the x-axis is 8 sq. units.

- Related Questions & Answers
- Sum of the Series 1 + x/1 + x^2/2 + x^3/3 + .. + x^n/n in C++
- Find the value of the function Y = (X^6 + X^2 + 9894845) % 981 in C++
- Find larger of x^y and y^x in C++
- Find maximum among x^(y^2) or y^(x^2) where x and y are given in C++
- How to change the range of the X-axis and Y-axis in Matplotlib?
- What are the differences in between python 2.x and python 3.x versions?
- Differences between Python 2.x and Python 3.x?
- Transform the element by using x-axis, y-axis, and z-axis with CSS3
- How to change the color of X and Y axis lines in a JavaFX char?
- Maximize the sum of X+Y elements by picking X and Y elements from 1st and 2nd array in C++
- Transform the element along with x-axis and y-axis with CSS
- What are the key differences between Python 2.7.x and Python 3.x?
- Program to find sum of 1 + x/2! + x^2/3! +…+x^n/(n+1)! in C++
- Show the origin axis (x,y) in Matplotlib plot
- C++ program to get the Sum of series: 1 – x^2/2! + x^4/4! -…. upto nth term
- Find the Number of Solutions of n = x + n x using C++