I was trying to compute the fixed end moment for the beam (given below) using equilibrium equation for x, y displacement and moment but there are 4 unknown variables reaction and moment at both ends but I have 3 equations only, vertical equilibrium and moment about both ends. could someone help me to get the answer $-Pab^2/L^2$?
It can't be done
Indeed, this problem is unsolvable using only equilibrium equations.
Broadly speaking, structures can be split into three categories:
- hypostatic: when there are too few supports to keep the structure stable. These are commonly called "mechanisms"
- isostatic or statically determinate: when there are exactly as many supports as necessary to stabilize the structure
- hyperstatic or statically indeterminate: when there are more supports than necessary
Here we are looking at a statically indeterminate beam. After all, if you got entirely rid of one of those supports, we'd simply have a cantilever, which is stable.
And the name "statically indeterminate" comes precisely from the fact that the structure can't be solved using only the equations of static equilibrium $\sum F_x = \sum F_y = \sum M = 0$.
So you're right, it can't be done.
Well, not that easily, anyway...
So, how can we solve statically indeterminate beams? Well, that's a huge topic, so I won't even try to walk you through how to get to that specific answer.
But as a general point, one insight is needed to solve such structures, and that is to remember that we adopt the superposition principle. That is, we assume that the internal forces of a beam under loads A and B are equal to the forces due to A plus the forces due to B.
And as far as the beam is concerned, what's the difference between an applied force and a support? Well, none. The support's job is to apply forces on the beam such that the boundary conditions (no deflection or rotation at the support, for example) are satisfied. But as far as the beam is concerned, the support's just another force.
So, if a support is really just an external force and a beam's internal forces can be solved as the sum of its internal forces due to each individual external force, well, then that gives us a way to move forward!
All we have to do is start by pretending the beam only has one of those supports (let's say it's the one to the left). We can then calculate the result for this cantilever beam, which is easy enough.
But a cantilever beam dips and bends all the way to its free end. And we know the real beam actually has a fixed support on that "free end". So, all we have to do now is apply forces on that "free end" such that the cantilever ends up with zero deflection and rotation on that "free end". Once we've found those forces (actually, one vertical force and one concentrated moment), well... we've actually just found the reactions of that support we pretended wasn't there! As for the other support, its reaction is equal to what it got from pretending it was a cantilever at the start plus the result from resisting the "fake support forces".
I'll leave the actual working out as an exercise to the reader.
N.B. what I've described above is known as the Force Method. However, it is more common to use the Displacement Method. That being said, they are fundamentally similar in that they add displacement compatibility equations to the mix to solve statically indeterminate structures, and I find the Force Method to be far easier to grasp at a glance.
And then one day you'll start using analysis software (all of which actually use the Displacement Method under the hood) and forget how to do even basic math. God knows I have...