- 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 – y + 1 = 0$ and $3x + 2y -12 = 0$. Determine the coordinates of the vertices of the triangle formed by these lines and the x-axis, and shade the triangular region.

Given:

The given equations are:

$x-y+1=0$

$3x+2y-12=0$

To do:

We have to find the coordinates of the vertices of the triangle formed by the given straight lines and the x-axis. Also, we have to calculate the area formed by the triangle so formed.

Solution:

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

For equation $x-y+1=0$,

$y=x+1$

If $x=-1$ then $y=-1+1=0$

If $x=2$ then $y=2+1=3$

$x$ | $-1$ | $2$ |

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

For equation $3x+2y-12=0$,

$2y=12-3x$

$y=\frac{12-3x}{2}$

If $x=4$ then $y=\frac{12-3(4)}{2}=\frac{12-12}{2}=0$

If $x=2$ then $y=\frac{12-3(2)}{2}=\frac{12-6}{2}=\frac{6}{2}=3$

$x$ | $4$ | $2$ |

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

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

The above situation can be plotted graphically as below:

The lines AB, CD and AC represent the equations $x-y+1=0$, $3x+2y-12=0$ and x-axis respectively.

As we can see, the points of intersection of the lines AB, CD and AC taken in pairs are the vertices of the given triangle.

Hence, the vertices of the given triangle are $(-1,0), (2,3)$ and $(4,0)$.

We know that,

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

In the graph, the height of the triangle is the distance between point B and AC.

Height of the triangle$=3$ units.

The base of the triangle$=$Distance between the points A and C.The base of the triangle$=1+4=5$ units.

Area of the triangle formed by the given lines and x-axis$=\frac{1}{2}\times3\times5$

$=\frac{15}{2}$ sq. units.

The area bounded by the given lines and x-axis is $7.5$ sq. units.

- Related Questions & Answers
- Area of triangle formed by the axes of co-ordinates and a given straight line?
- What are the specifications of one plus 5?
- What are the specifications of one plus 3T phone?
- What is the range of MySQL DECIMAL(x,0)?
- What is the Cost plus pricing method?
- Return the natural logarithm of one plus the input array element-wise in Numpy
- Find smallest values of x and y such that ax – by = 0 in C++
- Construct ∈-NFA of Regular Language L = 0(0+1)*1
- Find the nth term of the given series 0, 0, 2, 1, 4, 2, 6, 3, 8, 4… in C++
- Find coordinates of the triangle given midpoint of each side in C++
- What is the meaning of JavaScript void 0?
- Construct a DFA recognizing the language {x | the number of 1's is divisible by 2, and 0'sby 3} over an alphabet ∑={0,1}
- Given a sorted array of 0’s and 1’s, find the transition point of the array in C++
- Find the Pattern of 1’s inside 0’s using C++
- Maximize the sum of X+Y elements by picking X and Y elements from 1st and 2nd array in C++
- C++ program to find Nth term of the series 0, 2, 4, 8, 12, 18…