Quadratic is a type of problem which deals with a variable multiplied by itself- an operation also known as squaring.
Solution:
Let’s consider the speed of the fast train as x km/hr
Then, the speed of the slow train will be
Using, speed = distance/ time
Time taken by the fast train to cover
And, time taken by the slow train to cover
Given, that the difference in the times is
This can be expressed as below:
As, the speed of train can never be negative we neglect
Thus, speed of the fast train is
And the speed of slow train